:root {
  --bg: #f7f5f2;
  --text: #1f1f1f;
  --muted: #6c6a67;
  --border: #e4e0db;
  --primary: #6f33ff;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(24, 24, 24, 0.08);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #faf9f7;
}

.app {
  max-width: 980px;
  margin: 40px auto;
  padding: 0 24px 48px;
}

/* Dashboard full screen – fără borduri stânga/dreapta */
.app.dashboard-active {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 20px;
  color: inherit;
  text-decoration: none;
}

.steps {
  display: flex;
  gap: 10px;
}

.step {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
}

.step.is-active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.panel {
  background: #fff;
  padding: 36px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  display: none;
}

.panel.is-active {
  display: block;
}

.auth-panel {
  max-width: 420px;
  margin: 0 auto;
}

.auth-form .field {
  margin-bottom: 20px;
}

.auth-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.auth-actions .ghost,
.auth-actions .primary {
  flex: 1;
  min-width: 140px;
}

/* ========== Alege username (după email, stil Linktree) ========== */
.view-username {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #fff;
  padding: 24px 24px 48px;
  overflow: auto;
}

.username-back {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 32px;
}

.username-back:hover {
  text-decoration: underline;
}

.username-panel {
  max-width: 440px;
  margin: 0 auto;
}

.username-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 0 0 12px;
}

.username-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.5;
}

.username-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8f7f5;
  overflow: hidden;
  margin-bottom: 24px;
}

.username-prefix {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.username-input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: #1f1f1f;
  font-family: inherit;
}

.username-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.username-input:focus {
  outline: none;
}

.username-continue {
  width: 100%;
  padding: 16px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #1f1f1f;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.username-continue:hover {
  background: #f8f7f5;
  border-color: #d1d0cc;
}

.field-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.profile-link-box {
  margin-top: 24px;
  padding: 16px;
  background: #f8f7f5;
  border-radius: 14px;
  max-width: 460px;
}

.profile-link-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.profile-link-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px 0;
}

.profile-link-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.profile-subdomain-row {
  margin-top: 10px;
}

.profile-link-sublabel {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  flex: 0 0 auto;
  min-width: 90px;
}

.profile-link-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin: 0 0 12px;
}

.subtitle {
  margin: 0 0 32px;
  color: var(--muted);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.theme-card {
  border: 2px solid transparent;
  border-radius: 22px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
  display: grid;
  gap: 12px;
}

.theme-card:hover {
  transform: translateY(-2px);
}

.theme-card.is-selected {
  border-color: var(--primary);
}

.theme-preview {
  height: 220px;
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.theme-preview .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  justify-self: center;
}

.line {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.line.short {
  width: 60%;
  justify-self: center;
}

.chip-row {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.chip {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.6);
}

.pill {
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.theme-midnight {
  background: #0a0a0a;
  color: #fff;
}

.theme-sunset {
  background: linear-gradient(180deg, #b8d7dd, #d9b4d6, #e46e47);
  color: #fff;
}

.theme-grid-bg {
  background: #5b2c2c;
  background-image: linear-gradient(transparent 90%, rgba(255, 255, 255, 0.1) 90%),
    linear-gradient(90deg, transparent 90%, rgba(255, 255, 255, 0.1) 90%);
  background-size: 24px 24px;
  color: #fff;
}

.theme-ivory {
  background: #f5ede1;
  color: #4f3b2e;
}

.theme-forest {
  background: linear-gradient(180deg, #0b2b26, #8dceb9, #f2f4ef);
  color: #e8fff8;
}

.theme-minimal {
  background: linear-gradient(180deg, #f1f1f3, #ffffff, #f1f1f3);
  color: #2a2a2a;
}

.theme-leather {
  background: linear-gradient(180deg, #3d3428, #6b5d4d, #8a7a68);
  color: #fff;
}

.theme-purple {
  background: linear-gradient(180deg, #2d1b4e, #5c3d8a, #8b6bb8);
  color: #fff;
}

.custom-design-card-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.custom-design-card {
  width: 100%;
  min-width: 0;
  border: 2px solid transparent;
}

.custom-design-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(111, 51, 255, 0.2);
}

.custom-design-card:hover {
  border-color: rgba(111, 51, 255, 0.4);
}

.custom-design-card.is-selected:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(111, 51, 255, 0.25);
}

.custom-design-card-preview {
  background: #f0eef4;
  border: 2px dashed rgba(111, 51, 255, 0.4);
  color: #5c3d8a;
}

.custom-design-card-preview .avatar,
.custom-design-card-preview .line,
.custom-design-card-preview .chip-row,
.custom-design-card-preview .pill {
  background: rgba(92, 61, 138, 0.25);
}

.custom-design-card-text {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  grid-column: 1 / -1;
  justify-self: center;
  color: #5c3d8a;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}

.modal-box-design {
  max-width: 95vw;
  width: 1200px;
  height: 85vh;
  max-height: 85vh;
  overflow: hidden;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-design-left {
  overflow-y: auto;
  padding: 24px;
}

.modal-design-right {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: #f8f7f5;
  min-height: 0;
}

.modal-design-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
  padding: 12px 16px;
  text-align: center;
}

.modal-design-iframe-wrap {
  flex: 1;
  min-height: 0;
  padding: 0 16px 16px;
}

.modal-design-iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.custom-design-cut-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}

.custom-design-cut-editor {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  max-height: 280px;
  background: #1a1a1a;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
}

.custom-design-cut-editor .custom-design-cut-frame {
  will-change: transform;
}

.custom-design-cut-image {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.custom-design-cut-frame {
  position: absolute;
  width: 50%;
  height: 50%;
  left: 25%;
  top: 25%;
  border: 3px solid rgba(111, 51, 255, 0.9);
  border-radius: 8px;
  cursor: grab;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.custom-design-cut-frame:active {
  cursor: grabbing;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  text-align: center;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
  text-align: center;
}

.modal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.custom-design-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.custom-design-position-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #fff;
  color: var(--text);
}

.custom-design-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-design-upload-label {
  display: inline-block;
  padding: 12px 18px;
  background: #f4f2ef;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  border: 1px dashed var(--border);
  text-align: center;
}

.custom-design-upload-label:hover {
  background: rgba(111, 51, 255, 0.08);
  border-color: var(--primary);
}

.custom-design-preview {
  margin-top: 20px;
}

.custom-design-thumb {
  width: 100%;
  max-width: 280px;
  height: 120px;
  border-radius: 14px;
  background: #f4f2ef;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.custom-design-drag-wrap {
  margin-top: 16px;
  margin-bottom: 12px;
}

.custom-design-drag-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}

.custom-design-drag {
  width: 100%;
  max-width: 280px;
  height: 160px;
  border-radius: 14px;
  background: #1a1a1a;
  border: 2px solid var(--border);
  cursor: grab;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.custom-design-drag:active {
  cursor: grabbing;
}

.custom-design-zoom-wrap {
  margin-top: 12px;
  margin-bottom: 12px;
}

.custom-design-zoom-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.custom-design-zoom-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-design-zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  color: var(--primary);
}

.custom-design-zoom-btn:hover {
  background: rgba(111, 51, 255, 0.08);
  border-color: var(--primary);
}

.custom-design-zoom-value {
  font-size: 14px;
  font-weight: 600;
  min-width: 44px;
  text-align: center;
}

.custom-design-clear {
  font-size: 13px;
  color: var(--muted);
}

.custom-design-clear:hover {
  color: #dc2626;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 12px;
}

.platform-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.15s ease;
  display: grid;
  place-items: center;
  min-width: 56px;
  min-height: 56px;
}

.platform-card .platform-card-label {
  display: none;
}

.platform-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.dashboard-panel#panelPlatforms .platform-grid {
  gap: 12px;
}

.platform-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(111, 51, 255, 0.15);
}

.platform-card:hover {
  transform: translateY(-2px);
}

.profile-card {
  display: grid;
  gap: 24px;
  justify-items: center;
}

.profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #e7e7e7;
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
}

.profile-avatar .avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar .plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  position: absolute;
  right: -4px;
  bottom: 2px;
  font-size: 14px;
}

.profile-fields {
  width: min(460px, 100%);
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  resize: none;
}

.counter {
  justify-self: end;
  font-size: 12px;
  color: var(--muted);
}

.panel-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

button.primary,
button.ghost {
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

button.primary,
a.primary {
  background: linear-gradient(135deg, #7c3aed, #6f33ff);
  color: #fff;
  box-shadow: 0 4px 14px rgba(111, 51, 255, 0.35);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

button.primary:hover,
a.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(111, 51, 255, 0.4);
  opacity: 1;
}

button.ghost {
  background: #f4f2ef;
  color: #3f3c38;
}

.premium-panel {
  background: #fff7f0;
  border-radius: 28px;
  padding: 28px 32px;
  border: 1px solid #f0e4d7;
}

.premium-panel h2 {
  margin: 0 0 16px;
  font-family: "Playfair Display", serif;
}

.premium-panel ul {
  margin: 0;
  padding-left: 18px;
  color: #5c5148;
  display: grid;
  gap: 6px;
}

/* Views */
.view-dashboard {
  height: 100vh;
  overflow: hidden;
}

/* Layout ca Linktree: sidebar + main + preview */
.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr 340px;
  height: 100vh;
  background: #f8f7f5;
}

.dashboard-layout.preview-half {
  grid-template-columns: 220px 1fr 1fr;
}

.dashboard-sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  position: relative;
}

/* Link + cont jos (ca Linktree) */
.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.sidebar-link-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-link-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  background: #f8f7f5;
  color: var(--text);
}

.sidebar-link-copy {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.sidebar-link-copy:hover {
  background: #f4f2ef;
}

.sidebar-account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  background: #f8f7f5;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
}

.sidebar-account-row:hover {
  background: #eeece8;
}

.sidebar-account-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-plan-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.sidebar-account-arrow {
  font-size: 16px;
  color: var(--muted);
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e7e7e7;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

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

.sidebar-avatar-placeholder {
  font-size: 18px;
  line-height: 1;
}

.sidebar-username {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Account dropdown panel */
.sidebar-account-dropdown {
  position: absolute;
  bottom: 100%;
  left: 16px;
  right: 16px;
  min-width: 280px;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin-bottom: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.sidebar-account-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-profile-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}

.dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e7e7e7;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

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

.dropdown-avatar-placeholder {
  font-size: 24px;
  line-height: 1;
}

.dropdown-profile-info {
  flex: 1;
  min-width: 180px;
}

.dropdown-username {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px;
}

.dropdown-profile-link {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: normal;
  display: block;
  line-height: 1.4;
  white-space: normal;
}

.dropdown-profile-link:hover {
  text-decoration: underline;
}

.dropdown-pro-pill {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: #e8e6e3;
  padding: 4px 10px;
  border-radius: 999px;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.dropdown-item,
.dropdown-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s ease;
}

.dropdown-item:hover,
.dropdown-logout:hover {
  background: #f4f2ef;
}

.dropdown-item-icon {
  font-size: 16px;
  opacity: 0.8;
  flex-shrink: 0;
}

.dropdown-logout {
  background: #e8e6e3;
  font-weight: 600;
}

.dropdown-logout:hover {
  background: #ddd9d4;
}

.sidebar-nav,
.sidebar-tools {
  padding: 8px 0;
}

.sidebar-nav-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.sidebar-taply-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}

.sidebar-tab,
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sidebar-nav .sidebar-tab,
.sidebar-nav .sidebar-link {
  margin-bottom: 6px;
}

.sidebar-tab-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.sidebar-tab:hover,
.sidebar-link:hover {
  background: #f4f2ef;
}

.sidebar-tab.is-active {
  background: rgba(111, 51, 255, 0.08);
  color: var(--primary);
  border-left-color: var(--primary);
}

.sidebar-checklist {
  margin-top: auto;
  padding: 16px;
  background: #f8f7f5;
  border-radius: 12px;
  margin-left: 12px;
  margin-right: 12px;
}

.sidebar-checklist p {
  margin: 0 0 6px;
  font-size: 13px;
}

.sidebar-checklist-progress {
  color: var(--muted) !important;
  font-size: 12px !important;
}

.sidebar-btn-setup {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

.sidebar-footer {
  padding: 16px;
}

.sidebar-logout {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
}

.sidebar-logout:hover {
  color: var(--text);
  background: #f4f2ef;
}

.dashboard-main {
  overflow: auto;
  padding: 24px 32px 48px;
}

.dashboard-panel {
  display: none;
  max-width: 640px;
  animation: liveFadeUp 0.35s var(--ease-out) both;
}

.dashboard-panel.is-active {
  display: block;
}

.dashboard-panel h2 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  margin: 0 0 8px;
}

/* Panou Linkuri – stil Linktree */
.links-header {
  margin-bottom: 24px;
}

.links-header h2 {
  margin-bottom: 16px;
}

.links-profile-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 0;
}

.links-strip-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e7e7e7;
  overflow: hidden;
}

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

.links-strip-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.links-strip-social span,
.links-strip-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-block;
  object-fit: contain;
}

.links-strip-social span {
  background: #e7e7e7;
}

.btn-add-link {
  padding: 14px 24px;
  min-height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(111, 51, 255, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn-add-link:hover {
  opacity: 0.98;
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(111, 51, 255, 0.45);
}

.link-cards {
  display: grid;
  gap: 16px;
}

.link-card {
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.18), transparent 55%),
    rgba(250, 249, 246, 0.98);
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 28px rgba(148, 163, 184, 0.35);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.link-card:hover {
  transform: translateY(-1px);
  border-color: rgba(55, 65, 81, 0.35);
  box-shadow: 0 16px 40px rgba(148, 163, 184, 0.45);
}

.link-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.link-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e5e7eb, #f9fafb);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.link-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.link-card-icon .link-card-logo {
  object-fit: contain;
  padding: 4px;
}

.link-card-handle {
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  cursor: grab;
  color: var(--muted);
  padding: 0;
}

.link-card-title {
  font-weight: 600;
  font-size: 15px;
  flex: 1;
  min-width: 0;
}

.link-card-url {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  background: #fafaf9;
}

.link-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.link-card-actions button {
  width: 32px;
  height: 32px;
  border: none;
  background: #f4f4fb;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.link-card-actions button:hover {
  background: #e5e7ff;
  color: var(--text);
}

.link-card-actions button.btn-delete-card:hover {
  background: #fee2e2;
  color: #dc2626;
}

.link-card-clicks {
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
}

.link-form-card {
  margin-top: 16px;
  padding: 20px 20px 18px;
  background:
    radial-gradient(circle at top left, rgba(167, 139, 250, 0.14), transparent 55%),
    rgba(248, 249, 252, 0.98);
  border: 1px solid rgba(199, 210, 254, 0.9);
  border-radius: 16px;
  display: grid;
  gap: 14px;
  box-shadow: 0 12px 32px rgba(129, 140, 248, 0.25);
}

/* Preview dreapta */
.dashboard-preview {
  background: #fff;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.preview-url-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: #f8f7f5;
}

.preview-copy {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.preview-open {
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
}

/* Frame iPhone cu Dynamic Island */
.preview-frame-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.preview-phone-frame {
  width: 260px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  max-height: 100%;
  background: #1a1a1a;
  border-radius: 38px;
  padding: 6px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.06), inset 0 1px 0 rgba(255,255,255,0.08);
}

.preview-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  position: relative;
}

/* Dynamic Island (insula iPhone) */
.preview-phone-dynamic-island {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 16px;
  z-index: 10;
}

.preview-phone-screen .preview-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none;
  display: block;
}

.profile-card-inline {
  justify-items: start;
  max-width: 100%;
}

.profile-card-inline .profile-fields {
  max-width: 100%;
}

@media (max-width: 1100px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .dashboard-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }

  .sidebar-checklist,
  .sidebar-tools {
    display: none;
  }

  .dashboard-preview {
    display: none;
  }

  .mobile-preview-bar {
    display: flex !important;
  }

  .dashboard-main {
    padding-bottom: 90px;
    padding-bottom: max(90px, calc(env(safe-area-inset-bottom) + 80px));
  }
}

.mobile-preview-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  flex-wrap: nowrap;
}

.mobile-preview-link-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f7f5;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
}

.mobile-preview-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  resize: none;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: inherit;
}

.mobile-preview-input::-webkit-input-placeholder { color: var(--muted); }
.mobile-preview-input::placeholder { color: var(--muted); }

.mobile-preview-copy-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.mobile-preview-copy-btn:hover {
  background: #f4f2ef;
}

.mobile-preview-open-btn {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: linear-gradient(135deg, #7c3aed, #6f33ff);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(111, 51, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-preview-open-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(111, 51, 255, 0.4);
}

@media (max-width: 768px) {
  .app.dashboard-active {
    padding: 0;
  }

  .dashboard-main {
    padding: 16px;
  }

  .dashboard-sidebar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
  }

  .sidebar-nav {
    flex-wrap: wrap;
  }

  .sidebar-tab {
    padding: 12px 16px;
    min-height: 48px;
  }

  .link-card,
  .link-form-card {
    padding: 16px;
  }

  .profile-card-inline {
    padding: 20px;
  }

  .link-domain-section .link-domain-block,
  .link-qr-section {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .view-username,
  .view-onboarding {
    padding: 16px;
  }

  .username-panel,
  .panel {
    padding: 24px 20px;
  }

  .dashboard-sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-bottom {
    padding-top: 12px;
  }
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.link-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8f7f5;
  border-radius: 14px;
}

.link-item-title {
  font-weight: 600;
  min-width: 0;
}

.link-item-url {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.link-item-actions {
  display: flex;
  gap: 8px;
}

.btn-edit,
.btn-delete {
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

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

.btn-delete {
  background: #e8e6e3;
  color: #5c5148;
}

.link-form {
  margin-top: 16px;
  padding: 20px;
  background: #f8f7f5;
  border-radius: 18px;
  display: grid;
  gap: 14px;
  max-width: 420px;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.field-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field-checkbox input {
  width: auto;
}

.audience-hint {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
  max-width: 520px;
}

.social-urls-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 10px;
}

.social-urls-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
  max-width: 520px;
}

.social-url-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  cursor: grab;
  padding: 4px 0;
}

.social-url-row:active {
  cursor: grabbing;
}

.social-url-drag-handle {
  color: var(--muted);
  font-size: 14px;
  cursor: grab;
  padding: 4px;
  flex-shrink: 0;
  user-select: none;
}

.social-url-row-dragging {
  opacity: 0.6;
}

.social-url-row-drag-over {
  border-top: 2px solid var(--primary);
  margin-top: -2px;
  padding-top: 6px;
}

.social-url-row-label-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  flex-shrink: 0;
}

.social-url-row-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.social-url-row .social-url-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f4f2ef;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.social-url-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-url-row input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
}

.social-url-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: #f4f2ef;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}

.social-url-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

.analytics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.analytics-card {
  padding: 20px;
  background: #f8f7f5;
  border-radius: 18px;
  text-align: center;
}

.analytics-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.analytics-label {
  font-size: 13px;
  color: var(--muted);
}

.analytics-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.analytics-link-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

/* Upgrade panel */
.upgrade-features {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.upgrade-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #f8f7f5;
  border-radius: 18px;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.upgrade-feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(111, 51, 255, 0.1);
}

.upgrade-feature-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(111, 51, 255, 0.1);
  border-radius: 14px;
}

.upgrade-feature-card h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.upgrade-feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.upgrade-feature-card > div {
  flex: 1;
  min-width: 0;
}

.upgrade-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(111, 51, 255, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
}

.upgrade-cta-wrap {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(111, 51, 255, 0.08) 0%, rgba(251, 191, 36, 0.08) 100%);
  border-radius: 18px;
  border: 1px dashed var(--primary);
}

.upgrade-cta-text {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: #374151;
}

.btn-upgrade-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-upgrade-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(111, 51, 255, 0.35);
}

/* Link & QR panel */
.link-domain-section {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

.link-domain-block {
  padding: 20px;
  background: #f8f7f5;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.link-domain-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.link-domain-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px 0;
}

.link-domain-block .profile-link-row {
  margin: 0;
}

.link-qr-section {
  padding: 20px;
  background: #f8f7f5;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.link-qr-section .link-domain-label {
  margin-bottom: 4px;
}

.link-qr-section .link-domain-hint {
  margin-bottom: 16px;
}

.profile-subdomain-row.link-domain-block {
  display: block;
}

.profile-subdomain-row.link-domain-block[hidden] {
  display: none;
}

/* QR code panel */
.qrcode-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: #f8f7f5;
  border-radius: 18px;
  margin-bottom: 16px;
  min-height: 200px;
}

.qrcode-placeholder {
  color: var(--muted);
  text-align: center;
}

.qrcode-img {
  max-width: 256px;
  height: auto;
  border-radius: 8px;
}

.qrcode-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Sections panel */
.sections-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.section-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8f7f5;
  border-radius: 12px;
}

.section-list-icon {
  font-size: 18px;
}

.sections-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* Link shortener panel */
.shortener-add {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .shortener-add {
    grid-template-columns: 1fr;
  }
}

.shortener-add input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
}

.shortener-list {
  display: grid;
  gap: 8px;
}

.shortener-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8f7f5;
  border-radius: 12px;
  font-size: 14px;
}

.shortener-slug {
  font-weight: 600;
  color: var(--primary);
}

.shortener-copy, .shortener-remove {
  margin-left: auto;
  padding: 4px 8px;
}

/* Section link card */
.link-card-section {
  border-left: 3px solid var(--primary);
}

.link-card-section .link-card-url,
.link-card-section .link-card-star,
.link-card-section .link-card-clicks {
  display: none;
}

/* Drag & drop */
.link-card-dragging {
  opacity: 0.5;
}

.link-card-drag-over {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(111, 51, 255, 0.3);
}

/* Live profile section title */
.live-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  margin: 20px 0 10px 0;
  padding: 0 4px;
}

.live-section-title:first-child {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

/* Live profile page – pe toată pagina, optimizat mobil ca Linktree */
#profilePage {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.live-header {
  position: fixed;
  top: 12px;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  left: max(12px, env(safe-area-inset-left));
  z-index: 10;
}

.live-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 13px;
  color: #e5e7eb;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), background 0.2s ease;
}

.live-logo-img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}

.live-logo-text {
  font-weight: 600;
  letter-spacing: 0.02em;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.2s ease, opacity 0.2s ease;
}

.live-logo-link:hover {
  transform: scale(1.02);
  border-color: rgba(196, 181, 253, 0.9);
  background: rgba(15, 23, 42, 0.9);
}

.live-logo-link:hover .live-logo-text {
  max-width: 40px;
  opacity: 1;
}

#profilePage.live-page.theme-midnight { background: #0a0a0a; }
#profilePage.live-page.theme-sunset { background: linear-gradient(180deg, #b8d7dd, #d9b4d6, #e46e47); }
#profilePage.live-page.theme-grid { background: #5b2c2c; background-image: linear-gradient(transparent 90%, rgba(255,255,255,0.08) 90%), linear-gradient(90deg, transparent 90%, rgba(255,255,255,0.08) 90%); background-size: 24px 24px; }
#profilePage.live-page.theme-ivory { background: #f5ede1; }
#profilePage.live-page.theme-forest { background: linear-gradient(180deg, #0b2b26, #8dceb9, #f2f4ef); }
#profilePage.live-page.theme-minimal { background: linear-gradient(180deg, #f1f1f3, #fff, #f1f1f3); }
#profilePage.live-page.theme-leather { background: linear-gradient(180deg, #3d3428, #6b5d4d, #8a7a68); }
#profilePage.live-page.theme-purple { background: linear-gradient(180deg, #2d1b4e, #5c3d8a, #8b6bb8); }

.live-page-wrap {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 48px 24px 64px;
  padding-top: max(48px, calc(env(safe-area-inset-top) + 24px));
  padding-bottom: max(64px, calc(env(safe-area-inset-bottom) + 32px));
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

body.has-custom-bg .live-page-wrap {
  background: transparent !important;
  background-image: none !important;
}

body.live-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

body.live-page.theme-midnight { background: #0a0a0a; color: #fff; }
body.live-page.theme-sunset { background: linear-gradient(180deg, #b8d7dd, #d9b4d6, #e46e47); color: #fff; }
body.live-page.theme-grid { background: #5b2c2c; background-image: linear-gradient(transparent 90%, rgba(255,255,255,0.08) 90%), linear-gradient(90deg, transparent 90%, rgba(255,255,255,0.08) 90%); background-size: 24px 24px; color: #fff; }
body.live-page.theme-ivory { background: #f5ede1; color: #4f3b2e; }
body.live-page.theme-forest { background: linear-gradient(180deg, #0b2b26, #8dceb9, #f2f4ef); color: #e8fff8; }
body.live-page.theme-minimal { background: linear-gradient(180deg, #f1f1f3, #fff, #f1f1f3); color: #2a2a2a; }
body.live-page.theme-leather { background: linear-gradient(180deg, #3d3428, #6b5d4d, #8a7a68); color: #fff; }
body.live-page.theme-purple { background: linear-gradient(180deg, #2d1b4e, #5c3d8a, #8b6bb8); color: #fff; }

/* Embed mode – reduced margins for phone preview iframe */
body.profile-embed .live-page-wrap {
  padding: 16px 12px 24px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  min-height: auto;
}

/* Animații pagină live – wow factor */
@keyframes liveFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes liveScaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes liveShine {
  0% { opacity: 0; }
  50% { opacity: 0.15; }
  100% { opacity: 0; }
}

.live-profile {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.live-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  animation: liveScaleIn 0.6s var(--ease-spring) forwards;
}

.live-avatar,
.live-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  position: absolute;
  inset: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.live-avatar-wrap:hover .live-avatar,
.live-avatar-wrap:hover .live-avatar-placeholder {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.live-avatar {
  object-fit: cover;
}

.live-avatar-placeholder {
  background: rgba(255, 255, 255, 0.3);
}

body.live-page.theme-ivory .live-avatar-placeholder,
body.live-page.theme-minimal .live-avatar-placeholder,
.live-page-wrap.theme-ivory .live-avatar-placeholder,
.live-page-wrap.theme-minimal .live-avatar-placeholder {
  background: rgba(0, 0, 0, 0.08);
}

body.live-page.theme-ivory .live-avatar,
body.live-page.theme-ivory .live-avatar-placeholder,
body.live-page.theme-minimal .live-avatar,
body.live-page.theme-minimal .live-avatar-placeholder,
.live-page-wrap.theme-ivory .live-avatar,
.live-page-wrap.theme-ivory .live-avatar-placeholder,
.live-page-wrap.theme-minimal .live-avatar,
.live-page-wrap.theme-minimal .live-avatar-placeholder {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.live-name {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  margin: 0 0 8px;
  font-weight: 700;
  animation: liveFadeUp 0.6s var(--ease-out) 0.1s both;
}

.live-bio {
  font-size: 14px;
  margin: 0 0 20px;
  opacity: 0.9;
  line-height: 1.5;
  animation: liveFadeUp 0.6s var(--ease-out) 0.15s both;
}

.live-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  animation: liveFadeUp 0.6s var(--ease-out) 0.2s both;
}

.live-social-link {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-out), background 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.live-social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.live-social-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.live-social-fallback {
  font-size: 13px;
  font-weight: 600;
}

body.live-page.theme-ivory .live-social-link,
body.live-page.theme-minimal .live-social-link,
.live-page-wrap.theme-ivory .live-social-link,
.live-page-wrap.theme-minimal .live-social-link {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.06);
  color: inherit;
}

body.live-page.theme-ivory .live-social-link:hover,
body.live-page.theme-minimal .live-social-link:hover,
.live-page-wrap.theme-ivory .live-social-link:hover,
.live-page-wrap.theme-minimal .live-social-link:hover {
  background: rgba(0, 0, 0, 0.1);
}

.live-links {
  display: grid;
  gap: 12px;
}

.live-link {
  display: block;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s var(--ease-out), background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: liveFadeUp 0.5s var(--ease-out) both;
}

.live-link:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.live-link.is-highlight {
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.live-link-with-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  text-align: left;
}

.live-link:nth-child(1) { animation-delay: 0.28s; }
.live-link:nth-child(2) { animation-delay: 0.33s; }
.live-link:nth-child(3) { animation-delay: 0.38s; }
.live-link:nth-child(4) { animation-delay: 0.43s; }
.live-link:nth-child(5) { animation-delay: 0.48s; }
.live-link:nth-child(6) { animation-delay: 0.53s; }
.live-link:nth-child(7) { animation-delay: 0.58s; }
.live-link:nth-child(8) { animation-delay: 0.63s; }

.live-link-logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.live-link-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.live-link-logo-placeholder {
  font-size: 18px;
  font-weight: 700;
  opacity: 0.9;
}

.live-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.live-link-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

.live-link-subtitle {
  font-weight: 500;
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.3;
}

body.live-page.theme-ivory .live-link-logo,
body.live-page.theme-minimal .live-link-logo,
.live-page-wrap.theme-ivory .live-link-logo,
.live-page-wrap.theme-minimal .live-link-logo {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

.live-link-image {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 14px;
  margin: 0 auto;
}

body.live-page.theme-ivory .live-link,
body.live-page.theme-minimal .live-link,
.live-page-wrap.theme-ivory .live-link,
.live-page-wrap.theme-minimal .live-link {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
  color: inherit;
}

body.live-page.theme-ivory .live-link:hover,
body.live-page.theme-minimal .live-link:hover,
.live-page-wrap.theme-ivory .live-link:hover,
.live-page-wrap.theme-minimal .live-link:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.12);
}

body.live-page.theme-ivory .live-link.is-highlight,
body.live-page.theme-minimal .live-link.is-highlight,
.live-page-wrap.theme-ivory .live-link.is-highlight,
.live-page-wrap.theme-minimal .live-link.is-highlight {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.15);
}

.live-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.live-empty a {
  color: var(--primary);
}

.live-footer {
  margin: 28px 0 0;
  font-size: 12px;
  opacity: 0.6;
  animation: liveFadeUp 0.6s var(--ease-out) 0.7s both;
}

.live-footer-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.live-footer-link:hover {
  opacity: 1;
}

/* Pagina live pe telefon – mai compactă, ca Linktree, cu safe areas */
@media (max-width: 480px) {
  .live-page-wrap {
    padding-top: max(32px, calc(env(safe-area-inset-top) + 16px));
    padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 24px));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .live-profile {
    max-width: 100%;
    padding: 0 16px;
  }

  .live-avatar-wrap {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
  }

  .live-avatar,
  .live-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-width: 2px;
  }

  .live-name {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .live-bio {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .live-social {
    gap: 8px;
    margin-bottom: 18px;
  }

  .live-social-link {
    padding: 8px 12px;
    font-size: 12px;
  }

  .live-social-logo {
    width: 18px;
    height: 18px;
  }

  .live-social-fallback {
    font-size: 12px;
  }

  .live-links {
    gap: 10px;
  }

  .live-link {
    padding: 12px 16px;
    border-radius: 12px;
  }

  .live-link-with-logo {
    gap: 12px;
    padding: 12px 14px;
  }

  .live-link-logo {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
  }

  .live-link-logo-img {
    width: 22px;
    height: 22px;
  }

  .live-link-logo-placeholder {
    font-size: 14px;
  }

  .live-link-title {
    font-size: 14px;
  }

  .live-link-subtitle {
    font-size: 12px;
  }

  .live-link-image {
    max-width: 100%;
    border-radius: 12px;
  }
}

/* ========== Landing (intro premium, stil Linktree) ========== */
.landing-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0f1729;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #0f1729;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
}

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

.landing-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.landing-nav a:hover {
  color: #fff;
}

.landing-badge {
  background: #a8ff00;
  color: #14532d;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.landing-header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-login {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
}

.landing-login:hover {
  opacity: 0.9;
}

.landing-signup {
  background: #15803d;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
}

.landing-signup:hover {
  background: #166534;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: calc(100vh - 60px);
}

.hero-left {
  background: #a8ff00;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}

.hero-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  color: #14532d;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hero-free {
  font-size: 15px;
  font-weight: 600;
  color: #15803d;
  margin: 0 0 16px;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.5;
  color: #166534;
  margin: 0 0 32px;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 0;
  max-width: 420px;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-input {
  flex: 1;
  padding: 16px 22px;
  border: none;
  font-size: 15px;
  font-family: inherit;
  min-width: 0;
}

.hero-input::placeholder {
  color: #6b7280;
}

.hero-input:focus {
  outline: none;
}

.hero-btn {
  padding: 16px 28px;
  background: #15803d;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.hero-btn:hover {
  background: #166534;
}

.hero-right {
  background: #0f1729;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  overflow: hidden;
}

.hero-right-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, 0.03) 40px,
    rgba(255, 255, 255, 0.03) 41px
  );
  pointer-events: none;
}

.hero-mockup {
  position: relative;
  z-index: 1;
  width: 280px;
  padding: 12px;
  background: linear-gradient(145deg, #1e293b, #0f1729);
  border-radius: 32px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mockup-screen {
  background: linear-gradient(180deg, #1e3a5f 0%, #0f1729 100%);
  border-radius: 24px;
  padding: 28px 20px 32px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mockup-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
}

.mockup-name {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
}

.mockup-bio {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.mockup-social {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.mockup-link {
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 10px;
  width: 100%;
}

.landing-footer {
  padding: 24px;
  text-align: center;
  background: #0f1729;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.landing-footer p {
  margin: 0;
}

/* ========== Pagină Log in premium ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0a0a0f;
  margin: 0;
}

.login-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(111, 51, 255, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(88, 28, 135, 0.15), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(59, 130, 246, 0.12), transparent);
  pointer-events: none;
  z-index: 0;
}

.login-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
}

.login-logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.login-back {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.login-back:hover {
  color: #fff;
}

.login-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 80px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 48px 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.server-warning {
  display: block;
  margin: -44px -40px 24px -40px;
  padding: 14px 24px;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 24px 24px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.45;
}

.server-warning a {
  color: #a78bfa;
  text-decoration: underline;
  word-break: break-all;
}

.server-warning a:hover {
  color: #c4b5fd;
}

.login-card-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #6f33ff, #8b5cf6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 24px;
}

.login-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.already-logged-in-msg {
  text-align: center;
  padding: 8px 0;
}
.already-logged-in-msg .login-subtitle { margin-bottom: 8px; }

.login-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 28px;
  line-height: 1.5;
}

.auth-social-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.auth-btn-social:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

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

.auth-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-btn-google .auth-btn-icon {
  color: #fff;
}

.auth-btn-github .auth-btn-icon {
  color: rgba(255, 255, 255, 0.9);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-field span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.login-field input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.login-field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.login-field input:focus {
  outline: none;
  border-color: rgba(111, 51, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.login-forgot-link {
  font-size: 13px;
  color: #a78bfa;
  text-decoration: none;
  margin-top: 4px;
  display: inline-block;
}

.login-forgot-link:hover {
  text-decoration: underline;
  color: #c4b5fd;
}

.login-btn {
  margin-top: 8px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #6f33ff, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(111, 51, 255, 0.35);
}

.login-error {
  margin: 0 0 8px;
  font-size: 14px;
  color: #f87171;
  min-height: 20px;
}

.login-resend-wrap {
  margin: 0 0 8px;
  font-size: 14px;
}

.login-resend-link {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: #a78bfa;
  cursor: pointer;
  text-decoration: underline;
}

.login-resend-link:hover {
  color: #c4b5fd;
}

.login-resend-link:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-success {
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.login-footer-text {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.login-footer-text a {
  color: #a78bfa;
  font-weight: 600;
  text-decoration: none;
}

.login-footer-text a:hover {
  text-decoration: underline;
}

.login-page-footer {
  position: relative;
  z-index: 1;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.login-page-footer p {
  margin: 0;
}

.login-page-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.login-page-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Privacy page */
.privacy-card {
  max-width: 600px;
}

.privacy-updated {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: -8px 0 20px;
}

.privacy-content {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
}

.privacy-content h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: #fff;
}

.privacy-content p,
.privacy-content ul {
  margin: 0 0 12px;
}

.privacy-content ul {
  padding-left: 20px;
}

.privacy-content li {
  margin-bottom: 4px;
}

.privacy-agree {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 16px;
}

.privacy-agree a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

.privacy-agree a:hover {
  color: #fff;
}

/* Landing – același design ca login (premium dark) */
.landing-same-style .login-header.landing-header-extra {
  flex-wrap: wrap;
  gap: 16px;
}

.landing-nav-inline {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-nav-inline a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.landing-nav-inline a:hover {
  color: #fff;
}

.landing-badge-dark {
  background: rgba(167, 139, 250, 0.25);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.login-header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-header-cta .login-back {
  margin: 0;
}

.login-btn-header {
  padding: 10px 20px;
  font-size: 14px;
  margin: 0;
}

.landing-hero-main {
  align-items: center;
  padding-top: 20px;
}

.landing-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  width: 100%;
}

.landing-hero-text {
  max-width: 480px;
}

.landing-hero-title {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 12px;
}

.landing-hero-free {
  color: #a78bfa;
  font-weight: 600;
  margin-bottom: 12px;
}

.landing-hero-list {
  margin: 14px 0 0;
  padding-left: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.landing-hero-list li + li {
  margin-top: 4px;
}

.landing-hero-form {
  margin-top: 24px;
}

.landing-hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.login-field-input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
}

.login-field-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.login-field-input:focus {
  outline: none;
  border-color: rgba(111, 51, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.landing-cta-btn {
  margin: 0;
  white-space: nowrap;
}

.landing-hero-hint {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.landing-hero-mockup-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-mockup-size {
  width: 260px;
}

.landing-mockup-size .mockup-screen {
  min-height: 380px;
}

/* ========== Landing premium (Linktree-style) ========== */
.landing-premium .landing-bg-fixed {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.landing-premium .landing-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(111, 51, 255, 0.28), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(88, 28, 135, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(59, 130, 246, 0.1), transparent 50%);
  background-size: cover;
  background-position: center;
}

.landing-premium .landing-bg-blur {
  position: absolute;
  inset: -20px;
  background: inherit;
  filter: blur(40px);
  opacity: 0.4;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(111, 51, 255, 0.35), transparent),
    radial-gradient(ellipse 50% 50% at 100% 50%, rgba(88, 28, 135, 0.2), transparent);
}

.landing-premium .landing-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(129, 140, 248, 0.32), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.22), transparent 55%),
    rgba(10, 10, 20, 0.72);
}

.landing-premium .login-header,
.landing-premium .login-main,
.landing-premium .login-page-footer {
  position: relative;
  z-index: 1;
}

.landing-premium .landing-hero-centering {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.landing-premium .landing-glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 36px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.landing-premium .landing-hero-text.landing-glass-card {
  padding: 40px 36px 44px;
}

.landing-premium .landing-glass-card:hover {
  transform: scale(1.03);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.landing-premium .hero-mockup.landing-glass-card {
  padding: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

@keyframes heroMockupFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

.landing-premium .hero-mockup.landing-glass-card {
  animation: heroMockupFloat 6s ease-in-out infinite;
}

@keyframes landingFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-premium .landing-hero-text {
  animation: landingFadeIn 0.6s ease 0.15s forwards;
  opacity: 0;
}

.landing-premium .landing-hero-mockup-wrap {
  animation: landingFadeIn 0.6s ease 0.3s forwards;
  opacity: 0;
}

.landing-premium .login-card-badge {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-premium .login-card-badge:hover {
  transform: scale(1.02);
}

.landing-premium .login-btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.landing-premium .login-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(111, 51, 255, 0.4);
}

.landing-premium .login-btn:active {
  transform: scale(0.99);
}

.landing-premium .login-field-input {
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.landing-premium .login-field-input:focus {
  box-shadow: 0 0 0 3px rgba(111, 51, 255, 0.2);
}

.landing-premium .landing-nav-inline a,
.landing-premium .login-back,
.landing-premium .login-logo {
  transition: color 0.3s ease, opacity 0.3s ease;
}

.landing-premium .landing-hero-content {
  gap: 40px;
}

.landing-premium .landing-hero-title {
  margin-bottom: 16px;
}

.landing-premium .login-subtitle {
  margin-bottom: 24px;
}

.landing-premium .landing-hero-form {
  margin-top: 32px;
}

.landing-premium .landing-hero-cta-row {
  gap: 14px;
}

.landing-premium .landing-hero-hint {
  margin-top: 16px;
}

.landing-premium .login-main {
  padding: 48px 24px 96px;
}

.landing-premium .login-header {
  padding: 24px 32px;
}

.landing-premium .login-page-footer {
  padding: 24px;
}

@media (max-width: 600px) {
  .landing-premium .landing-hero-centering {
    padding-left: 20px;
    padding-right: 20px;
  }

  .landing-premium .landing-hero-text.landing-glass-card {
    padding: 32px 24px 36px;
  }

  .landing-premium .landing-bg-blur {
    filter: blur(30px);
    opacity: 0.35;
  }
}

.register-section .register-badge {
  background: linear-gradient(135deg, #059669, #10b981);
}

@media (max-width: 900px) {
  .landing-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .landing-hero-text {
    max-width: none;
  }

  .landing-hero-cta-row {
    justify-content: center;
  }

  .landing-nav-inline {
    display: none;
  }
}

.landing-section {
  position: relative;
  z-index: 1;
  padding: 48px 24px 64px;
}

.landing-section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.landing-section-inner-slim {
  max-width: 720px;
}

.landing-section-header h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 8px;
}

.landing-section-about .landing-section-header h2 {
  color: #ffffff !important;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.landing-section-about .landing-section-header p {
  color: rgba(255, 255, 255, 0.95) !important;
}

.landing-section-header p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 620px;
}

.landing-section-features {
  color: #f9fafb;
}

.landing-feature-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.landing-feature-card {
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top left, rgba(111, 51, 255, 0.15), transparent 55%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.1), transparent 55%),
    rgba(15, 23, 42, 0.8);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
  font-size: 14px;
  line-height: 1.5;
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.landing-feature-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.landing-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.85);
  border-color: rgba(167, 139, 250, 0.7);
}

.landing-section-templates {
  color: #e5e7eb;
}

.landing-templates-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.landing-template-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 13px;
  background: rgba(15, 23, 42, 0.8);
}

.landing-section-about {
  padding-top: 32px;
}

.landing-section-steps {
  color: #e5e7eb;
}

.landing-steps-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-step-card {
  position: relative;
  padding: 18px 18px 20px 46px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.3), transparent 55%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 60%),
    rgba(15, 23, 42, 0.9);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

.landing-step-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.landing-step-number {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(129, 140, 248, 0.9);
}

.landing-section-faq {
  color: #e5e7eb;
}

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

.landing-faq-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.landing-faq-item p {
  font-size: 14px;
  color: rgba(209, 213, 219, 0.9);
}

@media (max-width: 900px) {
  .landing-feature-grid {
    grid-template-columns: 1fr;
  }

  .landing-steps-grid {
    grid-template-columns: 1fr;
  }

  .landing-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    max-width: none;
    padding: 48px 24px;
  }

  .hero-right {
    min-height: 400px;
    padding: 32px 24px;
  }

  .hero-mockup {
    width: 240px;
  }
}

@media (max-width: 600px) {
  .landing-header {
    padding: 12px 16px;
  }

  .landing-nav {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    border-radius: 16px;
  }

  .hero-btn {
    border-radius: 12px;
  }
}

@media (max-width: 720px) {
  .app {
    margin: 20px auto;
  }

  .panel {
    padding: 26px;
  }

  .panel-actions {
    flex-direction: column;
  }
}
