:root {
  --bg: #f6f7f9;
  --bg-elevated: #ffffff;
  --text: #111111;
  --text-muted: #6b7280;
  --border: rgba(17, 17, 17, 0.08);
  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-soft: rgba(225, 29, 72, 0.1);
  --shadow: 0 24px 64px rgba(17, 17, 17, 0.1);
  --radius: 22px;
  --font: "Onest", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Onest", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-elevated: #161618;
  --text: #f5f5f5;
  --text-muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #fb7185;
  --accent-hover: #fda4af;
  --accent-soft: rgba(251, 113, 133, 0.15);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ---------- Create page ---------- */
.create-body {
  background: #fafafa;
  color: #111;
  overflow-x: hidden;
}

.create-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(225, 29, 72, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 20%, rgba(17, 17, 17, 0.05), transparent 50%);
  z-index: 0;
}

.blinq-nav {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.blinq-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.blinq-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 999px;
  padding: 8px 12px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 4px;
}

.nav-link:hover {
  color: #e11d48;
}

.nav-user {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-cta {
  margin-top: 0 !important;
  padding: 10px 18px !important;
  font-size: 0.88rem !important;
  box-shadow: none !important;
}

/* Auth — split brand + login */
.auth-body {
  position: relative;
  min-height: 100vh;
  background: #000;
  color: #f5f5f5;
  overflow-x: hidden;
  font-family: var(--font);
}

.auth-stage {
  position: relative;
  min-height: 100vh;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000;
}

.auth-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
  transform: scale(1.03);
  animation: authBgIn 1.1s ease both;
}

.auth-bg-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.72) 68%, rgba(8, 8, 10, 0.94) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}

@keyframes authBgIn {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

.auth-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 480px);
}

.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  padding: 44px 48px 40px;
  color: #fff;
  animation: authShellIn 0.55s ease both;
}

.auth-logo {
  display: inline-flex;
  width: fit-content;
  line-height: 0;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
}

.auth-logo img {
  height: clamp(44px, 5vw, 54px);
  width: auto;
  display: block;
}

.auth-logo-mobile {
  display: none;
  margin: 0 auto 20px;
}

.auth-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-side-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.auth-side-lead {
  margin: 0;
  max-width: 38ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.auth-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 520px;
}

.auth-feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(10, 10, 12, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  flex-shrink: 0;
}

.auth-feature strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.auth-feature p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
}

.auth-brand-foot {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 360px;
}

.auth-foot-label {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.auth-brand-foot a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}

.auth-brand-foot a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.auth-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  background: rgba(8, 8, 10, 0.72);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(1.15);
  -webkit-backdrop-filter: blur(28px) saturate(1.15);
  animation: authShellIn 0.55s ease 0.08s both;
}

.auth-panel {
  width: 100%;
  max-width: 400px;
}

@keyframes authShellIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  animation: authCardIn 0.55s ease 0.12s both;
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 26px;
}

.auth-tab {
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 11px 10px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

.auth-tab:hover {
  color: #fff;
}

.auth-tab.is-active {
  background: #fff;
  color: #111;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.auth-session {
  display: grid;
  gap: 16px;
}

.auth-session[hidden] {
  display: none !important;
}

.auth-session-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
}

.auth-session-actions {
  display: grid;
  gap: 10px;
}

.auth-session-actions .blinq-cta,
.auth-session-actions .blinq-btn-secondary,
.auth-session-actions .auth-primary-btn,
.auth-session-actions .auth-ghost-btn {
  width: 100%;
  margin-top: 0;
}

.auth-heading {
  margin-bottom: 22px;
}

.auth-heading h2,
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  color: #fff;
}

.auth-sub {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.52);
}

.auth-form {
  max-width: none;
  gap: 12px;
}

.auth-body .blinq-field input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.auth-body .blinq-field input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07);
}

.auth-body .blinq-field label {
  color: rgba(255, 255, 255, 0.42);
}

.auth-body .blinq-field input:focus + label,
.auth-body .blinq-field input:not(:placeholder-shown) + label {
  color: rgba(255, 255, 255, 0.58);
}

.auth-primary-btn,
.auth-body .auth-card .blinq-cta {
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
  border-radius: 14px;
  margin-top: 6px;
  font-weight: 800;
}

.auth-primary-btn:hover,
.auth-body .auth-card .blinq-cta:hover {
  background: #f3f4f6 !important;
  transform: translateY(-1px);
}

.auth-ghost-btn,
.auth-body .auth-card .blinq-btn-secondary {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 14px;
}

.auth-ghost-btn:hover,
.auth-body .auth-card .blinq-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.auth-error {
  color: #fda4af;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.auth-google:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.auth-mobile-features {
  display: none;
  width: 100%;
  margin-top: 18px;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-foot {
  margin-top: 22px;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  font-weight: 600;
}

.auth-foot a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s;
}

.auth-foot a:hover {
  color: #fff;
}

.auth-foot .brand-copyright {
  width: 100%;
  margin: 4px 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.32);
}

.brand-copyright {
  margin: 12px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  opacity: 0.9;
}

.contact-icon svg {
  display: block;
}

#authMain[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  }

  .auth-brand {
    padding: 32px 28px;
    gap: 28px;
  }

  .auth-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    display: none;
  }

  .auth-shell {
    min-height: 100vh;
    border-left: none;
    background: rgba(0, 0, 0, 0.55);
    padding: 28px 16px 40px;
    align-items: flex-start;
  }

  .auth-logo-mobile {
    display: flex;
  }

  .auth-mobile-features {
    display: grid;
  }

  .auth-foot-mobile {
    display: flex;
  }

  .auth-bg-img {
    object-position: center 30%;
  }

  .auth-bg-veil {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.4) 35%, rgba(0, 0, 0, 0.88) 100%);
  }
}

/* Dashboard / my cards */
.dash-body {
  background: #0a0a0a;
  color: #f5f5f5;
}

.dash-body .create-ambient {
  background:
    radial-gradient(ellipse 70% 45% at 12% -5%, rgba(225, 29, 72, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 15%, rgba(255, 255, 255, 0.05), transparent 50%);
}

.dash-body .blinq-nav {
  max-width: 1100px;
}

.dash-body .nav-link,
.dash-body .nav-user {
  color: rgba(255, 255, 255, 0.78);
}

.dash-body .nav-link:hover {
  color: #fda4af;
}

.dash-body .nav-cta {
  background: #fff !important;
  color: #111 !important;
}

/* Create page — dark theme overrides */
.dash-body.create-body {
  background: #0a0a0a;
  color: #f5f5f5;
}

.dash-body .blinq-form-col h1 {
  color: #fff;
}

.dash-body .blinq-sub {
  color: rgba(255, 255, 255, 0.55);
}

.dash-body .eyebrow {
  color: #fda4af;
}

.dash-body .form-panel {
  background: rgba(18, 18, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.dash-body .panel-label {
  color: rgba(255, 255, 255, 0.4);
}

.dash-body .blinq-field input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dash-body .blinq-field input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.dash-body .blinq-field label {
  color: rgba(255, 255, 255, 0.4);
}

.dash-body .blinq-field input:focus + label,
.dash-body .blinq-field input:not(:placeholder-shown) + label {
  color: rgba(255, 255, 255, 0.55);
}

.dash-body .blinq-upload {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.dash-body .blinq-upload:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.dash-body .blinq-upload-thumb {
  background-color: rgba(255, 255, 255, 0.1);
}

.dash-body .blinq-upload-plus {
  color: rgba(255, 255, 255, 0.45);
}

.dash-body .blinq-upload-text strong {
  color: #fff;
}

.dash-body .blinq-upload-text small {
  color: rgba(255, 255, 255, 0.4);
}

.dash-body .blinq-more-toggle {
  color: #fff;
}

.dash-body .blinq-more-toggle:hover {
  color: #fda4af;
}

.dash-body .field-add-btn {
  color: rgba(255, 255, 255, 0.5);
}

.dash-body .field-add-btn:hover {
  color: #fff;
}

.dash-body .field-remove-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
}

.dash-body .field-remove-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.dash-body .social-row select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dash-body .social-row select:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.dash-body .social-row select option {
  background: #161618;
  color: #fff;
}

.dash-body .blinq-hint {
  color: rgba(255, 255, 255, 0.4);
}

.dash-body .blinq-cta {
  background: #fff;
  color: #111;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.dash-body .blinq-cta:hover {
  background: #f3f4f6;
}

.dash-body .blinq-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.dash-body .blinq-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

.dash-body .blinq-btn-text {
  color: rgba(255, 255, 255, 0.55);
}

.dash-body .blinq-btn-text:hover {
  color: #fff;
}

.dash-body .blinq-success {
  background: rgba(18, 18, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.dash-body .blinq-success h2 {
  color: #fff;
}

.dash-body .success-badge {
  color: #86efac;
  background: rgba(22, 163, 74, 0.18);
}

.dash-body .blinq-link {
  color: #fda4af;
}

.dash-body .success-qr {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-body .success-qr-label {
  color: #fff;
}

.dash-body .preview-label {
  color: rgba(255, 255, 255, 0.45);
}

.dash-body .phone {
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.dashboard {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 96px;
}

.dash-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
  padding: 28px 28px 26px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(225, 29, 72, 0.22), transparent 55%),
    linear-gradient(160deg, #141416 0%, #0f0f10 100%);
  color: #fff;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.dash-hero-copy .eyebrow {
  color: #fda4af;
  margin-bottom: 10px;
}

.dash-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.dash-hero-sub {
  margin: 0;
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}

.dash-hero-aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 168px;
}

.dash-stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.dash-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.dash-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.dash-create-cta {
  margin-top: 0 !important;
  width: 100%;
  justify-content: center;
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
}

.dash-create-cta:hover {
  background: #f3f4f6 !important;
  transform: translateY(-1px);
}

.dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.dash-toolbar-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.cards-loading,
.empty-cards {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  color: #f5f5f5;
}

.cards-loading {
  display: grid;
  place-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.dash-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.empty-cards-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #111;
}

.empty-cards h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: #fff;
}

.empty-cards p {
  color: rgba(255, 255, 255, 0.55);
  margin: 0 auto 20px;
  max-width: 36ch;
  line-height: 1.5;
}

.empty-cards .blinq-cta {
  display: inline-flex;
  margin-top: 0;
  background: #fff;
  color: #111;
  box-shadow: none;
}

.card-tile {
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: tileIn 0.45s ease both;
  animation-delay: var(--tile-delay, 0ms);
}

.card-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

@keyframes tileIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tile-cover {
  position: relative;
  height: 110px;
  background: linear-gradient(135deg, #e11d48, #fb7185 42%, #2a2a2e) center/cover no-repeat;
}

.tile-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.tile-body {
  padding: 0 18px 18px;
  margin-top: -32px;
  position: relative;
}

.tile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #141416;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  background: #2a2a2e;
}

.tile-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(145deg, #2a2a2e, #1a1a1c);
}

.tile-identity {
  margin-top: 12px;
}

.tile-identity h2,
.tile-body h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}

.tile-identity p,
.tile-body > p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.35;
}

.tile-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: #fda4af;
  font-weight: 600;
  word-break: break-all;
  text-decoration: none;
  line-height: 1.35;
  transition: background 0.15s, border-color 0.15s;
}

.tile-link:hover {
  background: rgba(225, 29, 72, 0.12);
  border-color: rgba(225, 29, 72, 0.25);
}

.tile-link-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.tile-share {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tile-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tile-qr {
  width: 120px;
  height: 120px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.tile-qr canvas {
  width: 100% !important;
  height: auto !important;
}

.tile-qr-dl {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}

.tile-qr-dl:hover {
  color: #fff;
}

.tile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
  min-width: 0;
}

.tile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f5;
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.tile-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.tile-btn-primary {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.tile-btn-primary:hover {
  background: #f3f4f6;
  border-color: #f3f4f6;
}

.tile-actions .blinq-cta,
.tile-actions .blinq-btn-secondary {
  margin-top: 0;
  padding: 10px 14px;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .dash-hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 24px 20px;
  }

  .dash-hero-aside {
    flex-direction: row;
    align-items: stretch;
    min-width: 0;
  }

  .dash-stat {
    flex: 1;
  }

  .dash-create-cta {
    flex: 1.2;
  }

  .tile-share {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .tile-actions {
    width: 100%;
  }
}

.dash-copyright {
  margin: 36px 0 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
}

.blinq-create {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e11d48;
  margin-bottom: 12px;
}

.blinq-form-col h1 {
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin-bottom: 14px;
}

.blinq-sub {
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 38ch;
}

.blinq-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
}

.form-panel {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.03);
}

.panel-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.blinq-field {
  position: relative;
}

.blinq-field input {
  width: 100%;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 22px 16px 10px;
  border: 1px solid #ebebeb;
  border-radius: 14px;
  background: #f7f7f8;
  color: #111;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.blinq-field input:focus {
  background: #fff;
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

.blinq-field label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.98rem;
  font-weight: 500;
  pointer-events: none;
  transition: 0.15s ease;
}

.blinq-field input:focus + label,
.blinq-field input:not(:placeholder-shown) + label {
  top: 11px;
  transform: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6b7280;
}

.blinq-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.blinq-upload {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  padding: 14px;
  border: 1.5px dashed #ddd;
  border-radius: 16px;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.blinq-upload:hover {
  border-color: #111;
  background: #fff;
  transform: translateY(-1px);
}

.blinq-upload-thumb {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ececec center/cover no-repeat;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.blinq-upload-cover {
  width: 100%;
  height: 58px;
  border-radius: 12px;
}

.blinq-upload-plus {
  font-size: 1.35rem;
  font-weight: 600;
  color: #aaa;
}

.blinq-upload-thumb.has-image .blinq-upload-plus {
  display: none;
}

.blinq-upload-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
}

.blinq-upload-text small {
  font-size: 0.72rem;
  color: #9ca3af;
}

.blinq-more-toggle {
  align-self: flex-start;
  margin: 2px 0;
  border: none;
  background: none;
  color: #111;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 2px;
}

.blinq-more-toggle:hover {
  color: #e11d48;
}

.multi-field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blinq-field-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.blinq-field-wrap .blinq-field {
  min-width: 0;
}

.field-remove-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  background: #f7f7f8;
  color: #6b7280;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.field-remove-btn:hover {
  background: #fff;
  border-color: #111;
  color: #111;
}

.field-add-btn {
  align-self: flex-start;
  margin: -2px 0 4px;
  border: none;
  background: none;
  color: #6b7280;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
}

.field-add-btn:hover {
  color: #111;
}

.social-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 8px;
  align-items: center;
}

.social-row select {
  width: 100%;
  height: 52px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 12px;
  border: 1px solid #ebebeb;
  border-radius: 14px;
  background: #f7f7f8;
  color: #111;
  outline: none;
}

.social-row select:focus {
  background: #fff;
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

.social-row .blinq-field {
  min-width: 0;
}

@media (max-width: 520px) {
  .social-row {
    grid-template-columns: 1fr auto;
  }

  .social-row select {
    grid-column: 1 / -1;
  }
}

.blinq-hint {
  font-size: 0.8rem;
  color: #9ca3af;
}

.blinq-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 16px 28px;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.18);
  transition: transform 0.15s, background 0.15s;
}

.blinq-cta:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}

.blinq-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.blinq-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #111;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.blinq-btn-text {
  border: none;
  background: none;
  color: #6b7280;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
}

.blinq-success {
  max-width: 460px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(17, 17, 17, 0.06);
}

.success-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #16a34a;
  background: #ecfdf3;
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 12px;
}

.blinq-success h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.blinq-link {
  display: block;
  word-break: break-all;
  color: #e11d48;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.blinq-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.blinq-nfc-status {
  margin-top: 14px;
}

.success-qr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 20px;
  padding: 16px;
  border-radius: 18px;
  background: #f7f7f8;
  border: 1px solid #ececec;
}

.success-qr-code {
  flex-shrink: 0;
  width: 168px;
  height: 168px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.success-qr-code canvas,
.qr-canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 8px;
}

.success-qr-label {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.success-qr-meta .blinq-hint {
  margin-bottom: 12px;
}

.success-qr-meta .blinq-btn-secondary {
  margin-top: 0;
  padding: 10px 14px;
  font-size: 0.85rem;
}

.tile-qr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.tile-qr {
  width: 112px;
  height: 112px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ececec;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tile-qr canvas {
  width: 100% !important;
  height: auto !important;
}

.qr-fallback {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  padding: 8px;
}

@media (max-width: 560px) {
  .success-qr {
    flex-direction: column;
    text-align: center;
  }
}

/* Phone preview */
.blinq-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 28px;
}

.preview-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: previewPulse 1.8s ease-out infinite;
}

@keyframes previewPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.preview-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
}

.phone-glow {
  position: absolute;
  width: 78%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.28), transparent 70%);
  filter: blur(28px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.dash-body .phone-glow {
  background: radial-gradient(circle, rgba(251, 113, 133, 0.28), rgba(255, 255, 255, 0.06) 55%, transparent 72%);
}

.phone {
  position: relative;
  z-index: 1;
  width: 308px;
  padding: 11px;
  border-radius: 46px;
  background:
    linear-gradient(155deg, #3a3a3c 0%, #1c1c1e 38%, #0a0a0a 100%);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: phoneFloatIn 0.65s ease both;
}

@keyframes phoneFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.phone-btn {
  position: absolute;
  background: linear-gradient(90deg, #2a2a2c, #151516);
  border-radius: 2px;
  z-index: 2;
}

.phone-btn-silent {
  left: -2px;
  top: 96px;
  width: 3px;
  height: 22px;
}

.phone-btn-vol-up {
  left: -2px;
  top: 138px;
  width: 3px;
  height: 42px;
}

.phone-btn-vol-down {
  left: -2px;
  top: 188px;
  width: 3px;
  height: 42px;
}

.phone-btn-power {
  right: -2px;
  top: 160px;
  width: 3px;
  height: 68px;
}

.phone-bezel {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 11px 18px 8px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  background: #0b0b0c;
  position: relative;
  z-index: 3;
}

.phone-time {
  letter-spacing: -0.02em;
}

.phone-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #fff;
}

.phone-meta-battery {
  width: 22px;
  height: 11px;
  border: 1.4px solid rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 1.5px;
}

.phone-meta-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: rgba(255, 255, 255, 0.85);
}

.phone-meta-battery i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1px;
  background: #fff;
}

.phone-island {
  width: 92px;
  height: 24px;
  border-radius: 999px;
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  position: relative;
}

.phone-island::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  translate: 0 -50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1f2937, #020617 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phone-screen {
  background: #f4f4f5;
  min-height: 540px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.preview-cover {
  height: 132px;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.15), transparent 40%),
    linear-gradient(135deg, #e11d48, #fb7185 42%, #18181b 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;
  flex-shrink: 0;
  transition: background-image 0.25s ease;
}

.preview-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48px;
  background: linear-gradient(180deg, transparent, #f4f4f5);
  pointer-events: none;
}

.preview-cover.has-image::after {
  background: linear-gradient(180deg, transparent, rgba(244, 244, 245, 0.92));
}

.preview-sheet {
  position: relative;
  z-index: 1;
  margin-top: -28px;
  padding: 0 0 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.preview-avatar {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff, #e7e7ea);
  border: 4px solid #fff;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(17, 17, 17, 0.04);
  display: grid;
  place-items: center;
  font-size: 1.85rem;
  font-weight: 800;
  color: #111;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.preview-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-name {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  padding: 0 18px;
  color: #111;
  line-height: 1.15;
  transition: color 0.15s;
}

.preview-title,
.preview-company {
  font-size: 0.84rem;
  color: #6b7280;
  padding: 0 18px;
  line-height: 1.35;
}

.preview-title {
  margin-top: 4px;
}

.preview-company {
  color: #e11d48;
  font-weight: 700;
  margin-top: 3px;
}

.preview-save {
  margin: 16px 20px 14px;
  padding: 13px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.2);
}

.preview-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 14px;
}

.preview-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 0.62rem;
  font-weight: 650;
  color: #4b5563;
}

.preview-action.is-placeholder {
  color: #9ca3af;
}

.preview-action.is-placeholder i {
  background: #e5e7eb !important;
  color: #9ca3af !important;
  box-shadow: none;
}

.preview-action i {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.preview-action i svg {
  width: 16px;
  height: 16px;
}

.preview-action .pa-call { background: linear-gradient(160deg, #22c55e, #15803d); }
.preview-action .pa-sms { background: linear-gradient(160deg, #3b82f6, #1d4ed8); }
.preview-action .pa-wa { background: linear-gradient(160deg, #4ade80, #16a34a); }
.preview-action .pa-email { background: linear-gradient(160deg, #fb923c, #ea580c); }
.preview-action .pa-web { background: linear-gradient(160deg, #3f3f46, #18181b); }

.preview-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 16px 16px 0;
  min-height: 8px;
}

.preview-social {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand, #111);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s;
}

.preview-social svg {
  width: 14px;
  height: 14px;
}

.preview-brand-cta {
  margin: 16px 14px 0;
  padding: 14px 12px 12px;
  border-radius: 16px;
  background: linear-gradient(165deg, #141416, #0a0a0a);
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-brand-cta img {
  width: 118px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
  border-radius: 6px;
}

.preview-brand-cta p {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.preview-brand-cta p:first-of-type {
  color: #fff;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.68rem;
}

.preview-brand-cta .preview-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 3px;
}

.preview-brand-cta .brand-copyright {
  margin-top: 8px;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.35);
}

.phone-home {
  width: 108px;
  height: 4px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.22);
  margin: 10px auto 8px;
  flex-shrink: 0;
}

.preview-social-snapchat {
  color: #111;
}

/* Public card socials styled like quick actions — see .social near card view */

@media (max-width: 900px) {
  .blinq-create {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .blinq-preview-col {
    order: -1;
    position: static;
  }

  .phone {
    width: 268px;
    border-radius: 40px;
    padding: 10px;
  }

  .phone-bezel {
    border-radius: 32px;
  }

  .phone-screen {
    min-height: 480px;
  }

  .preview-cover {
    height: 118px;
  }

  .blinq-form,
  .blinq-success {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .field-row,
  .blinq-photos {
    grid-template-columns: 1fr;
  }
}

/* ---------- Public card ---------- */
.card-body {
  display: flex;
  justify-content: center;
  padding: 28px 16px 56px;
  position: relative;
  background: #f3f4f6;
}

.card-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(225, 29, 72, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(17, 17, 17, 0.05), transparent);
  z-index: 0;
}

[data-theme="dark"] .card-body {
  background: #0b0b0c;
}

[data-theme="dark"] .card-ambient {
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(251, 113, 133, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(255, 255, 255, 0.03), transparent);
}

.card-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--bg-elevated);
  border-radius: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  animation: rise 0.55s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cover {
  position: relative;
  z-index: 0;
  height: 168px;
  overflow: hidden;
}

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e11d48 0%, #fb7185 40%, #111 100%);
}

.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.cover .theme-toggle {
  z-index: 2;
}

.theme-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .icon-moon,
[data-theme="dark"] .icon-sun {
  display: none;
}

.profile {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 28px 4px;
  margin-top: -64px;
}

.avatar-wrap {
  position: relative;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  width: 120px;
  height: 120px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bg-elevated);
  box-shadow:
    0 0 0 1px rgba(17, 17, 17, 0.04),
    0 14px 32px rgba(0, 0, 0, 0.18);
  background: var(--bg);
  grid-area: 1 / 1;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  grid-area: 1 / 1;
}

.avatar.is-hidden,
.avatar-fallback.is-hidden,
.avatar[hidden],
.avatar-fallback[hidden] {
  display: none !important;
}

.social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 4px 24px 22px;
}

.social.actions {
  display: grid;
}

.social-action .action-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.social-link {
  display: none;
}

.name {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.title {
  margin-top: 6px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
}

.company {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 3px;
}

.bio {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 34ch;
  margin-inline: auto;
}

.cta-block {
  padding: 22px 24px 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #111;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.18);
}

[data-theme="dark"] .btn-primary {
  background: #f5f5f5;
  color: #111;
  box-shadow: none;
}

.btn-primary:hover {
  background: #2a2a2a;
}

[data-theme="dark"] .btn-primary:hover {
  background: #fff;
}

.btn-ghost {
  flex: 1;
  background: transparent;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 9px 14px;
  margin-top: 10px;
}

.btn-save {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
}

.cta-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 24px;
}

.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}

.action:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.action.hidden {
  display: none;
}

.action-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
}

.action-icon.call { background: #16a34a; }
.action-icon.sms { background: #2563eb; }
.action-icon.whatsapp { background: #25d366; }
.action-icon.email { background: #ea580c; }
.action-icon.web { background: #111; }
.action-icon.maps { background: #dc2626; }

.qr-section {
  padding: 0 24px 24px;
}

.nfc-section {
  padding: 0 24px 24px;
}

.nfc-panel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.nfc-panel-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
}

[data-theme="dark"] .nfc-panel-icon {
  background: #fff;
  color: #111;
}

.nfc-panel-body {
  min-width: 0;
  flex: 1;
}

.nfc-panel-body h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nfc-panel-body > p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.nfc-steps {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.nfc-steps li + li {
  margin-top: 4px;
}

.nfc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nfc-status {
  margin: 12px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}

.nfc-status[data-tone="active"] {
  color: #2563eb;
}

.nfc-status[data-tone="success"] {
  color: #16a34a;
}

.nfc-status[data-tone="error"] {
  color: #be123c;
}

.nfc-status[data-tone="muted"] {
  color: var(--text-muted);
  font-weight: 500;
}

.nfc-ios-panel {
  margin-top: 14px;
  padding-top: 4px;
}

.nfc-ios-panel[hidden] {
  display: none !important;
}

.nfc-ios-actions {
  margin-top: 12px;
}

.nfc-ios-steps a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 520px) {
  .nfc-panel {
    flex-direction: column;
  }
}

.qr-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.qr-code {
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.qr-code canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.qr-meta h2 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.qr-meta p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.nfc-url {
  font-family: ui-monospace, monospace;
  font-size: 0.65rem !important;
  word-break: break-all;
  margin-top: 8px !important;
  color: var(--accent) !important;
}

.footer {
  text-align: center;
  padding: 0 24px 28px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.brand-cta {
  margin: 8px 20px 28px;
  padding: 22px 18px 20px;
  border-radius: 20px;
  background: #0a0a0a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-cta-logo {
  width: min(200px, 70%);
  height: auto;
  display: block;
  margin: 0 auto 14px;
  border-radius: 10px;
}

.brand-cta-lead {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.brand-cta-copy {
  margin: 4px 0 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.brand-cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.brand-cta-contacts a {
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 1px;
}

.brand-cta-contacts a:hover {
  border-bottom-color: #fff;
}

.brand-cta .brand-copyright {
  margin-top: 16px;
  text-align: center;
}

.state-box {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px;
  max-width: 360px;
  margin: 0 auto;
}

.state-box h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.state-box p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 100;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 560px) {
  .qr-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Typography & polish ---------- */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  font-feature-settings: "ss01", "cv11";
}

h1,
h2,
h3,
.auth-side-title,
.auth-heading h2,
.dash-hero h1,
.blinq-form-col h1,
.blinq-success h2,
.empty-cards h2,
.tile-identity h2,
.tile-body h2,
.nfc-panel-body h2,
.state-box h1,
.name,
.preview-name,
.success-qr-label {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  text-wrap: balance;
}

.auth-side-title {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.auth-heading h2,
.dash-hero h1,
.blinq-form-col h1 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.blinq-form-col h1 {
  line-height: 1.04;
}

.blinq-success h2,
.empty-cards h2,
.state-box h1,
.name {
  font-weight: 700;
  letter-spacing: -0.025em;
}

.tile-identity h2,
.tile-body h2,
.preview-name,
.nfc-panel-body h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

p,
.auth-side-lead,
.blinq-sub,
.dash-hero-sub,
.bio {
  text-wrap: pretty;
}

.eyebrow,
.auth-kicker,
.panel-label,
.preview-label,
.auth-foot-label {
  font-family: var(--font);
  letter-spacing: 0.1em;
}

.dash-stat-value,
.auth-tab,
.blinq-cta,
.blinq-btn-secondary,
.auth-google,
.btn {
  font-variant-numeric: tabular-nums;
}

.dash-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

::selection {
  background: rgba(251, 113, 133, 0.35);
  color: inherit;
}

:focus-visible {
  outline: 2px solid rgba(251, 113, 133, 0.9);
  outline-offset: 3px;
  border-radius: 10px;
}

.blinq-field input:focus-visible,
.social-row select:focus-visible {
  outline: none;
}

.blinq-cta,
.blinq-btn-secondary,
.auth-google,
.auth-tab,
.btn,
.action,
.field-add-btn,
.blinq-more-toggle {
  transition:
    transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.blinq-cta:active:not(:disabled),
.blinq-btn-secondary:active,
.auth-google:active,
.btn:active,
.action:active {
  transform: translateY(0) scale(0.98);
}

.blinq-field input {
  font-family: var(--font);
  letter-spacing: -0.005em;
}

.toast {
  font-family: var(--font);
  background: rgba(17, 17, 19, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.dash-body .blinq-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}

.dash-body .form-panel {
  border-radius: 22px;
  padding: 18px;
  transition: border-color 0.2s ease;
}

.dash-body .form-panel:focus-within {
  border-color: rgba(255, 255, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
