/* /app/ account surface — built on the shared styles.css tokens (navy + gold). */

/* The `hidden` attribute must always win, even over the grid/flex display
   values set below (an explicit display otherwise overrides [hidden]). */
[hidden] { display: none !important; }

.app-wrap { max-width: 1100px; margin: 0 auto; padding: 64px 32px 80px; }

/* ── logged-out: split intro + auth card ── */
.auth-shell {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  min-height: 60vh;
}
.auth-intro h1 {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -0.5px;
  color: var(--text-hi); margin: 14px 0 18px; text-wrap: balance;
}
.auth-intro > p {
  font-size: calc(16px * var(--font-scale)); color: var(--text-mid);
  line-height: 1.7; max-width: 46ch; margin-bottom: 26px;
}
.auth-points { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.auth-points li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: calc(14.5px * var(--font-scale)); color: var(--text-mid); line-height: 1.55;
}
.auth-points li::before {
  content: ''; flex: none; width: 18px; height: 18px; margin-top: 1px;
  background: var(--accent-dim); border: 1px solid rgba(201,164,69,0.4); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DDBB66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 11px;
}

.auth-card {
  background: var(--bg-raised); border: 1px solid var(--glass-border);
  border-radius: 18px; padding: 34px 30px; box-shadow: 0 24px 70px rgba(0,0,0,0.4);
}
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px; margin-bottom: 24px;
}
.auth-tabs button {
  background: none; border: none; cursor: pointer; border-radius: 9px; padding: 10px;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: calc(13.5px * var(--font-scale));
  color: var(--text-mid); transition: background 0.2s, color 0.2s;
}
.auth-tabs button.active { background: var(--accent); color: #171207; }

#auth-form { display: flex; flex-direction: column; gap: 16px; }
#auth-form label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: calc(12.5px * var(--font-scale)); font-weight: 600; color: var(--text-mid);
}
#auth-form input {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 15px; color: var(--text-hi); font-family: 'Inter', sans-serif;
  font-size: calc(14.5px * var(--font-scale)); transition: border-color 0.2s, box-shadow 0.2s;
}
#auth-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
#auth-form .btn-primary { margin-top: 6px; width: 100%; justify-content: center; }
.auth-err {
  font-size: calc(13px * var(--font-scale)); color: #F6B8B8; line-height: 1.5;
  background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3);
  border-radius: 9px; padding: 10px 13px; margin: 0;
}
.auth-note {
  font-size: calc(11.5px * var(--font-scale)); color: var(--text-dim);
  line-height: 1.6; margin-top: 20px;
}

/* ── logged-in: dashboard ── */
.dash-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; margin-bottom: 34px; flex-wrap: wrap;
}
.dash-head h1 {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px); color: var(--text-hi); margin-top: 8px;
}

.pack-card {
  background: var(--bg-raised); border: 1px solid var(--glass-border);
  border-radius: 18px; padding: 34px 32px; margin-bottom: 30px;
  position: relative; overflow: hidden;
}
.pack-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c));
}
.pack-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.pack-name {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: calc(24px * var(--font-scale)); color: var(--text-hi);
}
.pack-tag { font-size: calc(14px * var(--font-scale)); color: var(--text-mid); line-height: 1.6; margin: 8px 0 0; max-width: 52ch; }
.pack-price {
  flex: none; text-align: right; font-family: 'Fraunces', serif; font-weight: 700;
  font-size: calc(22px * var(--font-scale)); color: var(--accent-text); white-space: nowrap;
}
.pack-feats { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 22px 0 26px; }
.pack-feats li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: calc(14px * var(--font-scale)); color: var(--text-mid); line-height: 1.55;
}
.pack-feats li::before {
  content: ''; flex: none; width: 17px; height: 17px; margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DDBB66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 15px;
}

.pack-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  background: #25D366; color: #06331B; border: none; border-radius: 100px;
  font-family: 'Inter', sans-serif; font-weight: 800; font-size: calc(14px * var(--font-scale));
  padding: 13px 24px; transition: transform 0.15s, box-shadow 0.2s;
}
.btn-wa:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(37,211,102,0.3); }
.btn-wa::before {
  content: ''; width: 18px; height: 18px; background: #06331B;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 004.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0012.04 2zm5.8 14.16c-.25.7-1.44 1.33-1.99 1.41-.53.08-1.17.11-1.89-.12-.44-.14-1-.32-1.72-.63-3.02-1.31-4.99-4.35-5.14-4.55-.15-.2-1.23-1.63-1.23-3.11s.78-2.21 1.06-2.51c.28-.3.61-.38.81-.38l.58.01c.19.01.44-.07.68.52.25.6.85 2.08.92 2.23.08.15.13.32.03.52-.1.2-.15.32-.3.5-.15.17-.31.39-.45.52-.15.15-.3.31-.13.61.17.3.76 1.25 1.63 2.03 1.12 1 2.06 1.31 2.36 1.46.3.15.47.13.65-.08.18-.2.75-.87.95-1.17.2-.3.4-.25.68-.15.28.1 1.75.83 2.05.98.3.15.5.22.57.35.08.13.08.7-.17 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 004.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0012.04 2zm5.8 14.16c-.25.7-1.44 1.33-1.99 1.41-.53.08-1.17.11-1.89-.12-.44-.14-1-.32-1.72-.63-3.02-1.31-4.99-4.35-5.14-4.55-.15-.2-1.23-1.63-1.23-3.11s.78-2.21 1.06-2.51c.28-.3.61-.38.81-.38l.58.01c.19.01.44-.07.68.52.25.6.85 2.08.92 2.23.08.15.13.32.03.52-.1.2-.15.32-.3.5-.15.17-.31.39-.45.52-.15.15-.3.31-.13.61.17.3.76 1.25 1.63 2.03 1.12 1 2.06 1.31 2.36 1.46.3.15.47.13.65-.08.18-.2.75-.87.95-1.17.2-.3.4-.25.68-.15.28.1 1.75.83 2.05.98.3.15.5.22.57.35.08.13.08.7-.17 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pack-activate-link {
  background: none; border: none; cursor: pointer; color: var(--accent-text);
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: calc(13px * var(--font-scale));
  text-decoration: underline; text-underline-offset: 3px;
}
.pack-code { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pack-code input {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text-hi); font-family: 'Inter', sans-serif;
  font-size: calc(14px * var(--font-scale)); letter-spacing: 1px; min-width: 200px;
}
.pack-code input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.pack-msg { font-size: calc(13px * var(--font-scale)); line-height: 1.5; margin: 12px 0 0; }
.pack-msg.err { color: #F6B8B8; }
.pack-msg.ok { color: #8FE3B0; }

.pack-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(143,227,176,0.12); border: 1px solid rgba(143,227,176,0.35);
  color: #8FE3B0; border-radius: 100px; padding: 6px 14px;
  font-size: calc(12.5px * var(--font-scale)); font-weight: 700;
}

.pack-note {
  font-size: calc(11.5px * var(--font-scale)); color: var(--text-dim);
  line-height: 1.6; margin: 18px 0 0;
}

/* free-tools strip on the dashboard */
.dash-tools {
  border-top: 1px solid var(--border); padding-top: 26px;
}
.dash-tools h2 {
  font-family: 'Fraunces', serif; font-weight: 700; font-size: calc(18px * var(--font-scale));
  color: var(--text-hi); margin-bottom: 6px;
}
.dash-tools p { color: var(--text-dim); font-size: calc(13px * var(--font-scale)); margin-bottom: 16px; }
.dash-tools a {
  color: var(--accent-text); font-weight: 700; font-size: calc(13.5px * var(--font-scale));
  text-decoration: none; border-bottom: 1px solid rgba(201,164,69,0.35); padding-bottom: 2px;
}
.dash-tools a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; gap: 34px; }
  .app-wrap { padding: 40px 20px 64px; }
}
