:root {
  --bg: #0a0508;
  --bg-2: #1a0a0d;
  --red: #e63946;
  --red-bright: #ff4d5a;
  --red-glow: rgba(230, 57, 70, 0.35);
  --white: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --radius: 16px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: radial-gradient(1200px 800px at 50% -10%, #2a0d12 0%, var(--bg-2) 40%, var(--bg) 100%);
  color: var(--white);
  font-family: var(--font-body);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ============ PARTICLES / STARS ============ */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============ GLOW ORBS ============ */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.glow-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--red-glow), transparent 70%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  animation: floatA 9s ease-in-out infinite;
}
.glow-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.22), transparent 70%);
  bottom: -120px;
  left: 18%;
  animation: floatB 11s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(18px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ============ CONTAINER ============ */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  height: 100%;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 26px 20px 20px;
  overflow: hidden;
}

/* ============ LANGUAGE SELECTOR ============ */
.lang-selector {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.lang-btn:hover {
  color: var(--white);
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--red), var(--red-bright));
  color: #fff;
  box-shadow: 0 0 18px var(--red-glow);
}

/* ============ BRAND / LOGO ============ */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  font-size: 30px;
  filter: drop-shadow(0 0 12px var(--red-glow));
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #fff 0%, #ffb3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-text b {
  color: var(--red-bright);
  -webkit-text-fill-color: var(--red-bright);
}

/* ============ HERO ============ */
.hero {
  text-align: center;
  padding: 6px 10px;
  animation: fadeUp 0.9s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 6.5vw, 62px);
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #ffd7da 55%, var(--red-bright) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 77, 90, 0.35));
  letter-spacing: 1px;
}
.subtitle {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 3vw, 30px);
  margin-top: 6px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* ============ DONATION BUTTONS ============ */
.donation-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 500px;
  padding: 4px 0;
}
.donate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: clamp(58px, 8vh, 74px);
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(17px, 2.2vw, 22px);
  letter-spacing: 0.5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.donate-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.08) 60%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.donate-btn:hover::before {
  transform: translateX(100%);
}
.donate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 34px var(--red-glow);
  border-color: rgba(255, 77, 90, 0.55);
}
.donate-btn:active {
  transform: translateY(0) scale(0.985);
}
.btn-icon {
  width: clamp(24px, 3vw, 30px);
  height: clamp(24px, 3vw, 30px);
  flex-shrink: 0;
}
.btn-label {
  white-space: nowrap;
}

.paypal .btn-icon { color: #0493c5; }
.paypal:hover { background: rgba(4, 147, 197, 0.14); }

.card .btn-icon { color: #b3b8ff; }
.card:hover { background: rgba(179, 184, 255, 0.12); }

/* ============ INFO BOX ============ */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 560px;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  animation: fadeUp 1s ease both 0.15s;
}
.info-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.info-box p {
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 1.45;
  color: var(--text-dim);
  font-weight: 500;
}

/* ============ FOOTER MESSAGE ============ */
.footer-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  font-size: clamp(11.5px, 1.4vw, 14px);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  animation: fadeUp 1s ease both 0.25s;
}

/* ============ RTL (ARABIC) ============ */
html[dir="rtl"] .lang-selector {
  right: auto;
  left: 16px;
}
html[dir="rtl"] .donate-btn {
  flex-direction: row;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .logo-icon { font-size: 24px; }
  .logo-text { font-size: 16px; letter-spacing: 2px; }
  .donation-buttons { max-width: 400px; gap: 12px; }
  .btn-label { white-space: normal; font-size: 16px; }
  .lang-btn { font-size: 11.5px; padding: 5px 9px; }
  .info-box { padding: 8px 12px; }
  .container { padding: 20px 16px 16px; }
  .title { font-size: clamp(30px, 8vw, 40px); }
  .subtitle { font-size: clamp(16px, 4.5vw, 22px); }
}

@media (max-width: 400px) {
  .logo { display: none; }
  .title { font-size: clamp(26px, 7vw, 34px); }
  .footer-message { font-size: 11px; }
  .donate-btn { height: 54px; }
}

@media (max-height: 600px) {
  .container { padding-top: 14px; padding-bottom: 12px; }
  .logo { display: none; }
  .title { font-size: clamp(26px, 6vw, 42px); }
  .donate-btn { height: 50px; }
  .donation-buttons { gap: 10px; }
  .info-box p { font-size: 12.5px; }
}
