/* ==========================================================================
   1. GLOBAL RESET
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================================================================
   2. VIEWPORT & BACKGROUND
   ========================================================================== */
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Aref Ruqaa', serif;
  background: #111 url('images/bg1.jpg') no-repeat center center fixed;
  background-size: cover;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   3. CENTRAL FROSTED CARD
   ========================================================================== */
.card {
  width: 88%;
  max-width: 440px;
  padding: 30px 24px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

/* ==========================================================================
   4. CIRCULAR PROFILE AVATAR
   ========================================================================== */
.avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  animation: spinRecord 8s linear infinite;
  transform-origin: center center;
}

.avatar:hover {
  animation-duration: 3s;
}

@keyframes spinRecord {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   5. ARABIC CALLIGRAPHY TITLE
   ========================================================================== */
.title {
  font-size: 2.1rem;
  color: #000000;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

/* ==========================================================================
   6. SCALED RETRO PASSWORD INPUT
   ========================================================================== */
.auth-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 4px;
}

.auth-label {
  font-family: 'VT323', monospace;
  font-size: 1.25rem;
  color: #000000;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.terminal-input-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #000000;
  border-radius: 7px;
  width: 180px;
  height: 28px;
  padding: 0 4px 0 6px;
}

.terminal-input-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 2.5px;
  color: #000000;
  width: 100%;
}

.terminal-btn {
  background: transparent;
  border: none;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #000000;
  cursor: pointer;
  padding-left: 5px;
  line-height: 1;
}

.terminal-btn:hover {
  opacity: 0.7;
}

.auth-error {
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  color: #b00000;
  min-height: 1.2em;
  margin-top: 5px;
  visibility: hidden;
}

/* ==========================================================================
   7. SOCIAL MEDIA ICONS
   ========================================================================== */
.socials {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 2px;
}

.socials a {
  color: #000000;
  font-size: 1.35rem;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.socials a:hover,
.socials a:active {
  transform: scale(1.15);
  opacity: 0.7;
}

/* ==========================================================================
   8. RETRO TERMINAL POP-UP MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 100;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Black box, white mono text, pixelated double border */
.terminal-modal-box {
  position: relative;
  width: 88%;
  max-width: 320px;
  background: #000000;
  border: 2px solid #ffffff;
  outline: 2px solid #000000;
  box-shadow: 0 0 0 4px #ffffff, 0 14px 28px rgba(0,0,0,0.85);
  padding: 22px 18px;
  text-align: left;
  font-family: 'VT323', monospace;
  color: #ffffff;
}

.terminal-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.terminal-header-text p {
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

#subscribeForm {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terminal-input {
  width: 100%;
  background: #000000;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-family: 'VT323', monospace;
  font-size: 1.15rem;
  padding: 6px 8px;
  outline: none;
  border-radius: 0;
}

.terminal-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.terminal-input:focus {
  background: #080808;
}

.terminal-action-btn {
  background: #000000;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-family: 'VT323', monospace;
  font-size: 1.15rem;
  padding: 6px;
  cursor: pointer;
  letter-spacing: 1px;
  border-radius: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.terminal-action-btn:hover {
  background: #ffffff;
  color: #000000;
}

.terminal-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.terminal-status-msg {
  font-size: 1rem;
  min-height: 1.2em;
  text-align: center;
  color: #ffffff;
}

/* ==========================================================================
   9. BOTTOM NEWS TICKER
   ========================================================================== */
.news-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 0;
  white-space: nowrap;
  z-index: 20;
}

.ticker-track {
  display: inline-flex;
  animation: scroll-news 22s linear infinite;
}

.ticker-track span {
  color: #ffffff;
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
  letter-spacing: 0.5px;
  padding-right: 20px;
}

@keyframes scroll-news {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}