@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* ============================================================
   BLOOD × GOLD OS — FULL THEME (INTENSE, LIGHT + DARK)
   - Centered OS window (max-width: 1100px)
   - Hybrid height (min + max, internal scroll)
   - Intense Red × Gold neon
   - Hybrid glass inputs (glass + readable text)
   - Full loading screen
   - Light + Dark mode
   ============================================================ */

/* ---------------------------
   Root variables (light mode)
   --------------------------- */
:root {
  --red1: #ff0033;
  --red2: #ff3355;
  --red3: #ff5577;

  --gold1: #ffd700;
  --gold2: #ffea8a;
  --gold3: #ffcc33;

  --bg: #050308;
  --panel-bg: rgba(10, 5, 15, 0.92);
  --panel-inner-bg: rgba(5, 0, 10, 0.96);
  --text-fallback: #ffeaa0;
  --muted: rgba(255, 215, 0, 0.16);

  --z-loading: 9999;
}

/* ---------------------------
   Global reset & layout
   --------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #1a0008 0, #050308 40%, #000 100%);
  font-family: 'Orbitron', sans-serif;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-fallback);
}

/* ---------------------------
   Animated gradient text (typographic elements only)
   Excludes form controls to avoid accidental overrides
   --------------------------- */
.glow-text,
h1, h2, h3, h4, h5, h6,
p, span, a, small {
  background: linear-gradient(
    90deg,
    var(--red1),
    var(--gold1),
    var(--red2),
    var(--gold2),
    var(--red3),
    var(--gold3)
  );
  background-size: 350% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: textFlow 3.2s linear infinite;
  text-shadow: 0 0 22px rgba(255, 215, 0, 0.35);
}

@keyframes textFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

/* Prevent gradient text from cascading into form controls when they are children */
.glow-text :is(input, textarea, select, button),
h1 :is(input, textarea, select, button),
h2 :is(input, textarea, select, button),
h3 :is(input, textarea, select, button),
p :is(input, textarea, select, button),
span :is(input, textarea, select, button),
a :is(input, textarea, select, button),
small :is(input, textarea, select, button) {
  -webkit-text-fill-color: initial !important;
  color: inherit !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

/* ---------------------------
   Readability overrides for interactive elements
   --------------------------- */
button, .btn,
input, textarea, select,
.dash-icon,
.subcard *, .loading-line {
  -webkit-text-fill-color: initial;
  color: var(--text-fallback);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

/* ---------------------------
   Buttons
   --------------------------- */
.btn {
  display: inline-block;
  width: auto;
  min-width: 130px;
  padding: 12px 18px;
  margin-top: 12px;
  border-radius: 12px;
  background: radial-gradient(circle at top, rgba(40, 0, 10, 0.95), rgba(5, 0, 5, 0.98));
  border: 2px solid var(--red1);
  color: var(--gold1);
  font-size: 15px;
  cursor: pointer;
  box-shadow:
    0 0 22px rgba(255, 0, 50, 0.55),
    0 0 30px rgba(255, 215, 0, 0.35),
    inset 0 0 18px rgba(255, 0, 50, 0.4);
  transition: all 0.18s ease;
}

.btn:hover {
  background: radial-gradient(circle at top, rgba(80, 0, 20, 1), rgba(10, 0, 10, 1));
  box-shadow:
    0 0 40px rgba(255, 215, 0, 0.8),
    0 0 60px rgba(255, 0, 50, 0.7),
    inset 0 0 26px rgba(255, 215, 0, 0.6);
  transform: translateY(-1px);
}

/* ---------------------------
   Inputs (Hybrid glass)
   --------------------------- */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, rgba(10, 0, 10, 0.9), rgba(5, 0, 5, 0.98));
  position: relative;
  box-shadow:
    inset 0 0 18px rgba(255, 0, 50, 0.45),
    0 0 18px rgba(255, 215, 0, 0.35);
  outline: none;
  font-size: 14px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  -webkit-text-fill-color: var(--gold1);
  color: var(--gold1);
}
.input { margin-bottom: 14px; }

.input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold1);
  box-shadow:
    inset 0 0 26px rgba(255, 215, 0, 0.7),
    0 0 26px rgba(255, 215, 0, 0.7);
  background:
    linear-gradient(180deg, rgba(20, 0, 20, 0.95), rgba(10, 0, 10, 1));
}

::placeholder {
  color: rgba(255, 235, 180, 0.9);
  opacity: 1;
}

/* ---------------------------
   Loading overlay
   --------------------------- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1a0008 0, #050308 40%, #000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: var(--z-loading);
  overflow: hidden;
  pointer-events: auto;
}

/* Holographic grid */
.loading-bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0px, rgba(255, 215, 0, 0.08) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(0deg, rgba(255, 0, 50, 0.08) 0px, rgba(255, 0, 50, 0.08) 1px, transparent 1px, transparent 40px),
    radial-gradient(circle at 30% 30%, rgba(255, 0, 50, 0.35), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.3), transparent 60%),
    linear-gradient(120deg, rgba(255, 0, 50, 0.25), rgba(255, 215, 0, 0.2));
  animation: loadingGridMove 3s ease-in-out forwards;
  opacity: 0;
}

@keyframes loadingGridMove {
  0% { transform: scale(1) translate(0,0); filter: blur(0px); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: scale(1.2) translate(40px,-40px); filter: blur(1.5px); opacity: 1; }
}

/* Scanline */
.scanline {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold1), transparent);
  box-shadow: 0 0 22px var(--gold1);
  animation: scanlineSweep 2.2s ease-in-out forwards;
  opacity: 0;
}

@keyframes scanlineSweep {
  0% { top: -10%; opacity: 0; }
  10% { opacity: 1; }
  80% { top: 110%; opacity: 1; }
  100% { opacity: 0; }
}

/* Loading text */
.loading-text {
  position: relative;
  z-index: 3;
  font-size: 18px;
  text-align: center;
  margin-top: 8px;
}

.loading-line {
  opacity: 0;
  margin: 6px 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  color: var(--gold1);
}

.loading-line.show {
  opacity: 1;
  transform: translateY(0);
}

/* Flash */
.loading-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95), transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}
.loading-flash.flash-medium { animation: flashMedium 0.5s ease-out forwards; }

@keyframes flashMedium {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

/* Dissolve */
.loading-overlay.dissolve { animation: dissolveOut 0.6s ease-out forwards; }

@keyframes dissolveOut {
  0% { opacity: 1; filter: blur(0); }
  100% { opacity: 0; filter: blur(4px); }
}

/* ---------------------------
   Wallpaper + particles
   --------------------------- */
.wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0px, rgba(255, 215, 0, 0.08) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(0deg, rgba(255, 0, 50, 0.08) 0px, rgba(255, 0, 50, 0.08) 1px, transparent 1px, transparent 40px),
    radial-gradient(circle at 30% 30%, rgba(255, 0, 50, 0.35), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.3), transparent 60%),
    linear-gradient(120deg, rgba(255, 0, 50, 0.25), rgba(255, 215, 0, 0.2));
  animation: digitalWave 10s infinite ease-in-out alternate;
}

@keyframes digitalWave {
  0% { transform: scale(1) translate(0,0); filter: blur(0px); opacity: 0.9; }
  100% { transform: scale(1.3) translate(50px,-50px); filter: blur(2px); opacity: 1; }
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red1);
  box-shadow: 0 0 18px var(--red1);
  opacity: 0.95;
  z-index: 1;
  animation: plasmaRise 7s infinite linear;
  pointer-events: none;
}

@keyframes plasmaRise {
  0% {
    transform: translateY(0) scale(1);
    background: var(--red1);
    box-shadow: 0 0 18px var(--red1);
  }
  40% {
    background: var(--gold1);
    box-shadow: 0 0 26px var(--gold1);
  }
  70% {
    background: var(--gold2);
    box-shadow: 0 0 32px var(--gold2);
  }
  100% {
    transform: translateY(-120vh) scale(0.5);
    background: var(--gold3);
    box-shadow: 0 0 40px var(--gold3);
    opacity: 0;
  }
}

/* ---------------------------
   App root + centered panel
   --------------------------- */
.app-root {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;  /* center horizontally */
  align-items: center;      /* center vertically */
  padding: 40px 20px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.app-root.show { opacity: 1; }

/* Hybrid height OS window */
.panel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 18px;
  padding: 0;
  z-index: 3;

  background: radial-gradient(circle at top, rgba(25, 0, 25, 0.98), rgba(5, 0, 10, 0.98));
  backdrop-filter: blur(10px);

  border: 3px solid transparent;
  background-image:
    linear-gradient(var(--panel-bg), var(--panel-bg)),
    linear-gradient(120deg, var(--red1), var(--gold1), var(--red2), var(--gold2), var(--red3), var(--gold3), var(--red1));
  background-origin: border-box;
  background-clip: padding-box, border-box;

  box-shadow:
    0 0 45px rgba(255, 0, 50, 0.8),
    0 0 70px rgba(255, 215, 0, 0.6),
    inset 0 0 26px rgba(255, 0, 50, 0.6);

  animation: borderFlow 3s linear infinite;

  min-height: 70vh;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

/* Panel header */
.panel-header {
  position: relative;
  padding: 14px 60px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.25);
  background: linear-gradient(90deg, rgba(40, 0, 10, 0.9), rgba(10, 0, 10, 0.95));
  box-shadow:
    0 0 24px rgba(255, 0, 50, 0.6),
    inset 0 -6px 18px rgba(0, 0, 0, 0.8);
}

.panelh2 {
  font-size: 24px;
  margin: 0;
  text-align: center;
}

/* Dashboard icon */
.dash-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 12px;
  border-radius: 10px;
  background: radial-gradient(circle at top, rgba(40, 0, 10, 0.95), rgba(10, 0, 10, 0.98));
  border: 2px solid var(--red1);
  color: var(--gold1);
  text-decoration: none;
  font-size: 13px;
  box-shadow:
    0 0 18px rgba(255, 0, 50, 0.7),
    inset 0 0 14px rgba(255, 0, 50, 0.5);
  transition: all 0.18s ease;
}

.dash-icon:hover {
  background: radial-gradient(circle at top, rgba(80, 0, 20, 1), rgba(15, 0, 15, 1));
  box-shadow:
    0 0 32px rgba(255, 215, 0, 0.9),
    inset 0 0 20px rgba(255, 215, 0, 0.7);
}

/* Panel inner scroll area */
.panel-inner {
  flex: 1;
  background: var(--panel-inner-bg);
  padding: 22px 24px 24px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------------------------
   Profile grid
   --------------------------- */
.profile-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 10px;
  align-items: start;
}

/* breakpoints */
@media (max-width: 1200px) { .profile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .profile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .profile-grid { grid-template-columns: 1fr; } }

/* Cards */
.subcard {
  background: radial-gradient(circle at top, rgba(15, 0, 15, 0.96), rgba(5, 0, 10, 0.98));
  border-radius: 14px;
  padding: 16px 16px 14px 16px;
  border: 2px solid transparent;
  background-image:
    linear-gradient(rgba(10, 0, 10, 0.96), rgba(5, 0, 10, 0.98)),
    linear-gradient(120deg, var(--red1), var(--gold1), var(--red2), var(--gold2));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 0 26px rgba(255, 0, 50, 0.7),
    inset 0 0 18px rgba(255, 0, 50, 0.5);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.subcard-title {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--gold1);
  -webkit-text-fill-color: initial;
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.6);
}

.subcard p,
.subcard a,
.subcard small {
  color: var(--text-fallback);
  -webkit-text-fill-color: initial;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  font-size: 13px;
}

/* ---------------------------
   Theme transition + flash
   --------------------------- */
.theme-transition * {
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.theme-flash {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-loading) + 1);
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95), transparent 60%);
  animation: flashMedium 0.5s ease-out forwards;
}


/* ---------------------------
   Utility
   --------------------------- */
.fallback-text {
  color: var(--text-fallback);
  -webkit-text-fill-color: initial;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Make sure loading overlay is above everything */
.loading-overlay { z-index: var(--z-loading); }

/* ---------------------------
   FINAL OVERRIDES (ensure form controls never inherit gradient text)
   - Placed at the end so cascade always preserves readable input text
   - Includes autofill selectors for WebKit browsers
   --------------------------- */
input.input,
input[type="email"],
input[type="password"],
input[type="text"],
textarea,
select,
button,
.btn {
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  -webkit-text-fill-color: var(--gold1) !important;
  color: var(--gold1) !important;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4) !important;
}

/* WebKit autofill fixes */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--gold1) !important;
  color: var(--gold1) !important;
  box-shadow: 0 0 0px 1000px rgba(5,0,10,0.95) inset !important;
  -webkit-box-shadow: 0 0 0px 1000px rgba(5,0,10,0.95) inset !important;
  background-clip: padding-box !important;
  -webkit-background-clip: padding-box !important;
}

/* Extra specificity for panel-scoped inputs (ensures panel context always wins) */
.panel-inner input.input,
.panel-inner input[type="email"],
.panel-inner input[type="password"],
.panel-inner input[type="text"],
.panel-inner textarea,
.panel-inner select {
  -webkit-text-fill-color: var(--gold1) !important;
  color: var(--gold1) !important;
}
/* Clip particles to the centered app window so they never extend layout */
.app-root {
  position: relative;    /* ensure particles are positioned relative to this container */
  overflow: hidden;      /* clip anything that moves outside the app window */
}

/* Particle rendering: use transform only (does not affect layout) */
.particle {
  position: absolute;
  left: 0;
  bottom: 0;                     /* start inside the container; never use negative bottom */
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red1);
  box-shadow: 0 0 18px var(--red1);
  opacity: 0.95;
  z-index: 1;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translateY(0) translateZ(0);
  animation: plasmaRise 7s infinite linear;
}

/* Move with transform only so layout/scrollbar are unaffected */
@keyframes plasmaRise {
  0%   { transform: translateY(0) scale(1); opacity: 0.95; }
  40%  { transform: translateY(-35vh) scale(0.9); opacity: 0.9; }
  70%  { transform: translateY(-75vh) scale(0.7); opacity: 0.6; }
  100% { transform: translateY(-140vh) scale(0.45); opacity: 0; }
}

/* ============================================================
   BLOOD × GOLD OS — CINEMATIC PLASMA SCROLLBAR
   ============================================================ */

/* Base scrollbar size */
::-webkit-scrollbar {
  width: 14px;
  background: transparent;
}

/* Track (glass panel + hologram shimmer) */
::-webkit-scrollbar-track {
  background: rgba(10, 0, 10, 0.35);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow:
    inset 0 0 18px rgba(255, 0, 50, 0.25),
    inset 0 0 26px rgba(255, 215, 0, 0.18),
    0 0 12px rgba(255, 215, 0, 0.12);
  position: relative;
}

/* Hologram shimmer animation */
::-webkit-scrollbar-track:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 215, 0, 0.15) 50%,
    transparent 100%
  );
  opacity: 0;
  animation: holoShimmer 4s infinite ease-in-out;
}

@keyframes holoShimmer {
  0% { opacity: 0; transform: translateX(-40%); }
  50% { opacity: 1; transform: translateX(40%); }
  100% { opacity: 0; transform: translateX(120%); }
}

/* Thumb (plasma core + neon glow) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--red1),
    var(--gold1),
    var(--red2)
  );
  border-radius: 14px;
  border: 3px solid rgba(5, 0, 10, 0.9);
  box-shadow:
    0 0 22px rgba(255, 0, 50, 0.75),
    0 0 32px rgba(255, 215, 0, 0.55),
    inset 0 0 18px rgba(255, 0, 50, 0.65);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* Hover: plasma pulse + gold flare */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--gold1),
    var(--red1),
    var(--gold2)
  );
  transform: scale(1.05);
  box-shadow:
    0 0 36px rgba(255, 215, 0, 0.95),
    0 0 55px rgba(255, 0, 50, 0.85),
    inset 0 0 26px rgba(255, 215, 0, 0.75);
}

/* Active (dragging): molten gold effect */
::-webkit-scrollbar-thumb:active {
  background: linear-gradient(
    180deg,
    var(--gold2),
    var(--gold1),
    var(--gold3)
  );
  transform: scale(0.98);
  box-shadow:
    0 0 45px rgba(255, 215, 0, 1),
    inset 0 0 32px rgba(255, 215, 0, 0.9);
}

/* Firefox support */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--red1) rgba(10, 0, 10, 0.4);
}

/* ============================================================
   BLOOD × GOLD OS — SELECT DROPDOWN THEME
   ============================================================ */

/* Remove default arrow */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(180deg, rgba(10, 0, 10, 0.9), rgba(5, 0, 5, 0.98)),
    url("data:image/svg+xml;utf8,<svg fill='%23ffd700' height='20' width='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,12'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px !important;
}

/* Dropdown menu (Chrome, Edge, Opera) */
select option {
  background: rgba(10, 0, 10, 0.96);
  color: var(--gold1);
  padding: 10px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  font-family: 'Orbitron', sans-serif;
}

/* Hover effect inside dropdown */
select option:hover,
select option:focus {
  background: rgba(255, 0, 50, 0.25);
  color: var(--gold1);
}

/* Firefox dropdown fix */
select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 var(--gold1);
}



/* End of file */
