* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Vazir', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.glass-box {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 95%;
  z-index: 1;
}

.logo-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 30px;
}

.logo-container {
  width: 100%;
  height: 100%;
  animation: slowSpin 20s linear infinite;
  transform-origin: center center;
}

.fixed-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.8em;
  font-weight: bold;
  color: #1E2C4B;
  text-shadow: 0 0 10px #FFD54F;
  pointer-events: none;
}

@keyframes slowSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.info-text {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.countdown {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.time-box {
  background: #ffffff33;
  border: 1px solid #ffffff44;
  border-radius: 12px;
  width: 80px;
  padding: 15px 10px;
  text-align: center;
  position: relative;
  perspective: 600px;
}

.time-box .num {
  font-size: 1.9em;
  font-weight: bold;
  text-shadow: 0 0 8px #FFD54F;
}

.time-box .num.flip {
  animation: flip 0.7s ease-in-out;
}

.time-box .label {
  font-size: 0.9em;
  margin-top: 5px;
}

@keyframes flip {
  0%   { transform: rotateX(0deg); }
  50%  { transform: rotateX(180deg); }
  100% { transform: rotateX(0deg); }
}

.social-links {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-top: 30px;
}

.social-links a {
  font-size: 1.7em;
  transition: color 0.3s;
}

.sms-button {
  margin-top: 25px;
  font-size: 1.1em;
  color: #1E2C4B;
  background: transparent;
  border: 2px solid #1E2C4B;
  border-radius: 10px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sms-button i {
  font-size: 1.3em;
}

.sms-button:hover {
  background: #FFD54F;
  color: #000;
  border-color: #FFD54F;
}

/* حالت روز */
body.day-mode {
  background-color: #E6F0FF;
  color: #1E2C4B;
}

body.day-mode .fixed-text,
body.day-mode .num,
body.day-mode .social-links a {
  color: #1E2C4B;
}

body.day-mode .label {
  color: #444;
}

/* حالت شب */
body.night-mode {
  background-color: #0B132B;
  color: #FFFFFF;
}

body.night-mode .glass-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .fixed-text,
body.night-mode .num {
  color: #FFD54F;
  text-shadow: 0 0 10px #fff;
}

body.night-mode .label {
  color: #aaa;
}

body.night-mode .social-links a {
  color: #FFD54F;
}

body.night-mode .sms-button {
  color: #FFD54F;
  border-color: #FFD54F;
}

body.night-mode .sms-button:hover {
  background: #fff;
  color: #000;
}

#mode-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 1.8em;
  cursor: pointer;
  z-index: 100;
  transition: transform 0.2s ease;
}

#mode-toggle:hover {
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .logo-wrapper { width: 120px; height: 120px; }
  .fixed-text { font-size: 2em; }
  .time-box { width: 70px; padding: 10px; }
  .time-box .num { font-size: 1.5em; }
}
