/* ===== BASE ===== */

body {
  margin: 0;
  padding: 0;
  color: #ffffff;
  background: #000000;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.page-wrapper {
  min-height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 26px 16px 40px;
}

/* مپ بک‌گراندها طبق خواسته‌ات:
   Home  -> روز (جاده روز)
   Company -> شب (bg-night)
   Personal -> عکس پل (bg-default)
*/
.mode-home {
  background-image: url("assets/bg-day.jpg");
}

.mode-company {
  background-image: url("assets/bg-night.jpg");
}

.mode-personal {
  background-image: url("assets/bg-default.jpg");
}

/* ===== HEADER ===== */

.top-header {
  text-align: center;
  margin-bottom: 22px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.top-header h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 30px;
  letter-spacing: 0.18em;
}

.top-header h2 {
  margin: 6px 0 8px;
  font-family: "Cinzel", serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e0e0e0;
}

#modeCaption {
  font-size: 13px;
  color: #f0f0f0;
}

.top-tabs {
  margin-top: 10px;
}

.top-tabs button {
  background: rgba(15, 15, 30, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  margin: 0 4px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.top-tabs button.active {
  background: #0088ff;
  border-color: #00aaff;
}

/* ===== SECTIONS ===== */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px 26px;
  background: radial-gradient(
    circle at top,
    rgba(0, 0, 0, 0.86),
    rgba(0, 0, 0, 0.55)
  );
  border-radius: 16px;
  backdrop-filter: blur(6px);
}

.section h2 {
  font-family: "Cinzel", serif;
  font-size: 22px;
  margin-top: 0;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ===== BACK BUTTON PAGE ===== */

.back-btn-page {
  background: rgba(20, 20, 30, 0.9);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  margin-bottom: 14px;
}

.back-btn-page:hover {
  background: rgba(40, 40, 60, 0.95);
}

/* ===== SUB TABS (Company) ===== */

.sub-tabs {
  text-align: center;
  margin: 4px 0 16px;
}

.sub-tab {
  background: rgba(20, 20, 30, 0.9);
  color: #ffffff;
  border: none;
  padding: 7px 16px;
  margin: 0 4px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

.sub-tab.active {
  background: #ff8000;
}

.sub-panel h3 {
  font-family: "Cinzel", serif;
  font-size: 18px;
  margin-top: 0;
}

/* ===== REGISTRATION & OWNERS BOX ===== */

.reg-box {
  background: rgba(0, 0, 0, 0.55);
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  line-height: 1.55;
}

.reg-box strong {
  color: #00aaff;
  font-family: "Cinzel", serif;
}

/* ===== ACTIVITIES HUB ===== */

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.activity-card {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, border-color 0.15s ease;
  color: #ffffff;
}

.activity-card:hover {
  background: #0066ff;
  border-color: #66b3ff;
  box-shadow: 0 0 16px rgba(0, 153, 255, 0.7);
  transform: translateY(-2px);
}

.act-code {
  font-family: "Cinzel", serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.act-label {
  font-size: 13px;
  opacity: 0.95;
}

/* ===== ACTIVITY DETAIL ===== */

.act-header {
  font-size: 13px;
  color: #e0e0e0;
}

.act-body {
  margin-top: 20px;
  min-height: 140px;
  font-size: 14px;
}

/* ===== FLOATING CONTACTS ===== */

.floating-contacts {
  position: fixed;
  right: 14px;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
}

.floating-contacts a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .page-wrapper {
    padding: 18px 10px 26px;
  }

  .section {
    padding: 14px 10px 20px;
  }

  .floating-contacts {
    right: 10px;
    top: auto;
    bottom: 14px;
  }
}
