/* RevAura RCM - Enterprise Dark Glassmorphic Design System (Mobile Responsive) */

:root {
  --bg-deep: #06090f;
  --bg-surface: #0b111e;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(22, 33, 58, 0.75);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-glow: rgba(45, 212, 191, 0.35);

  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --emerald-400: #34d399;
  --emerald-500: #10b981;

  /* --- Glassmorphism tokens --- */
  --glass-blur: 22px;
  --glass-saturate: 1.4;
  --glass-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0) 100%);
  --glass-noise: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* Strict mobile viewport overflow prevention */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100%;
  position: relative;
  background-color: var(--bg-deep);
  color: #e2e8f0;
}

/* Ambient Background Glows */
.ambient-glow-teal {
  position: absolute;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.16) 0%, rgba(13, 148, 136, 0.03) 60%, transparent 80%);
  filter: blur(50px);
  pointer-events: none;
}

.ambient-glow-emerald {
  position: absolute;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.02) 60%, transparent 80%);
  filter: blur(55px);
  pointer-events: none;
}

/* Glassmorphism Panels */
.glass-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 45%),
    rgba(15, 23, 42, 0.45);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--glass-noise);
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.glass-panel:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 45%),
    rgba(22, 33, 58, 0.55);
  border-color: rgba(45, 212, 191, 0.3);
  border-top-color: rgba(45, 212, 191, 0.4);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(20, 184, 166, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.glass-panel-glow {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(11, 17, 30, 0.78) 100%);
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 6px)) saturate(var(--glass-saturate));
  backdrop-filter: blur(calc(var(--glass-blur) + 6px)) saturate(var(--glass-saturate));
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-top-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.5),
    0 0 34px -6px rgba(20, 184, 166, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.glass-panel-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--glass-noise);
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.glass-panel-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.55), transparent);
  pointer-events: none;
}

.glass-card-subtle {
  background: rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-subtle:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Glass Inputs */
.glass-input {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%), rgba(11, 17, 30, 0.65);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: all 0.2s ease;
  width: 100%;
}

.glass-input:focus {
  background: rgba(15, 23, 42, 0.92);
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.22), 0 0 18px rgba(45, 212, 191, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  outline: none;
}

/* Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  outline: none;
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2dd4bf;
  border: 3px solid #0f172a;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.8), 0 2px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2dd4bf;
  border: 3px solid #0f172a;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.8);
  cursor: pointer;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #06090f;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

/* Scrollbar hide for swipeable tabs */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Gradient Text Utilities */
.text-gradient-teal {
  background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 40%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glass Navbar / Announcement Bar */
.glass-header {
  background: rgba(6, 9, 15, 0.7);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px rgba(0, 0, 0, 0.35);
}

.glass-chip {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(45, 212, 191, 0.35);
}

/* Mobile Touch Support */
@media (max-width: 640px) {
  .service-tab-btn {
    -webkit-tap-highlight-color: transparent;
  }
}
