/* ==========================================
   PREMIUM DYNAMIC THEME (MULTI-TENANT)
   D1G1 B1ZZ - DIGITAL BUSINESS HUB
========================================== */

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

:root {
  /* ==========================================
     DYNAMIC JSON THEME FALLBACKS
     (Override these via JS for each business)
  ========================================== */
  --themeBgMain: #050505;
  --themeBgCard: #111111;
  
  --themePrimary: #00ffff;   /* Cyan */
  --themeSecondary: #ff00ff; /* Magenta */
  
  --themeTextMain: #ffffff;
  --themeTextMuted: #a0a0a0;
  
  --themeButtonBorder: rgba(255, 255, 255, 0.1);
  --themeButtonBg: transparent;
  --themeButtonHoverBg: rgba(255, 0, 255, 0.05);

  --fontMain: 'Inter', sans-serif;
}

/* ==========================================
   RESET & BASE STYLES
========================================== */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  font-family: var(--fontMain);
  background-color: var(--themeBgMain);
  color: var(--themeTextMain);
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

button, input, textarea {
  font: inherit;
}

button {
  border: 0;
  outline: none;
  cursor: pointer;
  transition: transform 0.15s ease, all 0.3s ease;
}

button:active {
  transform: scale(0.97);
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

/* ==========================================
   APP SHELL (MOBILE CONSTRAINT)
========================================== */
.app-shell {
  width: 100%;
  max-width: 450px;
  background-color: var(--themeBgMain);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem;
  min-height: 100vh;
}

.screen.active {
  display: flex;
}

/* ==========================================
   NEON UTILITIES (USING DYNAMIC VARS)
========================================== */
.neon-cyan {
  color: var(--themePrimary);
  text-shadow: 0 0 8px var(--themePrimary);
}

.neon-magenta {
  color: var(--themeSecondary);
  text-shadow: 0 0 8px var(--themeSecondary);
}

.cyan-glow {
  box-shadow: 0 0 8px var(--themePrimary);
}

/* ==========================================
   SCREEN 1: ENTRY SCREEN
========================================== */
.entry-screen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  flex: 1;
}

.logo-container {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.entry-main-art {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 0 15px var(--themeSecondary));
}

.action-container {
  width: 100%;
  text-align: center;
}

.primary-enter-btn {
  background: var(--themeButtonBg);
  color: var(--themeTextMain);
  border: 2px solid var(--themeSecondary);
  border-radius: 40px;
  padding: 1rem 4rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 3px;
  box-shadow: 0 0 15px var(--themeSecondary), inset 0 0 5px var(--themeSecondary);
}

.primary-enter-btn:hover {
  background: var(--themeSecondary);
  color: var(--themeBgMain);
  box-shadow: 0 0 25px var(--themeSecondary);
}

.entry-footer {
  margin-top: auto;
  padding-bottom: 2rem;
}

.d1g1-fine-print {
  color: var(--themePrimary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 1px;
  text-decoration: underline;
  text-shadow: 0 0 5px var(--themePrimary);
}

/* ==========================================
   SCREEN 2: HIGH-END BUSINESS HUB
========================================== */
.hub-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hub-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.welcome-text {
  font-size: 0.8rem;
  letter-spacing: 3px;
  margin-bottom: 0.2rem;
}

.hub-title {
  font-size: 3.2rem;
  font-weight: 300; 
  letter-spacing: 2px;
  margin: 0;
  line-height: 1;
}

.hub-subtitle {
  font-size: 0.75rem;
  color: var(--themeTextMain);
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

/* Profile Area */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
  width: 100%;
}

.profile-ring-glow {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 3px;
  /* Dynamic gradient using the business's primary and secondary colors */
  background: linear-gradient(135deg, var(--themeSecondary), var(--themePrimary));
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px var(--themeSecondary);
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--themeBgMain);
}

.company-name-display {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--themeTextMain);
}

.company-description-box {
  font-size: 0.9rem;
  color: var(--themeTextMuted);
  line-height: 1.6;
  padding: 0 1rem;
}

/* Links / Connect Area */
.hub-links-section {
  width: 100%;
  margin-bottom: 3rem;
}

.connect-divider {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.divider-line {
  height: 1px;
  flex: 1;
  background: var(--themePrimary);
  box-shadow: 0 0 5px var(--themePrimary);
}

.divider-text {
  padding: 0 1rem;
  font-size: 0.7rem;
  letter-spacing: 2px;
}

.links-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hub-action-btn {
  background: var(--themeButtonBg);
  border: 1px solid var(--themeButtonBorder);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  color: var(--themeTextMain);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hub-action-btn:hover {
  border-color: var(--themeSecondary);
  background: var(--themeButtonHoverBg);
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.15); /* Adjust based on theme */
}

.btn-icon-left {
  font-size: 1.2rem;
  width: 35px;
  text-align: center;
}

.btn-label {
  flex: 1;
  text-align: left;
  padding-left: 10px;
  letter-spacing: 1px;
}

.btn-icon-right {
  font-size: 1rem;
}

/* Footer / Branding */
.hub-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hub-contact-info {
  text-align: center;
  font-size: 0.85rem;
  line-height: 2;
  color: var(--themeTextMuted);
}

.hub-contact-info i {
  margin-right: 8px;
}

.hub-brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 1.5rem;
  border-top: 1px solid var(--themeButtonBorder);
  width: 80%;
  justify-content: center;
}

.mp-logo-mark {
  font-size: 2.2rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
}

.mp-logo-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  letter-spacing: 2px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* ==========================================
   MODAL (D1G1 B1ZZ INQUIRY)
========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5000;
  padding: 20px;
}

.modal-card {
  background: var(--themeBgCard);
  border: 1px solid var(--themePrimary);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.15); /* Subtle primary glow */
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--themeTextMuted);
  font-size: 2rem;
}

.modal-close-btn:hover {
  color: var(--themeSecondary);
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--themeTextMuted);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.5;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.75rem;
  color: var(--themePrimary);
  margin-bottom: 0.4rem;
  margin-top: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--themeButtonBorder);
  border-radius: 8px;
  padding: 0.9rem;
  color: var(--themeTextMain);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--themePrimary);
  background: rgba(255, 255, 255, 0.08);
}

.submit-inquiry-btn {
  width: 100%;
  background: var(--themeButtonBg);
  color: var(--themeTextMain);
  border: 1px solid var(--themeSecondary);
  padding: 1.1rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-top: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.submit-inquiry-btn:hover {
  background: var(--themeSecondary);
  color: var(--themeBgMain);
  box-shadow: 0 0 20px var(--themeSecondary);
}

/* ==========================================
   SMALL SCREENS
========================================== */
@media (max-width: 390px) {
  .hub-title { font-size: 2.8rem; }
  .profile-ring-glow { width: 130px; height: 130px; }
  .hub-action-btn { padding: 1rem; }
  .modal-card { padding: 2rem 1.5rem; }
}
