@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --background: #000000;
  --color-purple: #9d00ff;
  --color-red: #ff0033;
  --color-green: #00ff66;
  --color-blue: #3b82f6;
  --border-light: rgba(255, 255, 255, 0.04);
}

body {
  background: var(--background);
  color: #e5e5e5;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

.font-outfit {
  font-family: 'Outfit', sans-serif;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

.pattern-bg {
  background-image: radial-gradient(rgba(157, 0, 255, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}

.bg-dot {
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Reveal-on-Hover Scrollbars */
* {
  scrollbar-width: thin !important;
  scrollbar-color: transparent transparent !important;
}

*:hover {
  scrollbar-color: rgba(157, 0, 255, 0.4) transparent !important;
}

/* SMS FILTER PILLS */
.sms-filter-pill {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  font-size: 9px;
  font-weight: 900;
  color: #888;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  outline: none;
  cursor: pointer;
  text-transform: uppercase;
}

.sms-filter-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #bbb;
}

.sms-filter-pill.active {
  background: rgba(157, 0, 255, 0.1);
  border-color: rgba(157, 0, 255, 0.4);
  color: #d182ff;
  box-shadow: 0 0 15px rgba(157, 0, 255, 0.1);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* SCROLL TO TOP UTILS */
#global-scroll-top.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

#global-scroll-top {
  transform: translateY(20px) scale(0.8);
  opacity: 0;
  pointer-events: none;
}

::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb {
  background: transparent !important;
  border-radius: 10px !important;
  transition: background 0.3s ease !important;
}

*:hover::-webkit-scrollbar-thumb {
  background: rgba(157, 0, 255, 0.4) !important;
}

::-webkit-scrollbar-thumb:hover {
  background: #9d00ff !important;
  box-shadow: 0 0 10px #9d00ff !important;
}

/* PREDICTIVE PROTOCOL: UNSTABLE STATE */
.status-dot.unstable {
  background-color: #555555 !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
  animation: pulse-grey 1.5s infinite ease-in-out;
}

@keyframes pulse-grey {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.predictive-indicator {
  padding: 0 6px;
  height: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 7px;
  font-weight: 900;
  color: #777;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  text-transform: uppercase;
  animation: flicker-grey 2s infinite;
}

@keyframes flicker-grey {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Layout Utilities */
.portal {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
}

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.flex-1 {
  flex: 1;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.w-\[15\%\] {
  width: 15%;
}

.w-\[20\%\] {
  width: 20%;
}

.table-fixed {
  table-layout: fixed;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-0 {
  margin: 0;
}

.p-0 {
  padding: 0;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.p-10 {
  padding: 2.5rem;
}

.p-12 {
  padding: 3rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.pl-3 {
  padding-left: 0.75rem;
}

.pl-8 {
  padding-left: 2rem;
}

.pr-1 {
  padding-right: 0.25rem;
}

.pr-8 {
  padding-right: 2rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-auto {
  margin-top: auto;
}

.pt-4 {
  padding-top: 1rem;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.shrink-0 {
  flex-shrink: 0;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-\[200\] {
  z-index: 200;
}

.z-\[500\] {
  z-index: 500;
}

/* Text */
.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-base {
  font-size: 1rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-black {
  font-weight: 900;
}

.font-bold {
  font-weight: 700;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.tracking-tighter {
  letter-spacing: -0.05em;
}

.tracking-\[0\.2em\] {
  letter-spacing: 0.2em;
}

.tracking-\[0\.3em\] {
  letter-spacing: 0.3em;
}

.tracking-\[0\.5em\] {
  letter-spacing: 0.5em;
}

.tracking-\[1em\] {
  letter-spacing: 1em;
}

.leading-none {
  line-height: 1;
}

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

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-white {
  color: white;
}

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

.text-purple-50 {
  color: rgba(157, 0, 255, 0.5);
}

.text-red {
  color: var(--color-red);
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

/* Hex color utilities — used by index.html */
.text-\[\#333\] {
  color: #333;
}

.text-\[\#444\] {
  color: #444;
}

.text-\[\#555\] {
  color: #555;
}

.text-\[\#888\] {
  color: #888;
}

.text-\[\#aaa\] {
  color: #aaa;
}

.text-\[\#2a2a2a\] {
  color: #2a2a2a;
}

.text-\[\#e0e0e0\] {
  color: #e0e0e0;
}

.text-\[\#00ff66\] {
  color: #00ff66;
}

/* Font size utilities with arbitrary values */
.text-\[8px\] {
  font-size: 10px;
}

.text-\[9px\] {
  font-size: 11px;
}

.text-\[10px\] {
  font-size: 12px;
}

.text-\[12px\] {
  font-size: 13px;
}

.text-\[13px\] {
  font-size: 14px;
}

.text-\[15px\] {
  font-size: 16px;
}

/* Panels & Shadows */
.abyssal-panel {
  background: #030303;
  border: 1px solid var(--border-light);
}

.border-white-02 {
  border-color: rgba(255, 255, 255, 0.05);
}

.border-purple-500\/20 {
  border-color: rgba(157, 0, 255, 0.2);
}

.border-purple-500\/30 {
  border-color: rgba(157, 0, 255, 0.3);
}

.border-purple-500\/50 {
  border-color: rgba(157, 0, 255, 0.5);
}

.shadow-sidebar {
  box-shadow: inset -20px 0 40px rgba(0, 0, 0, 0.8);
}

.shadow-purple {
  box-shadow: 0 0 30px rgba(157, 0, 255, 0.4);
}

.shadow-purple-light {
  box-shadow: 0 0 20px rgba(157, 0, 255, 0.1);
}

.shadow-inner-dark {
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 1);
}

/* Premium Branding */
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #444 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.logo-box {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.logo-box-small {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.curse-logo-premium {
  margin-bottom: 3.5rem;
  gap: 1.5rem;
}

.logo-branding h1 {
  margin-bottom: 2px;
  letter-spacing: 0.3em;
  margin-left: 2px;
}

/* Inputs */
.input-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  background: #070707;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #444;
  font-size: 14px;
}

.input-wrapper input {
  width: 100%;
  padding: 1.1rem 1rem 1.1rem 3rem;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.input-wrapper:focus-within {
  border-color: var(--color-purple);
  box-shadow: 0 0 15px rgba(157, 0, 255, 0.2);
}

.input-wrapper:focus-within i {
  color: var(--color-purple);
}

#total-wipe-modal .input-wrapper:focus-within {
  border-color: var(--color-red) !important;
  box-shadow: 0 0 15px rgba(255, 0, 51, 0.2) !important;
}

#total-wipe-modal .input-wrapper:focus-within i {
  color: var(--color-red) !important;
}

/* Buttons */
.pill-btn {
  border: 1px solid var(--color-purple);
  background: transparent;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 12px;
  transition: 0.3s;
}

.neon-btn:hover {
  background: var(--color-purple);
  box-shadow: 0 0 25px var(--color-purple);
}

/* PREMIUM UTILITY BUTTONS (PURPLE/RED) */
.premium-btn-purple {
    background: linear-gradient(to right, rgba(157, 0, 255, 0.4), #000) !important;
    border: 2px solid #9d00ff !important;
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.4) !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    transition: all 0.3s ease !important;
}
.premium-btn-purple:hover {
    box-shadow: 0 0 25px rgba(157, 0, 255, 0.6) !important;
    filter: brightness(1.2);
}
.premium-btn-purple:active {
    transform: scale(0.95);
}

.premium-btn-red {
    background: linear-gradient(to right, rgba(255, 0, 51, 0.4), #000) !important;
    border: 2px solid #ff0033 !important;
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.4) !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    transition: all 0.3s ease !important;
}
.premium-btn-red:hover {
    box-shadow: 0 0 25px rgba(255, 0, 51, 0.6) !important;
    filter: brightness(1.2);
}
.premium-btn-red:active {
    transform: scale(0.95);
}


/* Sidebar Items */
.sidebar-width {
  width: 260px;
}

.nav-item {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #444;
  transition: 0.3s;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.nav-item.active {
  background: rgba(157, 0, 255, 0.1);
  border: 1px solid rgba(157, 0, 255, 0.2);
  color: #fff;
}

.filter-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.7rem 1.2rem;
  font-size: 11px;
  font-weight: 700;
  color: #555;
  transition: 0.2s;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.count-box {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 900;
  color: #555;
  background: transparent;
  border: none;
  padding: 0;
}

.nav-group .active .count-box {
  color: var(--color-purple);
  text-shadow: 0 0 10px rgba(157, 0, 255, 0.5);
}

.sidebar-divider {
  font-size: 8px;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: 0.3em;
  margin: 1.5rem 0 1rem 1rem;
  border-bottom: 1px solid #111;
  padding-bottom: 4px;
}


/* Table */
.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: -2px;
  /* Fine-tuned for precise alignment without overlap */
}

.status-on {
  background: var(--color-green);
  box-shadow: 0 0 10px var(--color-green);
}

.status-off {
  background: var(--color-red);
  box-shadow: 0 0 10px var(--color-red);
}

.table-row {
  transition: 0.2s;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.01);
}

.table-row:hover {
  background: rgba(157, 0, 255, 0.05);
  border-color: rgba(157, 0, 255, 0.1);
  color: #fff;
}

/* Modals */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: 0.3s;
}

.device-card {
  width: 700px;
  border-radius: 32px;
  overflow: hidden;
  background: #020202;
  transform: scale(1);
  animation: pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

.detail-item label {
  display: block;
  font-size: 8px;
  font-weight: 900;
  color: #444;
  letter-spacing: 0.3em;
  margin-bottom: 4px;
}

.detail-item p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.battery-bar-bg {
  height: 6px;
  background: #111;
  border-radius: 3px;
  overflow: hidden;
}

.battery-fill {
  height: 100%;
  width: 50%;
  background: var(--color-purple);
  border-radius: 3px;
  transition: 1s;
  box-shadow: 0 0 10px var(--color-purple);
}

/* Animation Utils */
.op-50 {
  opacity: 0.5;
}

.grayscale {
  filter: grayscale(1);
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.rotate-90:hover {
  transform: rotate(90deg);
}

.rotate-180 {
  transform: rotate(180deg);
}

@keyframes spin-once {
  from {
    transform: rotate(0deg);
  }

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

.animate-spin-once {
  animation: spin-once 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tag Menu */
#tag-menu {
  width: 220px;
  z-index: 600;
  padding: 0.5rem 0;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(157, 0, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(157, 0, 255, 0.2);
}

.tag-option {
  text-align: left;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: transparent;
  border: none;
  width: 100%;
  font-family: 'Inter', sans-serif;
  color: #aaa;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tag-option:hover {
  color: #fff;
  background: linear-gradient(90deg, rgba(157, 0, 255, 0.2), transparent);
  padding-left: 1.8rem;
}

/* Autofill overrides */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #0a0a0a inset !important;
  -webkit-text-fill-color: white !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* consolidated flick styles */
.flick-premium-link {
  color: #9d00ff !important;
  font-weight: 900;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
}

@keyframes flick-pulse-glow {
  0%, 100% {
    text-shadow: 0 0 10px #9d00ff, 0 0 20px #9d00ff;
    opacity: 1;
    color: #9d00ff;
  }
  50% {
    text-shadow: 0 0 20px #9d00ff, 0 0 40px #9d00ff;
    opacity: 0.6;
    color: #d182ff;
  }
}

.flick-glow-premium {
  animation: flick-pulse-glow 1.5s infinite ease-in-out;
  font-weight: 900 !important;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  color: #9d00ff !important;
}

/* -------------------------------------
   GLOBAL LOGO SYSTEM: Purple Flesh Curse Eye
   ------------------------------------- */
.global-eye-scale {
    transform: scale(0.55);
    transform-origin: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.logo-box-small .global-eye-scale {
    transform: scale(0.35);
}

.opt-14-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.opt-14-lids {
    width: 120px;
    height: 90px;
    background: #1a0033;
    border-radius: 50%;
    padding: 4px; /* flesh border */
    background: linear-gradient(135deg, #3b0764, #9333ea, #1a0033);
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.opt-14-sclera {
    width: 112px;
    height: 82px;
    background: radial-gradient(circle at 40% 40%, #f3e8ff 0%, #d8b4fe 40%, #6b21a8 80%, #000 100%);
    box-shadow: inset 0 0 20px #4c1d95;
    border-radius: 50%;
    clip-path: ellipse(48% 45% at 50% 50%); /* Start open */
    animation: o14-panicking-blink 7s infinite;
    position: relative;
}
.opt-14-iris {
    position: absolute;
    top: 50%; left: 50%;
    width: 50px; height: 50px;
    background: radial-gradient(circle, #ff00ff 0%, #9333ea 60%, #4c1d95 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 10px #000;
    animation: o14-seek 7s infinite;
}
.opt-14-pupil {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 12px; height: 12px;
    background: #000;
    border-radius: 50%;
    animation: o14-dilate 7s infinite;
}
.opt-14-highlight {
    position: absolute;
    top: 20px; left: 30px;
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    filter: blur(1px);
}
@keyframes o14-panicking-blink {
    0%, 28%, 32%, 78%, 82%, 100% { clip-path: ellipse(48% 45% at 50% 50%); }
    30%, 80% { clip-path: ellipse(48% 0% at 50% 50%); } /* Blinks */
    50%, 60% { clip-path: ellipse(48% 48% at 50% 50%); } /* Wide eyed panic */
}
@keyframes o14-seek {
    0%, 20% { top: 50%; left: 50%; }
    35%, 45% { top: 50%; left: 20%; } /* Looks sharply left */
    55%, 65% { top: 50%; left: 80%; } /* Looks sharply right */
    85%, 100% { top: 50%; left: 50%; }
}
@keyframes o14-dilate {
    0%, 20% { width: 12px; height: 12px; }
    50%, 60% { width: 6px; height: 6px; } /* Constricts in fear */
    85%, 100% { width: 12px; height: 12px; }
}

@keyframes arrow-center-to-top {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-18px); opacity: 0; }
}

.animate-arrow-click i {
  animation: arrow-center-to-top 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}