@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Onest:wght@500;600;700;800&display=swap');

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f1f3f6;
  --dark: #111317;
  --dark-card: #1a1d24;
  --ink: #14171c;
  --ink-secondary: #4b5260;
  --muted: #767f8f;
  --line: #e5e8ef;
  --line-strong: #d3d8e3;
  --accent: #ff5a26;
  --accent-hover: #e54918;
  --accent-soft: #fff1ec;
  --success: #16a34a;
  --success-soft: #ecfdf3;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(17, 19, 23, 0.04);
  --shadow-md: 0 12px 32px rgba(17, 19, 23, 0.08);
  --shadow-lg: 0 24px 60px rgba(17, 19, 23, 0.14);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Onest', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1200px;
  --transition: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 249, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 232, 239, 0.9);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brandmark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  position: relative;
}

.brandmark::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.brand .dot {
  color: var(--accent);
}

.brand-light {
  color: #fff;
}

.brand-light .brandmark {
  background: #232732;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a,
.navlink {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color var(--transition);
}

.nav a:hover,
.navlink:hover {
  color: var(--ink);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 90, 38, 0.24);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 24px rgba(255, 90, 38, 0.32);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: #232732;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.btn-white {
  background: #fff;
  color: var(--dark);
}

.btn-white:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

/* Badges & Kickers */
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero */
.hero {
  padding: 64px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 20px 0 22px;
}

.hero h1 em,
.section-head h2 em,
.steps-head h2 em,
.cta-box h2 em,
.auth-aside h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.avatars {
  display: flex;
}

.avatars i {
  font-style: normal;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: #e6eefc;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-left: -8px;
}

.avatars i:first-child {
  margin-left: 0;
}

.avatars i:nth-child(2) {
  background: #fde8df;
}

.avatars i:nth-child(3) {
  background: #e3f5ea;
}

.hero-proof-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.hero-proof-text strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 500px;
  background: var(--dark) url('images/hero-digital-card.jpg') center/cover no-repeat;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 19, 23, 0.12) 0%, rgba(17, 19, 23, 0.55) 100%);
  pointer-events: none;
}

.hero-visual-top,
.hero-visual-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.glass-chip {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 12px 28px rgba(17, 19, 23, 0.16);
}

.glass-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.glass-chip small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.hero-tag {
  background: rgba(17, 19, 23, 0.72);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Strip */
.ticker {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.86);
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ticker-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker-sep {
  color: var(--accent);
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin: 16px 0 48px;
}

.section-head h2,
.steps-head h2,
.cta-box h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
}

.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-secondary);
  max-width: 520px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.text-link:hover {
  gap: 10px;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.feature-media {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-soft);
}

.feature-media-nfc {
  background-image: url('images/nfc-detail.jpg');
}

.feature-media-qr {
  background-image: url('images/qr-scan.jpg');
}

.feature-media-vcard {
  background-image: url('images/digital-profile.jpg');
}

.feature-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.6;
  flex: 1;
}

.feature-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.feature-card a:hover {
  color: var(--accent);
}

/* Dark Steps Section */
.steps-section {
  background: var(--dark);
  color: #fff;
  padding: 96px 0;
}

.steps-section .section-kicker {
  color: #ff8c66;
}

.steps-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin: 16px 0 56px;
}

.steps-head h2 {
  color: #fff;
}

.steps-head p {
  font-size: 17px;
  color: #a6afbf;
  max-width: 480px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 28px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 90, 38, 0.16);
  color: #ff8c66;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-card h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 15px;
  color: #a6afbf;
  line-height: 1.6;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-media {
  height: 230px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-soft);
}

.product-media-nfc {
  background-image: url('images/nfc-detail.jpg');
}

.product-media-qr {
  background-image: url('images/qr-scan.jpg');
}

.product-media-combo {
  background-image: url('images/nfc-qr-cards.jpg');
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-body p {
  font-size: 15px;
  color: var(--ink-secondary);
  flex: 1;
}

.product-body .btn {
  margin-top: 20px;
  align-self: flex-start;
}

/* Custom CMS blocks */
.custom-block {
  padding: 28px 0;
}

.custom-block-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.custom-block-card h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-top: 12px;
}

/* CTA */
.cta-section {
  padding: 48px 0 96px;
}

.cta-box {
  background: linear-gradient(135deg, #14171c 0%, #232836 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-box .section-kicker {
  color: #ff8c66;
}

.cta-box h2 {
  color: #fff;
  margin-top: 14px;
}

/* Auth */
.auth-section {
  padding: 64px 0 96px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 56px;
  align-items: center;
}

.auth-aside h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 800;
  margin: 18px 0 20px;
}

.auth-aside p {
  font-size: 17px;
  color: var(--ink-secondary);
  max-width: 460px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.auth-card h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.auth-card > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.form-field {
  display: block;
  margin-bottom: 16px;
}

.form-field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 90, 38, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 104px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 16px 0 22px;
  cursor: pointer;
}

.form-check input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-check a {
  color: var(--accent);
  text-decoration: underline;
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--ink);
  font-weight: 600;
}

.auth-switch a:hover {
  color: var(--accent);
}

.alert-error {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--danger-soft);
  border: 1px solid #fecaca;
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
}

/* Dashboard */
.dash-section {
  padding: 40px 0 84px;
}

.dash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.dash-header h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  margin-top: 8px;
}

.dash-header p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 6px;
}

.dash-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.dash-tab {
  padding: 11px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.dash-tab:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.dash-tab.active {
  background: var(--dark);
  color: #fff;
}

.dash-tab-vcard {
  margin-left: auto;
  color: var(--accent);
}

.dash-tab-vcard:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.dash-pane {
  display: none;
}

.dash-pane.active {
  display: block;
}

.dash-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.dash-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.dash-card-head h3,
.dash-card-head h4 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
}

.dash-card-head p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.photo-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  margin-bottom: 20px;
}

.photo-control strong {
  display: block;
  font-size: 14px;
}

.photo-control small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.photo-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.photo-filename {
  font-size: 13px;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sticky Live Preview */
.live-preview-sticky {
  position: sticky;
  top: 96px;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.preview-toolbar h3 {
  font-size: 17px;
  margin-top: 2px;
}

.vcard-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.vcard-cover {
  height: 96px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #14171c 0%, #2a3040 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.vcard-cover .dot {
  color: var(--accent);
}

.vcard-cover-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.vcard-body {
  padding: 0 22px 22px;
  background: var(--surface);
}

.vcard-person {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 0;
  padding-top: 14px;
  margin-bottom: 18px;
}

.vcard-avatar {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  margin-top: -52px;
  position: relative;
  z-index: 2;
  border-radius: 20px;
  border: 4px solid #fff;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.vcard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vcard-person-meta {
  min-width: 0;
  flex: 1;
}

.vcard-person-meta h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 4px;
  word-break: break-word;
}

.vcard-person-meta p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-secondary);
  word-break: break-word;
}

.vcard-person-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 2px;
  word-break: break-word;
}

.vcard-about {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  margin-bottom: 16px;
}

.vcard-contacts {
  display: grid;
  gap: 8px;
}

.vcard-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.vcard-contact-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.vcard-contact-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.vcard-contact-row strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.vcard-empty {
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.vcard-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

/* Visibility Switches */
.vis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vis-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  background: #fbfcfd;
}

.vis-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.vis-group-head strong {
  font-family: var(--font-display);
  font-size: 15px;
}

.vis-group-head small {
  font-size: 12px;
  color: var(--muted);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.switch-row:last-child {
  border-bottom: 0;
}

.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-ui {
  width: 44px;
  height: 24px;
  flex: 0 0 44px;
  border-radius: 999px;
  background: #d5dbe5;
  padding: 3px;
  transition: background var(--transition);
}

.switch-ui::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(17, 19, 23, 0.2);
  transition: transform var(--transition);
}

.switch-row input:checked + .switch-ui {
  background: var(--accent);
}

.switch-row input:checked + .switch-ui::after {
  transform: translateX(20px);
}

.public-access-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.savebar span {
  font-size: 14px;
  color: var(--muted);
}

/* Share & QR */
.link-copy-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.link-copy-row .form-input {
  flex: 1 1 260px;
  background: var(--surface-soft);
}

.qr-box {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 24px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.qr-box img {
  width: 200px;
  height: 200px;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.qr-box h4 {
  font-size: 22px;
  margin: 6px 0 8px;
}

.qr-box p {
  font-size: 14px;
  color: var(--ink-secondary);
  max-width: 460px;
  margin-bottom: 18px;
}

/* Orders */
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 28px;
}

.order-note {
  padding: 24px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.order-note h4 {
  font-size: 20px;
  margin: 14px 0 8px;
}

.order-note p {
  font-size: 14px;
  color: var(--ink-secondary);
}

/* Public Profile (?u=slug) */
.public-wrap {
  padding: 48px 16px 84px;
  display: flex;
  justify-content: center;
}

.public-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.public-cover {
  height: 120px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #14171c 0%, #262c3a 60%, #3a231c 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.public-body {
  padding: 0 28px 32px;
}

.public-avatar {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  border: 5px solid #fff;
  margin: -52px auto 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.public-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-head {
  text-align: center;
  margin-bottom: 22px;
}

.public-head h1 {
  font-size: 28px;
  font-weight: 800;
  margin-top: 8px;
}

.public-role {
  font-size: 15px;
  color: var(--ink-secondary);
  margin-top: 6px;
}

.public-about {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.public-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 22px;
}

.public-contacts {
  display: grid;
  gap: 10px;
}

.public-contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

a.public-contact-item:hover {
  border-color: var(--accent);
  background: #fffaf8;
  transform: translateY(-1px);
}

.public-contact-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.public-contact-left span.contact-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.public-contact-left strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.contact-arrow {
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}

.public-foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.public-foot a {
  color: var(--ink);
  font-weight: 600;
}

/* QR standalone page */
.center-page {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.center-page h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 12px 0 12px;
}

.qr-standalone {
  display: inline-block;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  margin: 28px 0;
}

/* Admin & Legal */
.admin-section,
.legal-section {
  padding: 48px 0 88px;
}

.admin-section h1,
.legal-section h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 10px 0 24px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.admin-tabs a {
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.admin-tabs a.active,
.admin-tabs a:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.admin-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--surface-soft);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.legal-copy {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-secondary);
}

/* Footer */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-tagline {
  font-size: 14px;
  color: #9ba3b4;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #c5cbd8;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #7c8598;
}

/* Cookie Banner */
.cookie {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  gap: 16px;
}

.cookie.show {
  display: flex;
}

.cookie b {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.cookie p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .section-head,
  .steps-head,
  .custom-block-card,
  .auth-grid,
  .dash-profile-layout,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps-grid,
  .product-grid,
  .vis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-preview-sticky {
    position: static;
    order: -1;
  }

  .hero-visual {
    min-height: 380px;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 68px;
  }

  .nav,
  .head-actions {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .header.menu-open .nav,
  .header.menu-open .head-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 12px 24px 16px;
    gap: 12px;
    background: var(--surface);
    border-top: 1px solid var(--line);
  }

  .header.menu-open .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero {
    padding: 36px 0 56px;
  }

  .section,
  .steps-section {
    padding: 64px 0;
  }

  .feature-grid,
  .steps-grid,
  .product-grid,
  .vis-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .dash-tab-vcard {
    margin-left: 0;
  }

  .dash-card,
  .auth-card,
  .custom-block-card,
  .legal-card {
    padding: 22px;
  }

  .public-body {
    padding: 0 20px 26px;
  }

  .public-actions {
    grid-template-columns: 1fr;
  }

  .cookie {
    left: 16px;
    right: 16px;
    bottom: 16px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* Password reset & auth helpers */
.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.form-label-row span {
  margin-bottom: 0;
}

.form-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: color var(--transition);
}

.form-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.alert-success {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--success-soft);
  border: 1px solid #bbf7d0;
  color: var(--success);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
}

.auth-hint {
  font-size: 13px;
  color: var(--muted);
  margin: -6px 0 18px;
}
