/* ====================== RESET ====================== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif;
}

/* ====================== LANDING ====================== */
body.landing {
  background: #000;
  color: #fff;
  text-align: center;
}

.landing-wrap {
  padding: 80px 20px;
}

.landing-actions a {
  display: inline-block;
  margin: 10px;
  padding: 12px 22px;
  border-radius: 10px;
  background: #7dc9ff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
}

/* ====================== AUTH ====================== */
body.auth {
  min-height: 100vh;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  padding: 28px;
  text-align: center;
}

.auth-card input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: none;
}

.auth-card button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #7dc9ff;
  font-weight: 600;
}

/* ====================== DASHBOARD ====================== */
body.dashboard {
  background: #000;
  color: #fff;
  height: 100vh;
  overflow: hidden;
}

.dashboard {
  width: 100%;
  padding: 16px;
}

/* ✅ 4-column responsive grid */
.dashboard-grid {
  display: grid;
  gap: 16px;
  height: calc(100vh - 64px);
  grid-template-columns: repeat(4, minmax(240px, 1fr));
}

/* Breakpoints */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  body.dashboard {
    overflow: auto;
  }
}

/* ====================== PANELS ====================== */
.panel {
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 15px;
}

/* Scroll inside panels */
.panel-scroll {
  overflow-y: auto;
  padding-right: 4px;
}

/* ====================== FORMS ====================== */
label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 0.85rem;
  opacity: 0.8;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.9rem;
}

input[type="color"] {
  padding: 0;
  height: 38px;
}

textarea {
  resize: vertical;
}

/* ====================== BUTTONS ====================== */
button,
.bio-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #7dc9ff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

button.secondary {
  background: #9bcfff;
}

/* ====================== LIVE PREVIEW ====================== */
.preview-wrap {
  display: flex;
  justify-content: center;
}

.preview-phone {
  width: 300px;
  height: 560px;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.preview-phone iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ====================== ANALYTICS ====================== */
.analytics {
  font-size: 13px;
}

.analytics-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

/* ====================== UI SCALE ====================== */
#ui-scale {
  transform-origin: top left;
  transition: transform 180ms ease-in-out;
}

/* ====================== PROFILE PAGE ====================== */
body.profile {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  color: #fff;
}

body.profile::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: -1;
}

.page.bio {
  max-width: 420px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}