:root {
  
  --bg-dark: #050a14;
  
  --bg-panel: rgba(20, 25, 40, 0.7);
  
  --bg-card: linear-gradient(160deg, rgba(25, 30, 50, 0.6) 0%, rgba(10, 15, 30, 0.8) 100%);
  
  --bg-input: #0f1525;

  --primary-neon: #00f2ff;
  
  --secondary-neon: #9d4edd;
  
  --accent-pink: #ff007f;
  
  --accent-green: #00ff9f;
  
  --accent-gold: #ffd700;

  --text-main: #ffffff;
  --text-muted: #a0abc0;
  
  --glass-border: 1px solid rgba(0, 242, 255, 0.15);
  
  --glass-blur: blur(16px);
  --hud-shadow: 0 0 20px rgba(0, 242, 255, 0.15), inset 0 0 10px rgba(0, 242, 255, 0.05);

  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-dark);
  
  background-image:
      radial-gradient(at 10% 10%, rgba(157, 78, 221, 0.15) 0px, transparent 40%),
      radial-gradient(at 90% 90%, rgba(0, 242, 255, 0.15) 0px, transparent 40%),
      url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23475569' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--text-main);
  font-family: var(--font-body);
  margin: 0;
  
  padding-top: 140px;
  min-height: 100vh;
  overflow-x: hidden;
  
}

@media (max-width: 768px) {
  body {
    padding-top: 110px;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
}

.orb-1 {
  top: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: var(--secondary-neon);
  animation: floatOrb 25s infinite alternate ease-in-out;
}

.orb-2 {
  bottom: -150px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: var(--primary-neon);
  animation: floatOrb 30s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(60px, 40px);
  }
}

.sticky-header {
  
  background: rgba(10, 15, 30, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid var(--primary-neon);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 255, 0.2);
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 96%;
  max-width: 1280px;
  z-index: 1000;
  border-radius: 16px;
  padding: 5px 15px;
  box-sizing: border-box;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  height: 50px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.logo-img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 5px var(--primary-neon));
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6em;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 242, 255, 0.4);
}

.logo-text .highlight {
  color: var(--primary-neon);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  padding: 5px 12px;
  border-radius: 20px;
  border: var(--glass-border);
  position: relative;
  transition: 0.3s;
}

.language-selector:hover {
  border-color: var(--primary-neon);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.language-selector i {
  color: var(--primary-neon);
  font-size: 0.9em;
  pointer-events: none;
}

.language-selector select {
  background-color: transparent;
  color: #f0f0f0;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95em;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 20px;
  min-width: 80px;
}

.language-selector select option {
  background-color: var(--bg-dark);
  color: #fff;
  padding: 10px;
}

.language-selector::after {
  content: "▼";
  font-size: 0.6em;
  color: var(--text-muted);
  position: absolute;
  right: 10px;
  pointer-events: none;
}

.main-nav {
  background: transparent;
  width: 100%;
  border-top: none;
  margin-top: 5px;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.main-nav ul li a {
  display: block;
  color: var(--text-muted);
  padding: 10px 15px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 0.9em;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.main-nav ul li a:hover,
.dropdown:hover .drop-btn {
  color: var(--primary-neon);
  background: rgba(0, 242, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
  text-shadow: 0 0 5px var(--primary-neon);
}

.main-nav ul li a i {
  margin-right: 8px;
  color: var(--secondary-neon);
  
  transition: 0.3s;
}

.main-nav ul li a:hover i {
  color: var(--primary-neon);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  
  top:38%;
  background: var(--bg-dark);
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  z-index: 1001;
  border: 1px solid var(--primary-neon);
  border-radius: 8px;
  overflow: hidden;
  padding: 5px;
  margin-top: 15px;
}

.dropdown-content a {
  color: var(--text-muted);
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  text-align: left;
  border-bottom: none;
  border-radius: 6px;
  font-family: var(--font-body);
  transition: 0.2s;
  font-size: 0.95em;
}

.dropdown-content a:hover {
  background: linear-gradient(90deg, rgba(0, 242, 255, 0.1), transparent);
  color: #fff;
  padding-left: 20px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.mobile-menu-icon {
  display: none;
  font-size: 1.4em;
  cursor: pointer;
  color: var(--primary-neon);
  padding: 6px;
  border: 1px solid rgba(0, 242, 255, 0.3);
  border-radius: 6px;
  transition: 0.3s;
}

.mobile-menu-icon:hover {
  background: rgba(0, 242, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.mobile-menu-icon i {
  transition: transform 0.3s ease;
}

.mobile-menu-icon.active i {
  transform: rotate(90deg);
}

.mobile-menu-icon.active i::before {
  content: "\f00d";
}

@media (max-width: 768px) {
  .sticky-header {
    width: 94%;
    top: 10px;
    padding: 5px 10px;
  }

  .logo-img {
    height: 26px;
  }

  .logo-text {
    font-size: 1.3em;
  }

  .header-controls {
    margin-left: auto;
  }

  .main-nav {
    display: none;
    width: 100%;
    background: rgba(10, 15, 30, 0.98);
    border-radius: 12px;
    border: 1px solid var(--primary-neon);
    padding: 10px;
    box-sizing: border-box;
    margin-top: 15px;
    max-height: 70vh;
    overflow-y: auto;
  }

  .main-nav.active {
    display: block;
    animation: mobileSlideDown 0.3s ease forwards;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .main-nav ul li a {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
  }

  .mobile-menu-icon {
    display: block;
  }
  
  @media (max-width: 768px) {
  .header-controls {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
  }
  .mobile-menu-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    color: #fff;
    cursor: pointer;
    z-index: 1002; /* Ensures it stays above the menu */
  }
}

  .dropdown {
    display: block;
    width: 100%;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
    position: static;
    box-shadow: none;
    background: transparent;
    border: none;
    padding-left: 15px;
    margin-top: 5px;
    animation: none;
  }

  .dropdown-content a {
    padding: 10px;
    font-size: 0.9em;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-radius: 0 6px 6px 0;
    background: transparent;
  }

  .dropdown-content a:hover {
    border-left-color: var(--primary-neon);
    background: rgba(255,255,255,0.02);
    padding-left: 15px;
  }
}

@keyframes mobileSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section {
  padding: 60px 0 40px 0;
}

.hero-intro {
  text-align: center;
  margin-bottom: 50px;
}

.hero-intro h1 {
  font-family: var(--font-heading);
  font-size: 3em;
  margin-bottom: 15px;
  text-transform: uppercase;
  
  background: linear-gradient(to right, #fff, var(--primary-neon), var(--secondary-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(157, 78, 221, 0.4));
}

.hero-intro p {
  color: var(--text-muted);
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.glass-card,
.glass-panel {
  
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3),
              inset 0 0 20px rgba(0, 242, 255, 0.02);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::after,
.glass-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(transparent 0px, transparent 2px, rgba(0,0,0,0.3) 3px);
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
}

.glass-card:hover,
.glass-panel:hover {
  border-color: rgba(0, 242, 255, 0.5);
  box-shadow: 0 10px 40px -10px rgba(0, 242, 255, 0.3),
                inset 0 0 20px rgba(0, 242, 255, 0.1);
  transform: translateY(-5px);
}

.home-teaser-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 25px;
  margin: 40px 0;
  align-items: stretch;
}

/* 1. Live Clock Box (Digital Readout Style) */

.live-clock-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-top: none;
  
}

.live-clock-box .glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at center, rgba(0, 242, 255, 0.2) 0%, transparent 70%);
  opacity: 0.4;
  filter: blur(50px);
  animation: pulseGlow 4s infinite alternate;
  z-index: 0;
}

@keyframes pulseGlow {
  from {
    opacity: 0.2;
    scale: 0.8;
  }

  to {
    opacity: 0.5;
    scale: 1.1;
  }
}

#live-clock-time {
  font-family: var(--font-heading);
  font-size: 3.8em;
  font-weight: 700;
  color: var(--primary-neon);
  
  text-shadow: 0 0 20px rgba(0, 242, 255, 0.7), 0 0 5px #fff;
  z-index: 1;
  letter-spacing: 2px;
}

#live-clock-date {
  font-size: 1.1em;
  color: var(--text-muted);
  z-index: 1;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 2. History Box (Data Terminal Style) */

.history-teaser-box {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  min-height: 250px;
}

.history-header-row {
  padding: 15px 20px;
  background: rgba(0,0,0,0.4);
  
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.history-header-title {
  margin: 0;
  font-size: 1.2em;
  color: #fff;
  font-weight: bold;
  font-family: var(--font-heading);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-header-title::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--secondary-neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--secondary-neon);
}

.history-view-all {
  font-size: 0.9em;
  color: var(--primary-neon);
  text-decoration: none;
  font-family: var(--font-heading);
  transition: 0.3s;
}

.history-view-all:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--primary-neon);
}

.slider-viewport {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  border-radius: 0 0 16px 16px;
  z-index: 1;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  gap: 0;
}

.slide {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

.slide-card {
  
  background-color: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 15px;
  width: 100%;
  display: flex;
  gap: 15px;
  align-items: center;
  box-sizing: border-box;
  flex: 1;
}

.slide-img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
}

.slide-content {
  flex-grow: 1;
  overflow: hidden;
}

.slide-year {
  background: var(--secondary-neon);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  
  font-size: 0.8em;
  display: inline-block;
  font-weight: bold;
  margin-bottom: 5px;
  font-family: var(--font-heading);
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
}

.slide-text {
  color: var(--text-main);
  font-size: 1.05em;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-read-more {
  background: none;
  border: none;
  color: var(--primary-neon);
  font-size: 0.9em;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  margin-top: 5px;
  text-transform: uppercase;
}

.slider-nav {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.nav-dot {
  width: 6px;
  height: 6px;
  background-color: #444;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.nav-dot.active {
  background-color: var(--primary-neon);
  box-shadow: 0 0 10px var(--primary-neon);
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .home-teaser-grid {
    grid-template-columns: 1fr;
  }

  .hero-intro h1 {
    font-size: 2.2em;
  }
}

.dashboard-section {
  padding-bottom: 60px;
}

.grid-category-title {
  color: #fff;
  border-bottom: 1px solid rgba(0, 242, 255, 0.2);
  
  padding-bottom: 15px;
  margin-top: 60px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4em;
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.grid-category-title i {
  color: var(--primary-neon);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  
  gap: 25px;
  margin-top: 30px;
}

.tool-box {
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  
  align-items: center;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;

  background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(0, 242, 255, 0.05));
  border: 2px solid var(--primary-neon);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.3), inset 0 0 10px rgba(0, 242, 255, 0.1);
  color: var(--primary-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  margin-bottom: 20px;
  transition: 0.3s;
}

.tool-box:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
  background: var(--primary-neon);
  color: #000;
}

.icon-box.accent-purple,
.icon-box.accent-purple1 {
  border-color: var(--secondary-neon);
  color: var(--secondary-neon);
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(157, 78, 221, 0.05));
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

.tool-box:hover .icon-box.accent-purple,
.tool-box:hover .icon-box.accent-purple1 {
  background: var(--secondary-neon);
  color: #fff;
  box-shadow: 0 0 30px rgba(157, 78, 221, 0.6);
}

.icon-box.accent-pink {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.1), rgba(255, 0, 127, 0.05));
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.3);
}

.tool-box:hover .icon-box.accent-pink {
  background: var(--accent-pink);
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 0, 127, 0.6);
}

.icon-box.accent-green {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: linear-gradient(135deg, rgba(0, 255, 159, 0.1), rgba(0, 255, 159, 0.05));
  box-shadow: 0 0 20px rgba(0, 255, 159, 0.3);
}

.tool-box:hover .icon-box.accent-green {
  background: var(--accent-green);
  color: #000;
  box-shadow: 0 0 30px rgba(0, 255, 159, 0.6);
}

.icon-box.accent-gold {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.tool-box:hover .icon-box.accent-gold {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.tool-box h2 {
  margin-top: 0;
  color: #fff;
  font-size: 1.3em;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.tool-box p {
  flex-grow: 1;
  color: var(--text-muted);
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-link {
  display: inline-block;
  padding: 10px 25px;
  background: transparent;
  border: 1px solid var(--primary-neon);
  color: var(--primary-neon);
  text-decoration: none;
  font-weight: bold;
  font-family: var(--font-heading);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.tool-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--primary-neon);
  z-index: -1;
  transition: 0.3s ease-in-out;
}

.tool-link:hover {
  color: #000;
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

.tool-link:hover::before {
  width: 100%;
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 10, 20, 0.9);
  
  align-items: center;
  justify-content: center;
  padding: 15px;
  backdrop-filter: blur(10px);
}

.modal-content {
  max-width: 600px;
  width: 100%;
  animation: modalFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--primary-neon);
  
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
  border-radius: 16px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background-color: rgba(0,0,0,0.3);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-year-tag {
  background-color: var(--primary-neon);
  color: #000;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85em;
  font-family: var(--font-heading);
}

.modal-title {
  color: #fff;
  font-weight: bold;
  font-size: 1.3em;
  margin: 0;
  font-family: var(--font-heading);
  margin-left: 10px;
}

.modal-close {
  color: var(--text-muted);
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 0 15px;
  transition: 0.2s;
}

.modal-close:hover {
  color: var(--primary-neon);
  transform: rotate(90deg);
}

.modal-body {
  padding: 25px;
  color: #ddd;
  line-height: 1.7;
}

.modal-img-wrapper {
  background-color: rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.05);
}

.modal-img-wrapper img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
}

.modal-footer {
  padding: 15px 20px;
  background-color: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: right;
  margin-top: auto;
}

.modal-wiki-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  font-family: var(--font-heading);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
  transition: 0.3s;
}

.modal-wiki-btn:hover {
  box-shadow: 0 0 25px rgba(0, 242, 255, 0.6);
  transform: translateY(-2px);
}

.site-footer {
  background: rgba(10, 15, 30, 0.95);
  padding: 60px 20px 30px 20px;
  margin-top: 80px;
  border-top: 1px solid rgba(0, 242, 255, 0.2);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-neon), transparent);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column {
  width: 22%;
  min-width: 200px;
}

.footer-column h4 {
  color: #fff;
  font-family: var(--font-heading);
  margin-bottom: 25px;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.5;
  transition: 0.3s;
  display: inline-block;
}

.footer-column ul li a:hover {
  color: var(--primary-neon);
  padding-left: 8px;
  text-shadow: 0 0 5px var(--primary-neon);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-column {
    width: 100%;
  }
}

.page-content,
.legal-page-content {
  
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 30px 40px;
  margin-top: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05em;
  position: relative;
  overflow: hidden;
}

.page-content::after,
.legal-page-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(transparent 0px, transparent 2px, rgba(0,0,0,0.3) 3px);
  pointer-events: none;
  opacity: 0.1;
  z-index: 0;
}

.page-content h1,
.legal-page-content h1 {
  color: #fff;
  font-family: var(--font-heading);
  border-bottom: 2px solid var(--primary-neon);
  padding-bottom: 15px;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.page-content h2,
.legal-page-content h2 {
  color: var(--secondary-neon);
  font-family: var(--font-heading);
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}

.page-content h3,
.legal-page-content h3 {
  color: var(--primary-neon);
  font-size: 1.2em;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-content p,
.legal-page-content p {
  margin-bottom: 15px;
  color: #c0c8d8;
  
}

.page-content ul,
.legal-page-content ul {
  margin-bottom: 20px;
  padding-left: 10px;
}

.page-content ul li,
.legal-page-content ul li {
  list-style: none;
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #c0c8d8;
}

.page-content ul li::before,
.legal-page-content ul li::before {
  content: "\f054";
  
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-pink);
  font-size: 0.8em;
  text-shadow: 0 0 5px var(--accent-pink);
}

.page-content a,
.legal-page-content a {
  color: var(--primary-neon);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary-neon);
  transition: 0.3s;
}

.page-content a:hover,
.legal-page-content a:hover {
  color: #fff;
  border-bottom: 1px solid #fff;
  text-shadow: 0 0 10px var(--primary-neon);
}

@media (max-width: 768px) {
  .page-content,
  .legal-page-content {
    padding: 20px;
  }
}

.breadcrumbs {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border-radius: 12px;
  border: var(--glass-border);
}

.breadcrumbs a {
  color: var(--primary-neon);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--primary-neon);
}

.breadcrumbs .separator {
  color: #475569;
  font-size: 0.8rem;
}

.breadcrumbs .current {
  color: #fff;
  font-weight: 500;
  pointer-events: none;
  text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.hidden {
  display: none !important;
}

.input-group {
  margin-bottom: 20px;
  width: 100%;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.95em;
  font-weight: 500;
}

.input-group input,
.input-group select,
.flatpickr-input,
textarea {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 1em;
  font-family: var(--font-body);
  box-sizing: border-box;
  transition: 0.3s;
}

.input-group input:focus,
.input-group select:focus,
.flatpickr-input:focus,
textarea:focus {
  border-color: var(--primary-neon);
  outline: none;
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
  background: rgba(15, 21, 37, 1);
}

input:disabled, select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.05);
}

.btn-primary,
.calculator-submit-btn,
#d2d-calculate-btn,
#loan-calculate-btn,
#savings-calculate-btn,
#retirement-calculate-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  font-weight: bold;
  font-family: var(--font-heading);
  background: var(--primary-neon);
  color: #000;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover,
.calculator-submit-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
}

.calc-view.active-view {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-top: 3px solid var(--primary-neon); 
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--hud-shadow);
    margin-top: 30px;
}

.btn-calc-again {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-muted);
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.9em;
}

.btn-calc-again:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-color: var(--primary-neon);
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.35s;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 5px var(--primary-neon));
}

.sw-display-text,
.timer-display-text {
  position: absolute;
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: 'Orbitron', monospace; 
  color: #fff;
  z-index: 2;
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.sw-unit span:first-child,
.t-unit span:first-child {
  font-size: 2.8em;
  font-weight: 700;
}

.sw-separator, .t-sep {
  font-size: 2.5em;
  margin: 0 2px;
  color: rgba(255,255,255,0.4);
}

#sw-milliseconds {
    color: var(--primary-neon);
    font-size: 1.8em !important;
}

.sw-toolbar, .timer-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.sw-btn {
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: bold;
  font-family: var(--font-heading);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  background: rgba(255,255,255,0.05);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.sw-btn-start {
  border-color: var(--accent-green);
  color: var(--accent-green);
}
.sw-btn-start:hover:not(:disabled) {
  background: var(--accent-green);
  color: #000;
  box-shadow: 0 0 20px var(--accent-green);
}

.sw-btn-stop {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}
.sw-btn-stop:hover:not(:disabled) {
  background: var(--accent-pink);
  color: #000;
  box-shadow: 0 0 20px var(--accent-pink);
}

.sw-btn-lap {
  border-color: var(--primary-neon);
  color: var(--primary-neon);
}
.sw-btn-lap:hover:not(:disabled) {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 20px var(--primary-neon);
}

.sw-btn-reset {
  border-color: var(--text-muted);
  color: var(--text-muted);
}
.sw-btn-reset:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.sw-laps-panel {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: 12px;
  padding: 15px;
  max-height: 250px;
  overflow-y: auto;
}

.lap-row {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-family: 'Orbitron', monospace;
}
.lap-row.header {
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85em;
}
.lap-number { color: var(--primary-neon); }

.timer-presets {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.preset-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
    font-family: var(--font-heading);
}
.preset-btn:hover {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
}

.timer-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--bg-card);
    padding: 15px;
    border-radius: 12px;
    border: var(--glass-border);
}
.timer-input-group input {
    width: 70px;
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 1.5em;
    background: var(--bg-input);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--primary-neon);
    padding: 10px;
}

.clock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.clock-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.clock-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 242, 255, 0.15);
  border-color: var(--primary-neon);
}

.clock-card .city {
  font-size: 1.4em;
  font-weight: bold;
  color: #fff;
  margin: 0;
  font-family: var(--font-heading);
}

.clock-card .country {
  font-size: 0.9em;
  color: var(--text-muted);
  margin: 5px 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.clock-card .time {
  font-size: 3.2em;
  font-family: 'Orbitron', monospace;
  color: var(--primary-neon);
  text-align: center;
  margin: 15px 0;
  text-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

.clock-card .date {
  text-align: center;
  color: var(--text-muted);
  font-size: 1em;
}

.remove-clock-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 1.2em;
    cursor: pointer;
    transition: 0.2s;
}
.remove-clock-btn:hover { color: var(--accent-pink); }

.clock-search-wrapper, .location-search-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-neon);
  font-size: 1.1em;
  pointer-events: none;
}

#timezone-search, #location-search {
  padding-left: 45px; 
}

.clock-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: var(--bg-dark);
  border: 1px solid var(--primary-neon);
  border-radius: 0 0 12px 12px;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  margin-top: 5px;
}

.search-item {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: 0.2s;
}
.search-item:hover {
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.1), transparent);
    padding-left: 20px;
}

.search-item-city { font-weight: bold; color: #fff; }
.search-item-country { font-size: 0.9em; color: var(--secondary-neon); float: right; }

.calendar-wrapper-flex {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 30px;
}

.calendar-main {
  flex: 2;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 25px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.calendar-title-group {
  font-size: 1.5em;
  font-family: var(--font-heading);
  color: #fff;
  text-transform: uppercase;
}

.calendar-nav-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
  display: flex; align-items: center; justify-content: center;
}

.calendar-nav-btn:hover {
  background: var(--primary-neon);
  color: #000;
  box-shadow: 0 0 15px var(--primary-neon);
}

.calendar-weekdays,
.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-weekdays div {
  text-align: center;
  font-weight: bold;
  color: var(--secondary-neon);
  text-transform: uppercase;
  font-size: 0.9em;
  padding-bottom: 10px;
}

.calendar-date {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  min-height: 90px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
  cursor: pointer;
}

.calendar-date:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary-neon);
}

.calendar-date.current-day {
  background: rgba(0, 242, 255, 0.1);
  border: 1px solid var(--primary-neon);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}
.calendar-date.current-day .date-num {
    color: var(--primary-neon);
    font-weight: bold;
}

.date-num {
    font-size: 1.1em;
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.date-events {
    display: flex; flex-wrap: wrap; gap: 4px;
}
.event-dot {
    width: 8px; height: 8px; border-radius: 50%;
}
.event-dot.holiday { background: var(--accent-pink); box-shadow: 0 0 5px var(--accent-pink); }
.event-dot.user { background: var(--accent-green); box-shadow: 0 0 5px var(--accent-green); }

.calendar-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  padding: 20px;
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: 12px;
}

.sidebar-widget h3 {
  margin-top: 0;
  font-size: 1.1em;
  color: #fff;
  font-family: var(--font-heading);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.islamic-cell, .chinese-cell {
    min-height: 80px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.islamic-num { font-size: 1.4em; font-family: var(--font-heading); color: var(--accent-green); }
.gregorian-sub { font-size: 0.8em; color: var(--text-muted); align-self: flex-end; }

.chinese-cell .lunar-date { color: var(--accent-pink); font-weight: bold; align-self: flex-end;}
.chinese-cell .lunar-term { color: var(--accent-gold); font-size: 0.75em; text-transform: uppercase; }

.timezone-converter-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 30px;
    border-radius: 16px;
    position: relative;
    margin-top: 30px;
}

.timezone-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.swap-column {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    z-index: 2;
}

.sw-btn-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    font-size: 1.2em;
    cursor: pointer;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.sw-btn-icon:hover {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 15px var(--primary-neon);
    transform: rotate(180deg);
}

.tz-result-box {
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid var(--primary-neon);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.live-result-time {
    font-family: 'Orbitron', monospace;
    font-size: 2.5em;
    color: var(--primary-neon);
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
    display: block;
    margin-bottom: 5px;
}
.live-result-date {
    color: var(--text-muted);
    font-size: 1.1em;
}

.meeting-control-panel {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
}

.control-section { flex: 1; }
.control-section h3 {
    font-family: var(--font-heading);
    color: var(--secondary-neon);
    margin-top: 0;
    margin-bottom: 15px;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.timezone-tag {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--primary-neon);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    display: flex; align-items: center; gap: 8px;
}
.timezone-tag .remove-tag { cursor: pointer; color: var(--accent-pink); }

#meeting-planner-grid-container {
    overflow-x: auto;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.mp-grid { display: flex; flex-direction: column; min-width: 800px; }

.grid-row {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.grid-row .header-cell:first-child {
    position: sticky; left: 0; z-index: 10;
    background: var(--bg-dark); 
    border-right: 1px solid var(--primary-neon);
}

.header-cell, .time-cell {
    flex: 1;
    padding: 12px 5px;
    text-align: center;
    font-size: 0.9em;
    display: flex; align-items: center; justify-content: center;
}

.header-row {
    background: rgba(0,0,0,0.3);
    font-weight: bold;
    font-family: var(--font-heading);
    color: var(--primary-neon);
}

.cell-green { background: rgba(0, 255, 159, 0.15); color: var(--accent-green); border: 1px solid transparent; }
.cell-yellow { background: rgba(255, 215, 0, 0.15); color: var(--accent-gold); }
.cell-gray { background: rgba(255, 255, 255, 0.02); color: var(--text-muted); opacity: 0.7; }

.grid-row.best-time {
    border: 2px solid var(--primary-neon);
    background: rgba(0, 242, 255, 0.05);
    position: relative; z-index: 5;
}

.age-result-card {
    @extend .result-card; 
    border-top-color: var(--accent-green); 
}

.age-big-text {
    font-family: var(--font-heading);
    font-size: 2em;
    color: #fff;
    line-height: 1.4;
    margin: 20px 0;
}
.age-big-text span {
    color: var(--accent-green);
    font-size: 1.2em;
    font-weight: 700;
    text-shadow: 0 0 10px var(--accent-green);
}

.age-details-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
    text-align: left;
}
.age-detail-box {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.age-detail-box h4 { color: var(--secondary-neon); margin: 0 0 5px 0; font-size: 0.9em; text-transform: uppercase; }

.zakat-result-card {
    @extend .result-card;
    border-top-color: var(--accent-gold);
}

.zakat-summary-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
    margin-bottom: 25px;
}
.zakat-sum-box {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid var(--accent-gold);
    padding: 15px; border-radius: 12px;
}
.z-lbl { display: block; font-size: 0.9em; color: var(--accent-gold); margin-bottom: 5px; text-transform: uppercase; }
.z-val { font-family: 'Orbitron', monospace; font-size: 1.4em; font-weight: bold; }

.z-final-amount {
    font-family: 'Orbitron', monospace;
    font-size: 3em;
    color: var(--accent-gold);
    text-shadow: 0 0 20px var(--accent-gold);
    margin: 10px 0;
}

.d2d-result-card {
    @extend .result-card;
    border-top-color: var(--primary-neon);
}
.d2d-big-days {
    font-family: 'Orbitron', monospace;
    font-size: 4em;
    font-weight: 700;
    color: var(--primary-neon);
    text-shadow: 0 0 20px var(--primary-neon);
    display: block;
    line-height: 1;
}

.week-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.5);
    border: 4px solid var(--primary-neon);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.4), inset 0 0 20px rgba(0, 242, 255, 0.2);
    margin: 20px auto;
}
.big-digit {
    font-family: 'Orbitron', sans-serif;
    font-size: 5em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.mode-tab-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    font-family: var(--font-heading);
}
.mode-tab-btn.active {
    background: var(--primary-neon);
    color: #000;
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.payroll-dashboard {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 20px;
}
.pay-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex; flex-direction: column; justify-content: center;
}
.pay-card.main {
    background: linear-gradient(135deg, rgba(0, 255, 159, 0.1), rgba(0, 255, 159, 0.05));
    border-color: var(--accent-green);
    grid-row: span 2;
    text-align: center;
}
.pay-card.main .pay-value {
    font-size: 2.5em;
    color: var(--accent-green);
    text-shadow: 0 0 15px var(--accent-green);
}

.next-prayer-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid var(--accent-gold);
    border-radius: 16px; padding: 30px;
    text-align: center; position: relative; overflow: hidden;
}
.np-time {
    font-family: 'Orbitron', monospace; font-size: 3.5em; color: var(--accent-gold);
    text-shadow: 0 0 20px var(--accent-gold);
}

.mosque-bg-icon {
    position: absolute; bottom: -20px; right: -20px; font-size: 12em;
    color: var(--accent-gold); opacity: 0.05; pointer-events: none;
}

@media print {
    @page { margin: 10mm; size: A4; }
    body {
        background: #fff !important; color: #000 !important;
        font-family: 'Inter', sans-serif !important;
        padding-top: 0 !important;
        background-image: none !important; 
    }
    
    .sticky-header, .bg-orb, .breadcrumbs, footer, .no-print, .hero-section, #ramadan-controls {
        display: none !important;
    }

    .container { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }

    .print-header {
        display: block !important; text-align: center;
        border-bottom: 2px solid #000; margin-bottom: 20px; padding-bottom: 10px;
    }
    .print-logo { font-size: 24px; font-weight: bold; color: #000; }

    #ramadan-grid { display: block !important; }
    .table-container {
        box-shadow: none !important; background: none !important; border: none !important;
    }
    .ramadan-table {
        width: 100%; border-collapse: collapse; font-size: 10pt;
    }
    .ramadan-table th {
        background-color: #e5e7eb !important; color: #000 !important;
        border: 1px solid #000; font-weight: bold; padding: 8px;
    }
    .ramadan-table td {
        color: #000 !important; border: 1px solid #ccc; padding: 6px 8px; text-align: center;
    }
    
    .active-day-row {
        background-color: #dbeafe !important; 
    }
    .active-day-row td {
        border: 2px solid #000 !important; font-weight: bold;
    }
}

@media (max-width: 768px) {
  /* 1. Force containers to fit screen */
  .container, .calculator-wrapper {
    padding-left: 15px; padding-right: 15px;
    width: 100%; box-sizing: border-box; overflow-x: hidden;
  }

  /* 2. Stack Grids */
  .calendar-wrapper-flex,
  .timezone-converter-wrapper,
  .meeting-control-panel,
  .payroll-dashboard,
  .age-details-grid,
  .zakat-summary-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 3. Meeting Planner Specifics */
  .control-section {
      border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1);
      padding-bottom: 20px;
  }
  #meeting-planner-grid-container {
      
      -webkit-overflow-scrolling: touch;
      
      position: relative;
  }
  #meeting-planner-grid-container::after {
      content: '→ Scroll to view times →';
      position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
      font-size: 0.8em; color: var(--primary-neon); opacity: 0.7;
      pointer-events: none;
  }

  /* 4. Timezone Converter Swap Button Rotation */
  .swap-column { transform: rotate(90deg); }

  /* 5. Adjust large text sizes for mobile */
  .live-clock-box #live-clock-time { font-size: 2.8em; }
  .big-digit, .d2d-big-days { font-size: 3.5em; }
  .sw-unit span:first-child { font-size: 2.2em; }

  /* 6. Stopwatch/Timer Visualizer scaling */
  .stopwatch-display-wrapper, .timer-visualizer {
      transform: scale(0.85);
      margin-bottom: 10px;
  }
}

:root {
  --bg-dark: #0f172a;
  --bg-panel: rgba(30, 41, 59, 0.6);
  --bg-card: rgba(51, 65, 85, 0.4);
  --bg-input: #1e293b;
  --primary-neon: #06b6d4;
  
  --secondary-neon: #8b5cf6;
  
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --accent-gold: #fbbf24;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-blur: blur(12px);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

.sticky-header {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.language-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.8);
  
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
}

.language-selector::after {
  content: "▼";
  font-size: 0.6em;
  color: var(--text-muted);
  position: absolute;
  right: 10px;
  pointer-events: none;
}

.main-nav {
  background: rgba(15, 23, 42, 0.95);
  width: 100%;
  border-top: var(--glass-border);
}
.main-nav ul li a:hover {
  color: var(--primary-neon);
  background: rgba(255,255,255,0.03);
}

.dropdown {
  position: relative;
}

.mobile-menu-icon {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #fff;
}

.mobile-menu-icon.active i {
  transform: rotate(90deg);
}

.hero-section {
  padding: 40px 0;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.glass-panel {
  background: var(--bg-panel);
  border: var(--glass-border);
  border-radius: 12px;
}

.live-clock-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  border-top: 4px solid var(--primary-neon);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}
.live-clock-box .glow-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.history-teaser-box {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  min-height: 250px;
}

/* 1. The Container Window: Must have NO padding and Hidden Overflow */

.slider-viewport {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  
  padding: 0;
  
  display: flex;
  align-items: center;
  border-radius: 0 0 16px 16px;
  
}
/* 2. The Track: Holds all slides */

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  
  gap: 0;
}
/* 3. The Individual Slide: Takes up 100% width, Padding goes HERE */

.slide {
  flex: 0 0 100%;
  
  min-width: 100%;
  
  max-width: 100%;
  box-sizing: border-box;

  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  gap: 15px;
}

.grid-category-title {
  color: var(--text-main);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
  margin-top: 50px;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-box {
  padding: 25px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.tool-box:hover {
  transform: translateY(-5px);
  background: rgba(51, 65, 85, 0.8);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  margin-bottom: 15px;
}
.icon-box.accent-purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--secondary-neon);
}
.icon-box.accent-purple1 {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-neon);
}
.tool-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-neon);
  text-decoration: none;
  font-weight: bold;
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  padding: 15px;
  backdrop-filter: blur(4px);
}
.modal-content {
  max-width: 600px;
  width: 100%;
  animation: modalFadeIn 0.25s;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #1e293b;
  border: 1px solid #334155;
}

.site-footer {
  background: rgba(15, 23, 42, 0.95);
  padding: 50px 20px;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {

  .history-card {
    flex-direction: column;
    height: auto;
  }

  .history-card-img {
    width: 100%;
    height: 200px;
    
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-right: none;
  }

  .history-card-content {
    padding: 20px;
  }

  .history-page-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .history-grid-view {
    grid-template-columns: 1fr;
  }
}

.sw-btn.icon-only {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
  font-size: 1.2em;
}

@media (max-width: 900px) {
  /* 1. Stack the columns vertically */

  .timezone-converter-wrapper {
    flex-direction: column !important;
    
    gap: 0px !important;
    
    padding: 20px 15px !important;
    
  }

  /* 2. Full Width Columns */

  .timezone-column {
    width: 100% !important;
    min-width: 0 !important;
    
    display: flex;
    flex-direction: column;
  }

  /* 3. The Swap Button Area */

  .swap-column {
    width: 100%;
    height: 60px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: -10px 0 !important;
    
    z-index: 10;
    
    transform: none !important;
    
  }

  /* 4. The Swap Button itself */

  .swap-column .sw-btn {
    transform: rotate(90deg);
    
    background-color: var(--primary-neon);
    
    color: #000;
    border: 2px solid #fff;
    width: 50px;
    height: 50px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    
  }

  /* 5. Fix Input Overflows (Critical) */

  .timezone-column input,
  .tz-search-input,
  .flatpickr-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    
  }

  /* 6. Adjust Search Icon position */

  .search-icon-input {
    top: 40px !important;
    
  }

  /* 7. Result Text Sizing */

  .live-result {
    font-size: 2.2em;
    
  }

  .calculator-container1 {
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

.search-item {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  
  gap: 4px;
  transition: 0.2s;
}
.search-item:hover * {
  color: #000 !important;
}
.search-row-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-item-details {
  font-size: 0.75em;
  color: var(--text-muted);
  font-style: italic;
}

.clock-search-results {
  position: absolute;
  top: 100%;
  
  left: 0;
  width: 100%;
  max-height: 300px;
  
  overflow-y: auto;
  
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0 0 12px 12px;
  z-index: 100;
  
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.clock-search-results::-webkit-scrollbar {
  width: 8px;
}
.clock-search-results::-webkit-scrollbar-track {
  background: #0f172a;
}
.clock-search-results::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
.clock-search-results::-webkit-scrollbar-thumb:hover {
  background: var(--primary-neon);
}

.prayer-header-section {
  text-align: center;
  margin-bottom: 30px;
}
.prayer-header-section h1 {
  margin: 0 0 10px 0;
  color: var(--primary-neon);
  
  font-family: var(--font-heading);
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}
.prayer-header-section p {
  color: var(--text-muted);
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto;
}

.styled-select {
  width: 100%;
  height: 50px;
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0 15px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-locate {
  height: 50px;
  width: 50px;
  background: var(--primary-neon);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2em;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s;
  flex-shrink: 0;
}
.btn-locate:hover {
  background: #fff;
  box-shadow: 0 0 15px var(--primary-neon);
}

/* 1. Next Prayer Card (Islamic Theme) */

.pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: radial-gradient(var(--accent-gold) 1.5px, transparent 1.5px),
        radial-gradient(var(--accent-gold) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  pointer-events: none;
  z-index: 1;
}

.mosque-bg-icon {
  position: absolute;
  bottom: -10px;
  
  right: -10px;
  
  font-size: 14em;
  
  color: #000;
  
  opacity: 0.3;
  
  z-index: 1;
  pointer-events: none;
  text-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
  
}
/* 2. List Card */

.popular-locations {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.location-tags a {
  background: rgba(255,255,255,0.05);
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9em;
  transition: 0.2s;
}
.location-tags a:hover {
  background: var(--primary-neon);
  color: #000;
}

@media (max-width: 900px) {
  .prayer-content-wrapper {
    grid-template-columns: 1fr;
  }

  .prayer-input-row {
    flex-direction: column;
  }

  .location-search-wrapper,
  .method-wrapper,
  .btn-locate {
    width: 100%;
  }

  .next-prayer-card {
    min-height: auto;
  }
}

.clock-card .city {
  font-size: 1.6em;
  font-weight: bold;
  color: #f0f0f0;
  margin: 0;
}

.clock-search-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 600px;
}
#timezone-search {
  width: 100%;
  padding: 15px 15px 15px 50px;
  
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  color: #fff;
  font-size: 1.1em;
  transition: 0.3s;
  box-sizing: border-box;
  
}
#timezone-search:focus {
  border-color: var(--primary-neon);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
  outline: none;
}

.clock-search-results.hidden {
  display: none;
}

.clock-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
  .world-clock-controls {
    padding: 15px;
    flex-direction: column;
    align-items: stretch;
  }

  .remove-clock-btn {
    opacity: 1;
    color: #555;
  }

}

.input-group {
  margin-bottom: 20px;
  width: 100%;
}
.input-group input,
.input-group select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  background-color: var(--bg-input);
  border: 1px solid #555;
  color: #f0f0f0;
  border-radius: 4px;
  font-size: 1em;
}

.sw-btn-start:hover {
  background: #28a745;
  color: #000;
}
.sw-btn-stop:hover {
  background: #dc3545;
  color: #000;
}

.sw-btn {
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  background: rgba(255,255,255,0.05);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sw-btn i {
  font-size: 0.9em;
}

@media (max-width: 600px) {
  .sw-unit {
    min-width: auto;
  }

  .sw-unit span:first-child {
    font-size: 2.2em;
  }

  #sw-milliseconds {
    font-size: 1.5em !important;
  }

  .sw-separator {
    font-size: 1.5em;
  }

  .sw-btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

.btn-icon-small {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  width: 35px;
  height: 35px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
}
.btn-icon-small:hover {
  background: var(--primary-neon);
  color: #000;
}

body {
  overflow-x: hidden;
  
}

#stopwatch-app:fullscreen .freelancer-panel,
#stopwatch-app:fullscreen .sw-toolbar,
#stopwatch-app:fullscreen .sw-actions {
  display: none !important;
}

#stopwatch-app:fullscreen .widget-branding {
  display: block !important;
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  opacity: 0.7;
  pointer-events: none;
  
}

#fs-exit-btn {
  display: none;
  
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: rgba(239, 68, 68, 0.2);
  
  border: 1px solid #ef4444;
  color: #fff;
  padding: 8px 15px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  backdrop-filter: blur(5px);
}
#stopwatch-app:fullscreen #fs-exit-btn {
  display: flex;
  
  align-items: center;
  gap: 5px;
}

@media (max-width: 768px) {

  #stopwatch-app:fullscreen .widget-branding {
    font-size: 0.7em;
    bottom: 10px;
  }

  #stopwatch-app:fullscreen .stopwatch-display-wrapper {
    transform: scale(1);
    margin: 40px 0 20px 0;
  }

  #stopwatch-app:fullscreen .sw-unit span:first-child {
    font-size: 13vw;
    min-width: 1.8ch;
    
  }

  #stopwatch-app:fullscreen .sw-separator {
    font-size: 8vw;
  }

  #stopwatch-app:fullscreen .sw-label {
    font-size: 3vw;
  }
}

@keyframes slideLeftFade {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
#hourly-rate {
  padding: 10px 10px 10px 25px;
  
  width: 100px;
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  font-size: 1.1em;
  transition: 0.2s;
  text-align: center;
}
#hourly-rate:focus {
  outline: none;
  border-color: var(--primary-neon);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

@media (max-width: 600px) {
  .freelancer-panel {
    flex-direction: row;
    
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px;
  }

  #stopwatch-app:fullscreen .freelancer-panel {
    display: none !important;
  }
}

@keyframes flash {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

@media (max-width: 600px) {
  .timer-visualizer {
    width: 260px;
    height: 260px;
  }

  .progress-ring {
    width: 100%;
    height: 100%;
  }

  .t-unit span:first-child {
    font-size: 2em;
  }

  .timer-input-group input {
    font-size: 1.2em;
    padding: 8px;
  }

  .t-sep {
    font-size: 1.5em;
  }

  .timer-input-group input {
    font-size: 1.2em;
    padding: 8px;
  }
}

#timer-app:fullscreen .sw-toolbar,
#timer-app:fullscreen .timer-presets,
#timer-app:fullscreen .timer-inputs {
  display: none !important;
}

#timer-app:fullscreen .widget-branding {
  display: block !important;
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  opacity: 0.7;
}
#timer-app:fullscreen #fs-exit-btn {
  display: flex !important;
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fff;
  padding: 8px 15px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 999;
}

@media (max-width: 768px) {
  #timer-app:fullscreen .timer-visualizer {
    transform: scale(1.2);
    
    margin-bottom: 40px;
  }

  #timer-app:fullscreen .timer-controls {
    transform: scale(1);
  }
}

.calendar-weekdays,
.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.calendar-dates div {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  border-radius: 4px;
  min-height: 80px;
  transition: 0.3s;
  background: rgba(255,255,255,0.02);
}
.calendar-dates div.current-day {
  background-color: var(--primary-neon);
  color: #000;
  box-shadow: 0 0 15px var(--primary-neon);
}

.styled-select {
  width: 100%;
  padding: 10px;
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .holiday-hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .hero-countdown {
    width: 100%;
  }

  .holidays-controls {
    flex-direction: column;
    align-items: stretch;
  }
}

.calendar-wrapper-flex {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.calendar-main {
  flex: 2;
  
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
}

.calendar-date.empty {
  background: transparent;
  cursor: default;
}

.calendar-sidebar {
  flex: 1;
  
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.highlight {
  color: var(--accent-gold);
}
.btn-sm {
  padding: 5px 10px;
  font-size: 0.8em;
  border-radius: 4px;
  cursor: pointer;
  border: none;
}

@media (max-width: 900px) {
  /* 1. Stack Layout */

  .calendar-wrapper-flex {
    flex-direction: column;
  }

  .calendar-main,
  .calendar-sidebar {
    width: 100%;
    padding: 0;
  }

  /* 2. Grid Spacing */

  .calendar-weekdays,
  .calendar-dates {
    gap: 2px;
  }

  .calendar-date div {
    min-height: auto;
  }

  /* 3. STRICT CELL SIZING (The Fix) */

  .calendar-date {
    
    height: 55px !important;
    min-height: 55px !important;
    max-height: 55px !important;
    
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    
    align-items: center !important;
    padding: 5px 2px !important;
    
    overflow: hidden !important;
  }

  /* 4. Date Number */

  .date-num {
    font-size: 0.9em;
    line-height: 1;
    margin-bottom: 4px;
    
    flex-shrink: 0;
    
  }

  /* 5. Event Container (Fixes the "Large Div") */

  .date-events {
    display: flex !important;
    flex-direction: row !important;
    
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    
    gap: 3px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
  }

  /* 6. The Dots (Fixes "Oval" / "Long Line") */

  .event-dot {
    
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    max-width: 6px !important;
    border-radius: 50% !important;
    
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    display: block !important;
  }

  .event-dot.holiday {
    background-color: #fca5a5 !important;
  }

  .event-dot.user {
    background-color: #6ee7b7 !important;
  }
}

.mosque-bg-icon {
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-size: 12em;
  color: var(--accent-green);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.islamic-cell.current-day {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--accent-green);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}
.islamic-cell.current-day .islamic-num {
  color: var(--accent-green);
}
.islamic-cell.current-day .gregorian-sub {
  color: #fff;
}

.islamic-cell.empty {
  background: transparent;
  border: none;
  cursor: default;
}

.sidebar-input {
  width: 100%;
  padding: 10px;
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-body);
}
.conversion-result {
  margin-top: 15px;
  background: rgba(16, 185, 129, 0.1);
  border-left: 3px solid var(--accent-green);
  padding: 15px;
  border-radius: 0 6px 6px 0;
}
.conversion-result small {
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75em;
}

.today-hijri-box {
  text-align: center;
  padding: 20px;
}
.today-month {
  display: block;
  font-size: 1.2em;
  color: #fff;
  margin-top: 5px;
}

.lunar-date {
  font-size: 0.85em;
  color: #fca5a5;
  
  text-align: right;
  font-weight: 600;
}

.lunar-term {
  font-size: 0.8em;
  color: var(--accent-gold);
  text-align: right;
  font-weight: bold;
  text-transform: uppercase;
}

.chinese-cell.current-day {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}
.chinese-cell.current-day .gregorian-date {
  color: #ef4444;
}
.chinese-cell.current-day .lunar-date {
  color: #fff;
}
.chinese-cell.empty {
  background: transparent;
  border: none;
}

.cn-value.highlight {
  color: var(--accent-gold);
}

.location-search-wrapper {
  position: relative;
  width: 100%;
}
.search-icon-fixed {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-neon);
  pointer-events: none;
}

@media (max-width: 900px) {
  /* 1. STACK THE RESULTS BOXES (Sun & Moon Cards) */

  .tool-grid-two-col {
    grid-template-columns: 1fr !important;
    
    gap: 20px;
  }

  /* 2. STACK THE CONTROLS (Search, Date, Button) */

  .sun-moon-controls {
    grid-template-columns: 1fr !important;
    
    gap: 15px;
    padding: 20px 15px !important;
    
    height: auto !important;
    
  }

  /* 3. FULL WIDTH INPUTS */

  .location-search-wrapper,
  #location-search,
  .date-input-wrapper,
  .date-input-wrapper input,
  #use-location-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 50px !important;
    
  }

  /* 4. Fix Search Icon Position */

  .search-icon-fixed {
    top: 50% !important;
  }

  /* 5. Adjust Moon Visualizer Size (Prevent it being too huge) */

  .moon-svg-wrapper {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
  }

  /* 6. Adjust Data Rows padding */

  .sun-data-row,
  .moon-data-row {
    padding: 12px 5px !important;
    
    font-size: 0.95em;
  }
}

.timezone-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}
.timezone-tag.home {
  background: rgba(6, 182, 212, 0.2);
  
  border-color: var(--primary-neon);
}

@media (max-width: 900px) {

@media (max-width: 900px) {
    /* 1. Stack the Main Control Panel */

    .meeting-control-panel {
      flex-direction: column;
      gap: 0;
      padding: 0 !important;
      overflow: hidden;
      
    }

    /* 2. Individual Sections (Search vs Date) */

    .control-section {
      width: 100%;
      padding: 25px 20px;
      
      box-sizing: border-box;
    }

    .control-section:first-child {
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .control-section.border-left {
      border-left: none;
      padding-left: 20px;
      
      padding-top: 25px;
    }

    /* 3. FIX THE DATE INPUT ROW */

    .date-nav-wrapper {
      display: flex;
      justify-content: space-between;
      
      align-items: stretch;
      
      gap: 10px;
      margin-bottom: 20px;
    }

    #meeting-date {
      flex-grow: 1;
      text-align: center;
      width: auto !important;
      
      min-width: 0;
      font-size: 1.1em;
      background: rgba(0,0,0,0.3);
      
    }

    .nav-arrow-btn {
      width: 50px;
      height: 50px;
      font-size: 1.2em;
      background: var(--primary-neon);
      
      color: #000;
      
      border: none;
    }

    /* 4. Tidy up the Legend */

    .legend {
      justify-content: center;
      
      background: rgba(255,255,255,0.05);
      padding: 10px;
      border-radius: 8px;
    }

    .legend-item {
      font-size: 0.8em;
      margin: 5px;
    }

    /* 5. FIX THE GRID VIEW BELOW */

    #meeting-planner-grid-container {
      
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      margin-top: 20px;
      border: 1px solid rgba(255,255,255,0.1);
      
      background: linear-gradient(to right, rgba(15,23,42,1) 30%, rgba(15,23,42,0)),
                    linear-gradient(to right, rgba(15,23,42,0), rgba(15,23,42,1) 70%) 0 100%,
                    radial-gradient(farthest-side at 0 50%, rgba(6,182,212,0.2), rgba(0,0,0,0)),
                    radial-gradient(farthest-side at 100% 50%, rgba(6,182,212,0.2), rgba(0,0,0,0)) 0 100%;
      background-repeat: no-repeat;
      background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
      background-position: 0 0, 100% 0, 0 0, 100% 0;
      background-attachment: local, local, scroll, scroll;
    }

    .grid-row .header-cell:first-child {
      position: sticky;
      left: 0;
      z-index: 20;
      background: #1e293b;
      
      border-right: 1px solid rgba(255,255,255,0.1);
      box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    }

    #meeting-planner-grid-container::-webkit-scrollbar {
      -webkit-appearance: none;
      height: 6px;
      
    }

    #meeting-planner-grid-container::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 3px;
      margin: 0 5px;
    }

    #meeting-planner-grid-container::-webkit-scrollbar-thumb {
      background-color: var(--primary-neon);
      
      border-radius: 3px;
      box-shadow: 0 0 5px var(--primary-neon);
      
    }

    /* 2. Add an Inner Shadow to show content is "cut off" on the right */

    #meeting-planner-grid-container {
      
      box-shadow: inset -20px 0 20px -10px rgba(0, 0, 0, 0.8) !important;
    }

    /* 3. Add a "Swipe" Text Hint above the grid */

    .meeting-control-panel::after {
      content: "↔ Swipe table to view hours";
      display: block;
      text-align: center;
      font-size: 0.85em;
      color: var(--primary-neon);
      font-weight: bold;
      letter-spacing: 1px;
      margin-top: 15px;
      padding-top: 15px;
      border-top: 1px dashed rgba(255,255,255,0.1);
      
      animation: swipePulse 2s infinite;
    }

@keyframes swipePulse {
      0% {
        opacity: 0.6;
        transform: translateX(0);
      }

      50% {
        opacity: 1;
        transform: translateX(3px);
      }

      100% {
        opacity: 0.6;
        transform: translateX(0);
      }
}
}
}

.mobile-ad-banner-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #2c2c2c;
  min-height: 50px;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  color: #888;
}

.hidden {
  display: none;
}

.page-content,
.legal-page-content {
  background: var(--bg-panel);
  
  backdrop-filter: blur(10px);
  
  border: var(--glass-border);
  
  border-radius: 12px;
  
  padding: 30px 40px;
  
  margin-top: 40px;
  
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  color: var(--text-muted);
  
  line-height: 1.8;
  
  font-size: 1.05em;
}

.page-content h1,
.legal-page-content h1 {
  color: #fff;
  font-family: var(--font-heading);
  border-bottom: 2px solid var(--primary-neon);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.page-content p,
.legal-page-content p {
  margin-bottom: 15px;
  color: #e2e8f0;
  
}

.page-content ul,
.legal-page-content ul {
  margin-bottom: 20px;
  padding-left: 10px;
}

.page-content ul li::before,
.legal-page-content ul li::before {
  content: "\f054";
  
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-pink);
  
  font-size: 0.8em;
}

.page-content a,
.legal-page-content a {
  color: var(--primary-neon);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary-neon);
  transition: 0.3s;
}

@media (max-width: 768px) {
  .page-content,
  .legal-page-content {
    padding: 20px;
  }
}

.countdown-setup.fade-out {
  display: none;
}

.input-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.flatpickr-input {
  background: var(--bg-input) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: #fff !important;
  box-sizing: border-box !important;
  
  width: 100% !important;
  
  max-width: 100% !important;
}

@media (max-width: 768px) {
  .input-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .input-group input {
    width: 100%;
    box-sizing: border-box;
    
  }

  .countdown-presets {
    flex-wrap: wrap;
    border-radius: 12px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cd-number.accent-pink {
  color: var(--accent-pink);
  text-shadow: 0 0 25px var(--accent-pink);
}

@media (max-width: 768px) {
  #countdown-result-container {
    padding: 20px 10px;
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
  }

  #countdown-event-title {
    font-size: 1.5em;
    
    margin-bottom: 20px;
  }

  #countdown-display {
    gap: 10px;
    flex-wrap: wrap;
  }

  .cd-box {
    flex: 1 1 40%;
    
    max-width: 48%;
    
    min-width: 130px;
    
    padding: 15px 5px;
  }

  .cd-number {
    font-size: 2.5em;
    margin-bottom: 5px;
    text-shadow: 0 0 10px var(--primary-neon);
  }

  .cd-label {
    font-size: 0.7em;
  }
}

.calculator-wrapper {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.calculator-container {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.95em;
}
.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 1em;
  box-sizing: border-box;
}
.input-group input:focus {
  border-color: var(--primary-neon);
  outline: none;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.calculator-submit-btn,
#d2d-calculate-btn,
#loan-calculate-btn,
#savings-calculate-btn,
#retirement-calculate-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  font-weight: bold;
  background: var(--primary-neon);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 10px;
}
.calculator-submit-btn:hover {
  background: #fff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .zakat-grid {
    grid-template-columns: 1fr;
  }

  .radio-group {
    flex-direction: column;
  }

  .zakat-result-container {
    padding: 20px;
  }

  .z-final-amount {
    font-size: 2em;
  }
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon i {
  position: absolute;
  left: 15px;
  color: var(--primary-neon);
  font-size: 1.1em;
  pointer-events: none;
  z-index: 1;
}
.input-with-icon input {
  padding-left: 45px !important;
}

.week-result-card.hidden {
  display: none;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.week-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  
  background: rgba(15, 23, 42, 0.5);
  border: 3px solid var(--primary-neon);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4),
        inset 0 0 20px rgba(6, 182, 212, 0.2);
  margin-bottom: 20px;
}

.result-subtext {
  font-size: 1.4em;
  color: var(--secondary-neon);
  font-family: var(--font-heading);
  font-weight: bold;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(0,0,0,0.3);
}

.time-result-card.hidden {
  display: none;
}

.inter-linking-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.inter-linking-section h2 {
  text-align: center;
  color: var(--secondary-neon);
  font-family: var(--font-heading);
  margin-bottom: 30px;
}
.links-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.link-category-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  transition: 0.2s;
}
.link-category-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}
.link-category-card h3 {
  margin-top: 0;
  color: #fff;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.link-list li {
  margin-bottom: 8px;
}
.link-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95em;
  transition: 0.2s;
  display: block;
  padding: 5px 0;
}
.link-list a:hover {
  color: var(--primary-neon);
  padding-left: 5px;
}

@media (max-width: 600px) {
  .t-val {
    font-size: 1.8em;
  }
}

.age-result-card.hidden {
  display: none;
}

.age-main-result {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.age-main-result h3 {
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9em;
  margin: 0 0 15px 0;
}

.age-big-text {
  font-family: var(--font-heading);
  font-size: 1.8em;
  color: #fff;
  line-height: 1.4;
}

.age-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.age-detail-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9em;
  line-height: 1.5;
}
.age-detail-box strong {
  color: #fff;
}

.d2d-result-card.hidden {
  display: none;
}

.d2d-hero-stat {
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 20px;
}
.d2d-label-main {
  color: var(--primary-neon);
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.d2d-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.d2d-mini-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.d2d-val {
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  font-family: var(--font-heading);
}
.d2d-lbl {
  font-size: 0.8em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 5px;
}
@media (max-width: 600px) {
  .d2d-breakdown-grid {
    gap: 10px;
  }

  .d2d-big-days {
    font-size: 2.8em;
  }

  .d2d-val {
    font-size: 1.2em;
  }
}

.mini-input {
  width: 100%;
  padding: 8px;
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #fff;
  text-align: center;
  font-family: var(--font-heading);
}

.mode-tab-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}
.mode-tab-btn:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.work-view.active {
  display: block;
}

.ts-header {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1fr 0.7fr 0.7fr 0.3fr;
  gap: 10px;
  padding: 0 10px 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 0.85em;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 10px;
}
.ts-row {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1fr 0.7fr 0.7fr 0.3fr;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,0.02);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid transparent;
}
.ts-row:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.ts-day-label {
  font-weight: bold;
  color: var(--secondary-neon);
}
.ts-total {
  font-weight: bold;
  color: #fff;
  text-align: right;
}
.btn-remove-row {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.2em;
  display: flex;
  justify-content: center;
}

.payroll-dashboard {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 20px;
}
.pay-label {
  font-size: 0.8em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.pay-value {
  font-family: var(--font-heading);
  font-size: 1.4em;
  color: #fff;
}

.weekday-result-card.hidden {
  display: none;
}

.weekday-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9em;
  margin-bottom: 10px;
}
.weekday-name {
  font-family: var(--font-heading);
  font-size: 3.5em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.2);
  line-height: 1.1;
  margin-bottom: 5px;
}
.weekday-type {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 25px;
}
.type-weekend {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid #f472b6;
}
.type-workday {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #34d399;
}

.weekday-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}
.stat-box {
  display: flex;
  flex-direction: column;
}
.stat-val {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--primary-neon);
  font-family: var(--font-heading);
}
.stat-lbl {
  font-size: 0.75em;
  color: var(--text-muted);
  margin-top: 4px;
}
@media (max-width: 600px) {
  .weekday-name {
    font-size: 2.5em;
  }

  .weekday-stats {
    gap: 10px;
  }

  .stat-val {
    font-size: 1.1em;
  }
}

.roman-result-card.hidden {
  display: none;
}

.roman-equation-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.roman-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.roman-val {
  font-family: var(--font-heading);
  font-size: 2.5em;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.roman-val.accent {
  color: var(--accent-gold);
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}
.roman-lbl {
  font-size: 0.8em;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}
.roman-equal-sign {
  font-size: 2em;
  color: rgba(255,255,255,0.2);
}
.btn-copy-roman {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9em;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-copy-roman:hover {
  background: var(--accent-gold);
  color: #000;
}
@media (max-width: 600px) {
  .roman-equation-wrapper {
    flex-direction: column;
    gap: 15px;
  }

  .roman-equal-sign {
    transform: rotate(90deg);
  }
}

.calc-view {
  width: 100%;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.calc-view.hidden-view {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.calc-view.active-view {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-calc-again {
  width: 100%;
  padding: 15px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-muted);
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.unix-result-card.hidden {
  display: none;
}

@media (max-width: 600px) {
  .unix-hero-val {
    font-size: 1.4em;
  }

  .unix-ticker-val {
    font-size: 1.8em;
  }

  .unix-row {
    flex-direction: column;
    gap: 5px;
    text-align: left;
  }

  .u-val {
    text-align: left;
  }
}

.breadcrumbs {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .breadcrumbs {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }
}

.btn-locate {
  flex: 0 0 50px;
  
  height: 50px;
  background: var(--primary-neon);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2em;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s;
}
.btn-locate:hover {
  background: #fff;
  box-shadow: 0 0 15px var(--primary-neon);
}

.highlight-text h3 {
  margin: 0 0 5px 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-neon);
}

.btn-sm {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.85rem;
  color: #fff;
  text-decoration: underline;
}

.active-day-row {
  background: rgba(6, 182, 212, 0.15) !important;
  
  position: relative;
}
.active-day-row td {
  color: #fff;
  font-weight: 700;
  border-top: 1px solid rgba(6, 182, 212, 0.3);
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
}
.active-day-row td:first-child {
  border-left: 3px solid var(--primary-neon);
}

.print-header {
  display: none;
}

@media print {
@page {
    margin: 10mm;
    size: A4;
}

  /* 1. Reset Body for Print */

  body {
    background: #fff !important;
    color: #000 !important;
    font-family: 'Inter', sans-serif !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding-top: 0 !important;
  }

  /* 2. Hide Non-Essentials */

  .no-print,
  header,
  footer,
  .bg-orb,
  .mobile-ad-banner-sticky,
  .breadcrumbs {
    display: none !important;
  }

  /* 3. Show Custom Print Header */

  .print-header {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
  }

  .print-logo {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
  }

  #print-location-title {
    font-size: 18px;
    margin: 0;
    text-transform: uppercase;
  }

  /* 4. Reset Container Widths */

  .container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #ramadan-grid {
    display: block !important;
    margin: 0 !important;
  }

  /* 5. Table Styling for Paper */

  .table-container {
    box-shadow: none !important;
    background: none !important;
    border: none !important;
    overflow: visible !important;
  }

  .ramadan-table {
    border: 1px solid #000;
    width: 100%;
    font-size: 10pt;
  }

  .ramadan-table th {
    background-color: #e5e7eb !important;
    
    color: #000 !important;
    border: 1px solid #000;
    font-weight: bold;
  }

  .ramadan-table td {
    color: #000 !important;
    border: 1px solid #ccc;
    padding: 6px 10px;
  }

  .active-day-row {
    background-color: #cfFAfe !important;
    
    border-left: none !important;
    
  }

  .active-day-row td {
    color: #000 !important;
    border: 1px solid #000;
    
  }

  .today-highlight-card {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .control-row {
    flex-direction: column;
    align-items: stretch;
  }

  .search-group,
  .method-group,
  .btn-locate {
    width: 100%;
  }

  .timings-display {
    font-size: 1.1rem;
  }

  .highlight-content {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {

  .adj-group {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* 1. Force the Main Container to fit screen */

  .calculator-container,
  .countdown-setup {
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    
  }

  /* 2. Switch Inputs from Grid to Flex Column (Safer on mobile) */

  .input-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    gap: 5px !important;
  }

  /* 3. Force Input Containers to shrink */

  .input-group {
    width: 100% !important;
    min-width: 0 !important;
    
    margin: 0 !important;
  }

  /* 4. FORCE Inputs to stay inside */

  .input-group input,
  .flatpickr-input,
  #target-date,
  #target-time,
  #event-name {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    
    min-width: 0 !important;
    margin: 0 !important;
  }

  /* 5. Fix the Preset Buttons Container (It often pushes the width out) */

  .countdown-presets {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
}