/* =========================================================
   MCenter — Cosmic homepage
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* =========================================================
   ROOT VARIABLES
   ========================================================= */
:root {
  --color-blue: #1a73e8;
  --color-blue-hover: #1557b0;
  --color-black: #000000;
  --color-yellow: #FBBC05;
  --color-green: #34A853;

  --color-facebook: #1877F2;
  --color-youtube: #FF0000;
  --color-instagram: #E4405F;
  --color-whatsapp: #25D366;

  --bg-page: #050813;
  --bg-panel: rgba(15, 20, 40, 0.85);
  --bg-glass: rgba(15, 22, 45, 0.55);
  --bg-elev: rgba(25, 32, 58, 0.85);

  --text-main: #e8eefc;
  --text-muted: #a9b6d9;
  --text-soft: #7a89b3;

  --border-soft: rgba(140, 170, 255, 0.14);
  --border-strong: rgba(140, 170, 255, 0.28);

  --glow-blue: rgba(80, 150, 255, 0.55);

  --shadow-soft: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.65);

  --header-logo-height: 40px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --drop-from-x: 0px;
  --drop-from-y: -900px;
}

/* Light theme */
body:not(.dark) {
  --bg-page: #dde5f7;
  --bg-panel: rgba(255,255,255,0.85);
  --bg-glass: rgba(255,255,255,0.72);
  --bg-elev: #ffffff;
  --text-main: #0f172a;
  --text-muted: #4a5b7c;
  --text-soft: #7b8bab;
  --border-soft: rgba(15,23,42,0.08);
  --border-strong: rgba(15,23,42,0.14);
  --glow-blue: rgba(26,115,232,0.35);
}

body.dark {
  --bg-page: #050813;
  --bg-panel: #0e1424;
  --bg-glass: rgba(14,20,36,0.65);
  --bg-elev: #131b2f;
  --text-main: #e8eefc;
  --text-muted: #94a3b8;
  --text-soft: #64748b;
  --border-soft: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Inter', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s ease, color 0.3s ease;
  overflow-x: hidden;
  position: relative;
}

/* =========================================================
   COSMIC BACKGROUND
   ========================================================= */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(60, 40, 180, 0.45), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(150, 40, 200, 0.40), transparent 60%),
    radial-gradient(ellipse 60% 50% at 55% 5%,  rgba(30, 90, 200, 0.35), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(80, 30, 160, 0.40), transparent 60%),
    radial-gradient(circle at 50% 50%, #0a1230 0%, #050813 60%, #01020a 100%);
  transition: background 0.6s ease;
}

body:not(.cosmic) .cosmic-bg { display: none; }

body:not(.dark) .cosmic-bg {
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(140, 170, 255, 0.55), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(200, 160, 255, 0.45), transparent 60%),
    radial-gradient(ellipse 60% 50% at 55% 5%,  rgba(120, 180, 255, 0.5), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(160, 130, 220, 0.4), transparent 60%),
    radial-gradient(circle at 50% 50%, #e6ecff 0%, #d8e2fb 55%, #c4cfff 100%);
}

.bright-star {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, rgba(200, 220, 255, 0.85) 30%, rgba(120, 160, 255, 0.35) 55%, transparent 70%);
  filter: blur(0.4px);
  box-shadow: 0 0 6px rgba(255,255,255,0.9), 0 0 18px rgba(160, 190, 255, 0.6), 0 0 36px rgba(120, 150, 255, 0.35);
  animation: starPulse 5s ease-in-out infinite alternate;
  pointer-events: none;
}

.bright-star.b1 { width: 5px;  height: 5px;  top: 12%; left: 8%;  animation-duration: 4s; }
.bright-star.b2 { width: 4px;  height: 4px;  top: 24%; left: 78%; animation-duration: 6s; animation-delay: 0.8s; }
.bright-star.b3 { width: 6px;  height: 6px;  top: 40%; left: 30%; animation-duration: 5s; animation-delay: 1.2s; }
.bright-star.b4 { width: 4px;  height: 4px;  top: 55%; left: 88%; animation-duration: 4.5s; animation-delay: 2s; }
.bright-star.b5 { width: 5px;  height: 5px;  top: 70%; left: 12%; animation-duration: 6.5s; animation-delay: 0.5s; }
.bright-star.b6 { width: 4px;  height: 4px;  top: 82%; left: 65%; animation-duration: 5.5s; animation-delay: 1.5s; }
.bright-star.b7 { width: 6px;  height: 6px;  top: 15%; left: 48%; animation-duration: 6s; animation-delay: 2.5s; }
.bright-star.b8 { width: 4px;  height: 4px;  top: 92%; left: 42%; animation-duration: 5s; animation-delay: 1s; }
.bright-star.b9 { width: 5px;  height: 5px;  top: 8%;  left: 92%; animation-duration: 4.5s; animation-delay: 3s; }
.bright-star.b10 { width: 4px; height: 4px;  top: 62%; left: 55%; animation-duration: 6s; animation-delay: 2.2s; }

@keyframes starPulse {
  0%   { opacity: 0.75; transform: scale(1); }
  100% { opacity: 1;    transform: scale(1.15); }
}

.cosmic-stars {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  background-repeat: repeat;
}

.stars-small {
  background-image:
    radial-gradient(0.8px 0.8px at 12px 18px, #ffffff 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 45px 60px, #cddaff 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 90px 30px, #ffffff 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 130px 90px, #a8bcff 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 60px 120px, #ffffff 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 160px 40px, #d6e2ff 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 20px 140px, #ffffff 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 180px 150px, #b9c8ff 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 100px 170px, #ffffff 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 145px 15px, #cbd8ff 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 200px 80px, #ffffff 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 30px 90px, #d9e2ff 50%, transparent 51%);
  background-size: 220px 220px;
  animation: twinkleSlow 7s ease-in-out infinite alternate;
  opacity: 0.85;
}

.stars-medium {
  background-image:
    radial-gradient(1.4px 1.4px at 40px 50px, #ffffff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 120px 90px, #e0e8ff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 210px 30px, #ffffff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 80px 180px, #cfdcff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 280px 140px, #ffffff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 330px 70px, #dbe5ff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 180px 220px, #ffffff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 20px 260px, #c8d7ff 50%, transparent 51%);
  background-size: 380px 380px;
  animation: twinkleMed 5.5s ease-in-out infinite alternate-reverse;
  opacity: 0.9;
}

.stars-large {
  background-image:
    radial-gradient(2px 2px at 60px 80px, #ffffff 50%, transparent 51%),
    radial-gradient(2px 2px at 220px 140px, #eef2ff 50%, transparent 51%),
    radial-gradient(2px 2px at 380px 60px, #ffffff 50%, transparent 51%),
    radial-gradient(2px 2px at 140px 320px, #d8e2ff 50%, transparent 51%),
    radial-gradient(2px 2px at 460px 260px, #ffffff 50%, transparent 51%);
  background-size: 520px 520px;
  animation: twinkleFast 4s ease-in-out infinite alternate;
  opacity: 0.95;
}

.stars-micro {
  background-image:
    radial-gradient(0.6px 0.6px at 5px 5px, #ffffff 50%, transparent 51%),
    radial-gradient(0.6px 0.6px at 25px 35px, #b8c5ff 50%, transparent 51%),
    radial-gradient(0.6px 0.6px at 55px 15px, #ffffff 50%, transparent 51%),
    radial-gradient(0.6px 0.6px at 75px 55px, #d1dbff 50%, transparent 51%),
    radial-gradient(0.6px 0.6px at 15px 75px, #ffffff 50%, transparent 51%),
    radial-gradient(0.6px 0.6px at 95px 85px, #a4b4ff 50%, transparent 51%),
    radial-gradient(0.6px 0.6px at 45px 95px, #ffffff 50%, transparent 51%),
    radial-gradient(0.6px 0.6px at 110px 35px, #cad6ff 50%, transparent 51%),
    radial-gradient(0.6px 0.6px at 130px 75px, #ffffff 50%, transparent 51%),
    radial-gradient(0.6px 0.6px at 65px 115px, #b0beff 50%, transparent 51%),
    radial-gradient(0.6px 0.6px at 100px 5px, #ffffff 50%, transparent 51%),
    radial-gradient(0.6px 0.6px at 20px 105px, #d6e0ff 50%, transparent 51%),
    radial-gradient(0.6px 0.6px at 140px 105px, #ffffff 50%, transparent 51%),
    radial-gradient(0.6px 0.6px at 85px 65px, #c2cfff 50%, transparent 51%),
    radial-gradient(0.6px 0.6px at 50px 130px, #ffffff 50%, transparent 51%);
  background-size: 160px 160px;
  animation: twinkleSlow 9s ease-in-out infinite alternate-reverse;
  opacity: 0.7;
}

body:not(.dark) .stars-small,
body:not(.dark) .stars-medium,
body:not(.dark) .stars-large,
body:not(.dark) .stars-micro {
  filter: invert(1) brightness(0.7) contrast(1.3);
  mix-blend-mode: multiply;
  opacity: 0.55;
}

body:not(.dark) .bright-star {
  background: radial-gradient(circle, #ffffff 0%, rgba(140, 170, 255, 0.9) 40%, transparent 75%);
  box-shadow: 0 0 6px rgba(120, 150, 255, 0.9), 0 0 18px rgba(80, 120, 255, 0.5);
  opacity: 0.7;
}

@keyframes twinkleSlow { 0% { opacity: 0.6; } 50% { opacity: 0.9; } 100% { opacity: 0.7; } }
@keyframes twinkleMed  { 0% { opacity: 0.75; } 50% { opacity: 1; } 100% { opacity: 0.8; } }
@keyframes twinkleFast { 0% { opacity: 0.85; } 50% { opacity: 1; } 100% { opacity: 0.7; } }

.cosmic-stars { animation: starDrift 240s linear infinite; }
.stars-medium { animation-duration: 4s, 300s; animation-name: twinkleMed, starDrift; animation-iteration-count: infinite, infinite; animation-timing-function: ease-in-out, linear; }
.stars-large  { animation-duration: 5s, 360s; animation-name: twinkleFast, starDrift; animation-iteration-count: infinite, infinite; animation-timing-function: ease-in-out, linear; }

@keyframes starDrift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-3%, -3%, 0); }
}

.cosmic-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.7;
  mix-blend-mode: screen;
  animation: nebulaDrift 90s ease-in-out infinite alternate;
}

body:not(.dark) .cosmic-nebula { mix-blend-mode: multiply; opacity: 0.35; }

.nebula-1 { width: 70vw; height: 70vw; top: -25vw; left: -20vw; background: radial-gradient(circle, rgba(80, 40, 200, 0.55), transparent 65%); animation-duration: 100s; }
.nebula-2 { width: 60vw; height: 60vw; top: 25%; right: -25vw; background: radial-gradient(circle, rgba(180, 40, 220, 0.5), transparent 65%); animation-duration: 120s; animation-direction: alternate-reverse; }
.nebula-3 { width: 50vw; height: 50vw; bottom: -20vw; left: 15%; background: radial-gradient(circle, rgba(40, 90, 220, 0.45), transparent 65%); animation-duration: 110s; }
.nebula-4 { width: 40vw; height: 40vw; top: 40%; left: 35%; background: radial-gradient(circle, rgba(120, 60, 220, 0.35), transparent 65%); animation-duration: 90s; }

body:not(.dark) .nebula-1 { background: radial-gradient(circle, rgba(120, 140, 255, 0.35), transparent 65%); }
body:not(.dark) .nebula-2 { background: radial-gradient(circle, rgba(200, 150, 255, 0.35), transparent 65%); }
body:not(.dark) .nebula-3 { background: radial-gradient(circle, rgba(140, 190, 255, 0.35), transparent 65%); }
body:not(.dark) .nebula-4 { background: radial-gradient(circle, rgba(170, 160, 255, 0.3), transparent 65%); }

@keyframes nebulaDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(5vw, -4vh, 0) scale(1.1); }
  100% { transform: translate3d(-4vw, 5vh, 0) scale(0.94); }
}

.shooting-star {
  position: absolute;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 220, 255, 0.9), #ffffff);
  border-radius: 2px;
  filter: drop-shadow(0 0 6px rgba(180, 210, 255, 0.9)) drop-shadow(0 0 14px rgba(120, 160, 255, 0.6));
  opacity: 0;
  pointer-events: none;
  transform-origin: left center;
}

.shoot-1 { top: 10%; left: -10%; animation: shoot 9s linear infinite; animation-delay: 2s; }
.shoot-2 { top: 40%; left: -10%; animation: shoot 13s linear infinite; animation-delay: 7s; }
.shoot-3 { top: 70%; left: -10%; animation: shoot 16s linear infinite; animation-delay: 12s; }
.shoot-4 { top: 25%; left: -10%; animation: shoot 11s linear infinite; animation-delay: 4s; }

@keyframes shoot {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(18deg) scaleX(0.6); }
  3%   { opacity: 1; transform: translate3d(0, 0, 0) rotate(18deg) scaleX(1); }
  18%  { opacity: 0; transform: translate3d(90vw, 45vh, 0) rotate(18deg) scaleX(1); }
  100% { opacity: 0; transform: translate3d(90vw, 45vh, 0) rotate(18deg) scaleX(1); }
}

.dust-layer { position: absolute; inset: 0; pointer-events: none; }

.dust-layer span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(220, 235, 255, 0.7);
  opacity: 0.5;
  filter: blur(0.4px);
  animation: dustFloat 22s linear infinite;
}

body:not(.dark) .dust-layer span { background: rgba(40, 60, 120, 0.45); }

.dust-layer span:nth-child(1)  { left: 8%;  top: 20%; animation-delay: 0s;   animation-duration: 22s; }
.dust-layer span:nth-child(2)  { left: 22%; top: 65%; animation-delay: 2s;   animation-duration: 26s; }
.dust-layer span:nth-child(3)  { left: 35%; top: 30%; animation-delay: 4s;   animation-duration: 30s; }
.dust-layer span:nth-child(4)  { left: 48%; top: 80%; animation-delay: 1s;   animation-duration: 24s; }
.dust-layer span:nth-child(5)  { left: 60%; top: 45%; animation-delay: 3s;   animation-duration: 28s; }
.dust-layer span:nth-child(6)  { left: 72%; top: 15%; animation-delay: 5s;   animation-duration: 32s; }
.dust-layer span:nth-child(7)  { left: 85%; top: 55%; animation-delay: 2.5s; animation-duration: 26s; }
.dust-layer span:nth-child(8)  { left: 92%; top: 85%; animation-delay: 1.5s; animation-duration: 30s; }
.dust-layer span:nth-child(9)  { left: 15%; top: 90%; animation-delay: 4.5s; animation-duration: 34s; }
.dust-layer span:nth-child(10) { left: 5%;  top: 55%; animation-delay: 3.5s; animation-duration: 28s; }
.dust-layer span:nth-child(11) { left: 40%; top: 8%;  animation-delay: 6s;   animation-duration: 26s; }
.dust-layer span:nth-child(12) { left: 55%; top: 50%; animation-delay: 0.5s; animation-duration: 30s; }
.dust-layer span:nth-child(13) { left: 68%; top: 92%; animation-delay: 2.2s; animation-duration: 32s; }
.dust-layer span:nth-child(14) { left: 80%; top: 25%; animation-delay: 5.5s; animation-duration: 28s; }
.dust-layer span:nth-child(15) { left: 28%; top: 72%; animation-delay: 3.2s; animation-duration: 24s; }

@keyframes dustFloat {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { transform: translate3d(2vw, -8vh, 0); opacity: 0; }
}

body > *:not(.cosmic-bg) { position: relative; z-index: 1; }

@keyframes heartbeat {
  0%   { transform: scale(1); }
  14%  { transform: scale(1.08); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.08); }
  70%  { transform: scale(1); }
}

/* =========================================================
   HEADER
   ========================================================= */
.header-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 20px 6px 20px;
  pointer-events: none;
}

.orbit-bar {
  pointer-events: auto;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-card);
  position: relative;
}

.header-left { display: flex; align-items: center; flex-shrink: 0; z-index: 2; }
.header-logo { display: inline-flex; align-items: center; text-decoration: none; }

.header-logo img {
  height: var(--header-logo-height);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--glow-blue));
  animation: heartbeat 2.5s infinite ease-in-out;
  transform-origin: center;
}

.header-logo:hover img { animation: heartbeat 1s infinite ease-in-out; }

.header-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  pointer-events: none;
}

.header-brand > * { pointer-events: auto; }

.brand-name {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1.8px;
  line-height: 1;
  flex-shrink: 0;
}

.brand-name .c1 { color: var(--color-blue); }
.brand-name .c2 { color: var(--color-black); }
.brand-name .c3 { color: var(--color-green); }
.brand-name .c4 { color: var(--color-yellow); }
.brand-name .c5 { color: var(--color-blue); }
.brand-name .c6 { color: var(--color-black); }
.brand-name .c7 { color: var(--color-green); }

body.dark .brand-name .c2,
body.dark .brand-name .c6 { color: #e8eefc; }

.brand-divider {
  display: inline-block;
  width: 2px;
  height: 46px;
  background: var(--border-strong);
  border-radius: 2px;
  flex-shrink: 0;
}

.brand-side { display: flex; flex-direction: column; justify-content: center; gap: 4px; }

.brand-sub { font-size: 15px; font-weight: 700; color: var(--text-main); letter-spacing: 0.2px; }
.brand-tagline { font-size: 11px; font-style: italic; color: var(--text-muted); padding-left: 22px; letter-spacing: 0.3px; }

.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; z-index: 2; }

.icon-btn-header {
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-btn-header:hover { background: var(--bg-elev); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn-header svg { width: 18px; height: 18px; }

.sign-in-btn-new {
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px var(--glow-blue);
  transition: all 0.25s ease;
  text-decoration: none;
}

.sign-in-btn-new:hover { transform: translateY(-1px); box-shadow: 0 6px 22px var(--glow-blue); }
.sign-in-btn-new:active { transform: translateY(0) scale(0.97); }

.app-launcher-btn {
  background: transparent;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: all 0.2s ease;
}

.app-launcher-btn:hover { background: var(--bg-elev); border-color: var(--border-strong); }
.app-icon-grid { display: grid; grid-template-columns: repeat(3, 4px); grid-gap: 3px; pointer-events: none; }
.app-icon-grid div { width: 4px; height: 4px; background-color: var(--text-main); border-radius: 50%; }

/* =========================================================
   APP DRAWER DROPDOWN
   — outside .header-shell, position: fixed
   — top/left set by JS to sit under the 9-dot button
   — z-index maxed so it floats ABOVE everything
   ========================================================= */
.apps-dropdown {
  display: none;
  position: fixed;
  /* top / left set by JS */
  width: 340px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  z-index: 2147483647;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: auto;
  isolation: isolate;
}

.apps-dropdown.active { display: grid; }

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-main);
  padding: 16px 8px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.app-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-blue);
  box-shadow: 0 8px 22px rgba(26, 115, 232, 0.18), 0 0 0 1px var(--color-blue);
  background: var(--bg-panel);
}

.app-item:active { transform: translateY(-1px) scale(0.98); }
.app-item:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 2px; }

.app-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 8px;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.app-item span { pointer-events: none; display: block; line-height: 1.2; }

.app-item:hover img { transform: scale(1.10); }

body.dark .app-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

body.dark .app-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-blue);
  box-shadow: 0 8px 22px rgba(26, 115, 232, 0.25), 0 0 0 1px var(--color-blue);
}

/* =========================================================
   MAIN
   ========================================================= */
main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 60px 20px;
  margin-top: 20px;
}

/* =========================================================
   SOLAR SYSTEM
   ========================================================= */
.solar-system {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 6px auto 0 auto;
  flex-shrink: 0;
}

.orbits-group {
  position: absolute;
  inset: 0;
  z-index: 5;
  animation: orbitsCycle 10s infinite ease-in-out;
}

@keyframes orbitsCycle {
  0%, 50%   { opacity: 1; }
  55%       { opacity: 0; }
  85%       { opacity: 0; }
  90%, 100% { opacity: 1; }
}

.world-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  animation: worldCycle 10s infinite ease-in-out;
}

.world-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 24px var(--glow-blue)) drop-shadow(0 0 48px rgba(80, 120, 255, 0.35));
}

@keyframes worldCycle {
  0%, 50%   { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  55%       { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  85%       { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  90%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed var(--border-soft);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin linear infinite;
  pointer-events: none;
}

body.dark .orbit { border-color: rgba(160, 190, 255, 0.2); }

.orbit-1 { width: 65px;  height: 65px;  animation-duration: 12s; z-index: 6; }
.orbit-2 { width: 95px;  height: 95px;  animation-duration: 18s; z-index: 5; }
.orbit-3 { width: 125px; height: 125px; animation-duration: 26s; z-index: 4; }
.orbit-4 { width: 160px; height: 160px; animation-duration: 36s; z-index: 3; }
.orbit-5 { width: 195px; height: 195px; animation-duration: 48s; z-index: 2; }

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.planet-wrap {
  position: absolute;
  top: -12px;
  left: 50%;
  margin-left: -12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
  animation: counter-spin linear infinite;
  pointer-events: auto;
  cursor: pointer;
}

.orbit-1 .planet-wrap { animation-duration: 12s; }
.orbit-2 .planet-wrap { animation-duration: 18s; }
.orbit-3 .planet-wrap { animation-duration: 26s; }
.orbit-4 .planet-wrap { animation-duration: 36s; }
.orbit-5 .planet-wrap { animation-duration: 48s; }

@keyframes counter-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

.planet {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset -3px -3px 6px rgba(0,0,0,0.25), 0 0 12px currentColor;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.planet-wrap:hover .planet {
  transform: scale(1.25);
  box-shadow: inset -3px -3px 6px rgba(0,0,0,0.25), 0 0 22px currentColor;
}

.planet-label {
  margin-top: 3px;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-main);
  background: var(--bg-glass);
  backdrop-filter: blur(6px);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}

.planet-mars     { background: var(--color-black); color: #000; }
.planet-venus    { background: var(--color-yellow); color: var(--color-yellow); }
.planet-neptune  { background: var(--color-blue); color: var(--color-blue); }
.planet-jupiter  { background: #E8710A; color: #E8710A; }
.planet-saturn   { background: var(--color-yellow); color: var(--color-yellow); position: relative; }

body.dark .planet-mars { background: #1f2937; color: #94a3b8; }

.planet-saturn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 8px;
  border: 2px solid var(--color-yellow);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  pointer-events: none;
}

.sun {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 10;
  pointer-events: auto;
}

.sun img {
  height: 30px;
  width: auto;
  animation: heartbeat 2.5s infinite ease-in-out;
  transform-origin: center;
  filter: drop-shadow(0 0 12px var(--glow-blue));
}

/* =========================================================
   SEARCH BAR
   ========================================================= */
.search-container {
  width: 100%;
  max-width: 620px;
  position: relative;
  margin-top: 18px;
}

.search-bar-wrapper {
  display: flex;
  align-items: center;
  height: 52px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 0 8px 0 18px;
  width: 100%;
  background: var(--bg-panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  transition: all 0.25s ease;
}

.search-bar-wrapper:hover,
.search-bar-wrapper:focus-within {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--color-blue), 0 8px 28px var(--glow-blue);
}

.search-icon { width: 20px; height: 20px; fill: var(--text-muted); margin-right: 12px; flex-shrink: 0; }

.search-bar {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-main);
  background: transparent;
}

.search-bar::placeholder { color: var(--text-soft); }

.action-icons { display: flex; align-items: center; gap: 6px; margin-left: 8px; flex-shrink: 0; }

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.15s ease;
}

.icon-btn:hover { background: var(--bg-elev); }
.icon-btn svg { width: 22px; height: 22px; }

/* =========================================================
   NEWS PANEL
   ========================================================= */
.news-panel {
  width: 100%;
  max-width: 720px;
  margin-top: 26px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--color-blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: visible;
  backdrop-filter: blur(16px);
}

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.news-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-main);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-blue);
  box-shadow: 0 0 10px var(--color-blue);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.75); }
}

.news-see-all { font-size: 12px; font-weight: 600; color: var(--color-blue); text-decoration: none; }

.news-list { list-style: none; display: flex; flex-direction: column; }
.news-item { border-bottom: 1px solid var(--border-soft); }
.news-item:last-child { border-bottom: none; }

.news-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.2s ease;
  position: relative;
}

.news-link::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--color-blue);
  transform: scaleY(0);
  transition: transform 0.25s ease;
}

.news-link:hover { background: rgba(26, 115, 232, 0.12); }
.news-link:hover::before { transform: scaleY(1); }

.news-number {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: var(--color-blue);
  box-shadow: 0 2px 8px var(--glow-blue);
}

.news-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
}

.news-thumb-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #1a73e8, #1557b0);
}

.news-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }

.news-headline {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link:hover .news-headline { color: var(--color-blue); }

.news-source {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-arrow {
  flex-shrink: 0;
  color: var(--text-soft);
  font-size: 18px;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s ease;
}

.news-link:hover .news-arrow { opacity: 1; transform: translateX(0); color: var(--color-blue); }

.news-loading { padding: 24px; text-align: center; font-size: 13px; color: var(--text-muted); }

/* =========================================================
   NEWS HERO
   ========================================================= */
.news-hero {
  position: relative;
  padding: 22px 22px 26px 22px;
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(80,150,255,0.18), transparent 60%),
    linear-gradient(180deg, rgba(30,60,140,0.15), transparent 70%);
  overflow: visible;
  min-height: 130px;
}

.hero-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(120,180,255,0.35), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.hero-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--text-main);
}

.hero-ring {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 30%, rgba(120,180,255,0.35), rgba(20,40,100,0.6));
  box-shadow: 0 0 0 2px rgba(140, 190, 255, 0.6), 0 0 0 6px rgba(140, 190, 255, 0.15), 0 0 24px rgba(120, 160, 255, 0.55);
}

.hero-ring::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(200, 220, 255, 0.55);
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: heroRingSpin 3s linear infinite;
}

.hero-ring::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(160, 190, 255, 0.45);
  animation: heroRingSpin 6s linear infinite reverse;
}

@keyframes heroRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-thumb { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

.hero-thumb-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #1a73e8, #1557b0);
  text-transform: uppercase;
}

.hero-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.hero-source {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-blue);
}

.hero-headline {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-blue);
  margin-top: 2px;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-link:hover .hero-cta { opacity: 1; transform: translateX(3px); }

.hero-trail {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, rgba(200, 225, 255, 0.55) 40%, rgba(180, 210, 255, 0.85) 75%, #ffffff 100%);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 0 12px rgba(180, 210, 255, 0.9), 0 0 28px rgba(120, 170, 255, 0.65), 0 0 60px rgba(80, 130, 255, 0.4);
  filter: blur(0.4px);
  transform-origin: bottom center;
}

.news-hero.hero-enter .hero-link { animation: heroDropIn 1.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.news-hero.hero-enter .hero-trail { animation: heroTrail 1.8s ease-out both; }
.news-hero.hero-exit .hero-link  { animation: heroFlyUp 1s cubic-bezier(0.55, 0, 0.9, 0.4) both; }

@keyframes heroDropIn {
  0%   { opacity: 0; transform: translate3d(var(--drop-from-x), var(--drop-from-y), 0) scale(0.25) rotate(-14deg); filter: blur(12px); }
  20%  { opacity: 1; filter: blur(0); }
  60%  { opacity: 1; transform: translate3d(0, 22px, 0) scale(1.06) rotate(0deg); filter: blur(0); }
  78%  { transform: translate3d(0, -8px, 0) scale(0.98); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0deg); filter: blur(0); }
}

@keyframes heroFlyUp {
  0%   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translate3d(var(--drop-from-x), var(--drop-from-y), 0) scale(0.2) rotate(14deg); filter: blur(12px); }
}

@keyframes heroTrail {
  0%   { opacity: 0; height: 0; transform: translateX(-50%) translateY(0) scaleY(0.4); }
  20%  { opacity: 1; height: 300px; }
  70%  { opacity: 0.85; height: 480px; }
  100% { opacity: 0; height: 0; transform: translateX(-50%) translateY(-200px) scaleY(0.2); }
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-soft);
  padding: 44px 28px 20px 28px;
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(16px);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.footer-brand h3 .c1 { color: var(--color-blue); }
.footer-brand h3 .c2 { color: var(--text-main); }
.footer-brand h3 .c3 { color: var(--color-green); }
.footer-brand h3 .c4 { color: var(--color-yellow); }
.footer-brand h3 .c5 { color: var(--color-blue); }
.footer-brand h3 .c6 { color: var(--text-main); }
.footer-brand h3 .c7 { color: var(--color-green); }

.footer-tagline { font-size: 13px; line-height: 1.7; color: var(--text-muted); margin-bottom: 6px; max-width: 320px; }
.footer-cta     { font-size: 13px; line-height: 1.7; font-weight: 600; color: var(--text-main); margin-bottom: 18px; max-width: 320px; }

.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.social-icon-link svg { width: 20px; height: 20px; border-radius: 50%; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-col a:hover { color: var(--color-blue); transform: translateX(3px); }

.footer-bottom {
  max-width: 1180px;
  margin: 40px auto 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: center;
  font-size: 12px;
  color: var(--text-soft);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .brand-name { font-size: 32px; letter-spacing: -1.4px; }
  .brand-sub { font-size: 13px; }
  .brand-tagline { font-size: 10px; padding-left: 16px; }
  .brand-divider { height: 40px; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 820px) {
  .header-shell { padding: 8px 10px 4px 10px; }
  :root { --header-logo-height: 30px; }

  .orbit-bar { padding: 10px 14px; gap: 10px; flex-wrap: nowrap; align-items: center; }

  .header-left { order: 1; flex-shrink: 0; }
  .header-logo img { height: 30px; filter: drop-shadow(0 0 6px var(--glow-blue)); }

  .header-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    pointer-events: none;
    max-width: 60%;
  }

  .brand-name { font-size: 20px; letter-spacing: -0.8px; }
  .brand-divider { display: inline-block; width: 1.5px; height: 26px; }
  .brand-side { gap: 1px; }
  .brand-sub { font-size: 10px; font-weight: 700; white-space: nowrap; }
  .brand-tagline { font-size: 8px; padding-left: 10px; white-space: nowrap; }

  .header-right { order: 3; margin-left: auto; gap: 6px; flex-shrink: 0; }

  .icon-btn-header { width: 32px; height: 32px; }
  .icon-btn-header svg { width: 15px; height: 15px; }
  .app-launcher-btn { width: 32px; height: 32px; }
  .sign-in-btn-new { padding: 7px 12px; font-size: 11px; }

  .apps-dropdown {
    width: calc(100vw - 24px);
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
    gap: 8px;
  }
  .app-item { padding: 14px 6px; font-size: 11px; }
  .app-item img { width: 32px; height: 32px; }

  main { padding: 0 14px 40px 14px; margin-top: 12px; }

  .solar-system { width: 170px; height: 170px; margin-top: 4px; }
  .world-overlay { width: 170px; height: 170px; }

  .orbit-1 { width: 55px;  height: 55px; }
  .orbit-2 { width: 80px;  height: 80px; }
  .orbit-3 { width: 105px; height: 105px; }
  .orbit-4 { width: 135px; height: 135px; }
  .orbit-5 { width: 165px; height: 165px; }

  .planet { width: 16px; height: 16px; }
  .planet-wrap { top: -10px; margin-left: -10px; }
  .planet-label { font-size: 7px; }
  .planet-saturn::after { width: 26px; height: 7px; border-width: 1.5px; }

  .sun img { height: 24px; }
  .search-bar-wrapper { height: 48px; }

  .news-panel { margin-top: 20px; }
  .news-header { padding: 14px 14px; }
  .news-title { font-size: 11px; }
  .news-link { padding: 12px 12px; gap: 10px; }
  .news-number { width: 26px; height: 26px; font-size: 12px; }
  .news-thumb { width: 42px; height: 42px; }
  .news-headline { font-size: 13px; }
  .news-arrow { display: none; }

  .news-hero { padding: 18px 16px 20px 16px; min-height: 110px; }
  .hero-ring { width: 60px; height: 60px; }
  .hero-ring::before { inset: -8px; }
  .hero-ring::after { inset: -14px; }
  .hero-thumb-fallback { font-size: 20px; }
  .hero-headline { font-size: 14px; }
  .hero-source { font-size: 10px; }
  .hero-cta { font-size: 11px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .orbit-bar { padding: 8px 10px; gap: 8px; }
  .header-logo img { height: 26px; }
  :root { --header-logo-height: 26px; }

  .brand-name { font-size: 16px; letter-spacing: -0.6px; }
  .brand-divider { height: 22px; width: 1px; }
  .brand-sub { font-size: 9px; }
  .brand-tagline { font-size: 7px; padding-left: 6px; }

  .icon-btn-header { width: 28px; height: 28px; }
  .icon-btn-header svg { width: 13px; height: 13px; }
  .app-launcher-btn { width: 28px; height: 28px; }
  .sign-in-btn-new { padding: 6px 10px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .cosmic-nebula, .cosmic-stars, .shooting-star, .bright-star,
  .dust-layer span, .news-hero .hero-link, .news-hero .hero-trail {
    animation: none !important;
  }
  .shooting-star { opacity: 0 !important; }
}

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  min-width: 280px;
  max-width: 92vw;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--color-blue);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-card);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  z-index: 9999;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast-icon { font-size: 16px; flex-shrink: 0; }
.toast-msg { flex: 1; line-height: 1.35; }

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.toast-close:hover { color: var(--color-blue); }

@media (max-width: 480px) {
  .toast {
    top: 76px;
    font-size: 12px;
    padding: 10px 14px;
    min-width: 0;
    width: calc(100vw - 24px);
  }
}

/* =========================================================
   APP DROPDOWN — POP-UP LAYER (final guarantee)
   Floats the dropdown ABOVE EVERYTHING without moving any
   other element. Nothing shifts; it just appears on top.
   ========================================================= */

/* 1. Highest possible z-index + own stacking context */
.apps-dropdown {
  position: fixed !important;
  z-index: 2147483647 !important;
  isolation: isolate;
  pointer-events: auto !important;
}

.apps-dropdown.active {
  z-index: 2147483647 !important;
}

/* 2. Pin every other top-level section low so the dropdown
      is mathematically guaranteed to sit above them */
body > main,
body > footer,
body > .header-shell {
  z-index: 1;
}