* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: #000; /* Outer boundary for desktop */
  color: var(--color-text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

button {
  font-family: var(--font-heading);
  border: none;
  cursor: pointer;
  outline: none;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Desktop/PC Wrapper */
.desktop-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle at 30% 50%, rgba(0, 240, 255, 0.08) 0%, #000 60%);
}

.desktop-presentation {
  display: none; /* Escondido por defeito (mobile) */
}

@media (min-width: 1024px) {
  .desktop-wrapper {
    justify-content: space-evenly;
    padding: 0 40px;
  }
  
  .desktop-presentation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    padding-right: 40px;
    animation: fadeIn 1.5s ease-out;
  }
}

/* App Container */
#mobile-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  /* Default Desktop layout (Dashboard/App) */
  #mobile-container {
      height: 100vh;
      border-radius: 0;
      border: none;
      box-shadow: none;
  }
  .desktop-wrapper {
      padding: 0;
  }
  .desktop-presentation {
      display: none !important;
  }
  #app {
      border-radius: 0;
      height: 100vh; 
  }
  
  /* Logged-out Landing page specific layout - Faux Phone + Rich presentation */
  body.public-landing .desktop-wrapper {
      justify-content: center;
      gap: 40px;
      padding: 40px;
      flex-wrap: wrap;
      align-items: center;
  }
  body.public-landing .desktop-presentation {
      display: flex !important;
      flex-direction: column;
      justify-content: center;
      max-width: 800px;
      min-width: 350px;
      flex: 1 1 500px;
      padding-right: 0;
      animation: fadeIn 1.5s ease-out;
  }
  body.public-landing #mobile-container {
      width: 420px;
      min-height: 800px; 
      height: 85vh;
      max-height: 900px;
      border-radius: 40px;
      border: 12px solid #111;
      box-shadow: 0 25px 80px rgba(0, 255, 163, 0.15), 0 0 0 1px #333;
      overflow: hidden;
  }
  body.public-landing #app {
      height: 100%;
      border-radius: 28px; /* Internal radius for phone sim */
  }
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100vh; /* Lock height to viewport for App-like feel */
  overflow: hidden;
}

/* Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius-lg);
}

.primary-btn {
  background: linear-gradient(135deg, var(--color-primary), #00A2FF);
  color: #000;
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  font-size: 1.1rem;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px var(--color-primary-glow);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.primary-btn:active {
  transform: scale(0.96);
}

.glow-text {
  text-shadow: 0 0 10px var(--color-primary-glow);
}

/* Animations */
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px var(--color-primary-glow); }
  50% { box-shadow: 0 0 25px var(--color-primary-glow); }
  100% { box-shadow: 0 0 10px var(--color-primary-glow); }
}

/* Hidden Scrollbar */
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* Admin Mode Overrides for PC */
body.admin-mode .desktop-presentation {
  display: none !important;
}

body.admin-mode .desktop-wrapper {
  background: var(--color-bg);
  padding: 0;
}

body.admin-mode #mobile-container {
  max-width: 1200px;
  width: 100%;
  height: auto;
  min-height: 100vh;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

body.admin-mode #app {
  border-radius: 0;
}
