:root {
  --primary: #FF6B35;
  --primary-dark: #E85D04;
  --primary-light: #FFA07A;
  --primary-glow: rgba(255, 107, 53, 0.22);
  --accent: #F7931E;
  --bg: #0A0E14;
  --bg-elevated: #111722;
  --card-bg: rgba(18, 24, 36, 0.75);
  --card-border: rgba(255, 107, 53, 0.14);
  --card-border-hover: rgba(255, 107, 53, 0.45);
  --text-main: #F0F4F8;
  --text-muted: #8E9BAE;
  --text-light: #C5D1E0;
  --highlight: #FFF5EE;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Kufi Arabic", "Cairo", Tahoma, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 107, 53, 0.16) 0%, transparent 60%),
    radial-gradient(circle at 10% 70%, rgba(232, 93, 4, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 40%, rgba(247, 147, 30, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Header */
header {
  width: 100%;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(10, 14, 20, 0.75);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s ease;
}

.brand-inline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-inline img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.25);
}

.brand-inline-name {
  font-weight: 800;
  font-size: 1.15rem;
  background: linear-gradient(135deg, #FFFFFF 40%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s infinite;
}

.nav-home-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
}

.nav-home-btn:hover {
  background: rgba(255, 107, 53, 0.15);
  border-color: var(--primary);
  color: var(--highlight);
}

/* App Container */
#app-root {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Footer */
footer {
  width: 100%;
  text-align: center;
  padding: 2.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.9rem;
  background-color: rgba(8, 12, 18, 0.95);
  margin-top: auto;
}

footer .footer-brand {
  color: var(--primary-light);
  font-weight: 700;
}

/* Shared Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 600px) {
  header {
    padding: 1rem 1.25rem;
  }
  .brand-inline-name {
    font-size: 1.05rem;
  }
}
