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

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #060813;
  --bg2: #0b0e22;
  --bg3: #121636;
  --surface: rgba(255, 255, 255, 0.03);
  --surface2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border2: rgba(255, 255, 255, 0.12);
  --text: #f3f4f6;
  --text2: #9ca3af;
  --text3: #6b7280;
  --primary: #7c3aed;
  --primary2: #a78bfa;
  --blue: #3b82f6;
  --blue2: #60a5fa;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 30px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
  --glow: 0 0 30px rgba(124, 58, 237, 0.25);
  --glow-blue: 0 0 30px rgba(59, 130, 246, 0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Subtile Hintergrund-Glow-Effekte auf allen Seiten */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: 20%;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: 10%;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, transparent 70%);
  z-index: -2;
  pointer-events: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 99px; border: 2px solid var(--bg2); }
::-webkit-scrollbar-thumb:hover { background: var(--primary2); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
a { color: var(--primary2); text-decoration: none; transition: all .25s ease; }
a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.2); }

/* ===== LAYOUT ===== */
.container { max-width: 1150px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 8, 19, 0.7);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  transition: all .3s;
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.navbar__brand {
  font-size: 1.65rem; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 20%, var(--primary2) 60%, var(--blue2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: flex; align-items: center; gap: 8px;
}
.navbar__actions { display: flex; align-items: center; gap: 12px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: none; transition: all .25s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--blue));
  color: #fff;
  box-shadow: 0 4px 15px rgba(124,58,237,0.3), inset 0 1px 1px rgba(255,255,255,0.2);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow), var(--glow-blue), 0 8px 25px rgba(124,58,237,0.4);
  color: #fff;
}
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  background: var(--surface2); color: var(--text); border: 1px solid var(--border2);
  backdrop-filter: blur(8px);
}
.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary2);
  color: #fff;
  transform: translateY(-2px);
}
.btn--secondary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent; color: var(--text2); border: 1px solid var(--border);
}
.btn--ghost:hover {
  color: #fff; border-color: var(--border2); background: rgba(255, 255, 255, 0.02);
}

.btn--danger {
  background: rgba(239,68,68,0.1); color: var(--error); border: 1px solid rgba(239,68,68,0.2);
}
.btn--danger:hover {
  background: rgba(239,68,68,0.2); border-color: var(--error); color: #fff; transform: translateY(-2px);
}

.btn--success {
  background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.2);
}
.btn--success:hover {
  background: rgba(16,185,129,0.2); border-color: var(--success); color: #fff; transform: translateY(-2px);
}

.btn--sm { padding: 8px 16px; font-size: 0.82rem; }
.btn--icon { padding: 10px; border-radius: 10px; }
.btn[disabled] { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

/* ===== CARDS ===== */
.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(16px);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.card:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ===== FORMS ===== */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 0.78rem; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: 0.08em; }
.form-input, .form-textarea, .form-select {
  background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 14px 18px; font-size: 0.95rem; font-family: inherit;
  transition: all .25s ease; width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--primary2);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
  background: rgba(0, 0, 0, 0.3);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text3); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-select { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }

input[type="color"].form-input {
  padding: 6px; height: 50px; cursor: pointer; border-radius: var(--radius-sm);
}

/* ===== ALERTS / FLASH ===== */
.alert {
  padding: 16px 20px; border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 600;
  display: flex; align-items: center; gap: 12px;
  animation: slideDown .4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow);
}
.alert--success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25); color: var(--success); }
.alert--error   { background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.25);  color: var(--error); }
.alert--info    { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.25);  color: var(--blue2); }
@keyframes slideDown { from { opacity:0; transform:translateY(-15px); } to { opacity:1; transform:translateY(0); } }

/* ===== BADGE ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 99px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.02em;
}
.badge--active   { background: rgba(16,185,129,0.08); color: var(--success); border: 1px solid rgba(16,185,129,0.25); }
.badge--inactive { background: rgba(255,255,255,0.03); color: var(--text3); border: 1px solid var(--border); }

/* ===== HOMEPAGE ===== */
.hero {
  min-height: 90vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 100px 24px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(124,58,237,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(59,130,246,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 35% 30% at 10% 50%, rgba(167,139,250,0.12) 0%, transparent 60%);
}
.hero__content { position: relative; z-index: 1; max-width: 800px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.25);
  padding: 8px 20px; border-radius: 99px; font-size: 0.85rem; font-weight: 600;
  color: var(--primary2); margin-bottom: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  animation: fadeIn .8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__title { margin-bottom: 24px; font-size: clamp(2.5rem, 7vw, 4.5rem); animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1); }
.hero__title span { background: linear-gradient(135deg, #fff 10%, var(--primary2) 60%, var(--blue2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero__desc { font-size: 1.2rem; color: var(--text2); margin-bottom: 44px; max-width: 550px; margin-left: auto; margin-right: auto; line-height: 1.7; animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.hero__actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; animation: fadeIn 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
.hero__stats { display: flex; gap: 50px; justify-content: center; margin-top: 80px; animation: fadeIn 1.6s cubic-bezier(0.16, 1, 0.3, 1); }
.hero__stat-num { font-size: 2.25rem; font-weight: 900; background: linear-gradient(135deg, #fff, var(--primary2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero__stat-label { font-size: 0.85rem; color: var(--text2); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

.features { padding: 120px 0; position: relative; }
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 64px; }
.feature-card { padding: 40px; position: relative; overflow: hidden; border-radius: var(--radius); }
.feature-card__icon { font-size: 3rem; margin-bottom: 24px; display: inline-block; transition: transform .3s ease; }
.feature-card:hover .feature-card__icon { transform: scale(1.15) rotate(5deg); }
.feature-card__title { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }
.feature-card__desc { color: var(--text2); font-size: 0.95rem; line-height: 1.6; }
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.04), rgba(59,130,246,0.04));
  opacity: 0; transition: opacity .4s ease;
}
.feature-card:hover::before { opacity: 1; }

.section-eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary2), var(--blue2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.section-title { margin-bottom: 20px; font-weight: 900; }
.section-desc { color: var(--text2); font-size: 1.1rem; max-width: 550px; line-height: 1.7; }

/* ===== DASHBOARD ===== */
.page { padding: 60px 0; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 44px; flex-wrap: wrap; }
.page-title { font-size: 2.25rem; font-weight: 900; }
.page-subtitle { color: var(--text2); margin-top: 6px; }

.profiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.profile-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(255, 255, 255, 0.01); border: 1px solid var(--border);
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.profile-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--border2); }
.profile-card__header {
  height: 90px; display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 0 24px; position: relative;
}
.profile-card__avatar {
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem; font-weight: 800; color: #fff;
  border: 4px solid var(--bg2);
  position: absolute; bottom: -34px; left: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  background: var(--bg3);
}
.profile-card__body { padding: 46px 24px 24px; }
.profile-card__name { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.profile-card__username { font-size: 0.88rem; color: var(--text2); margin-bottom: 12px; }
.profile-card__bio { font-size: 0.92rem; color: var(--text2); margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 44px; }
.profile-card__meta { font-size: 0.82rem; color: var(--text3); margin-bottom: 20px; font-weight: 500; }
.profile-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.empty-state {
  text-align: center; padding: 100px 24px; max-width: 440px; margin: 0 auto;
}
.empty-state__icon { font-size: 4.5rem; margin-bottom: 24px; opacity: 0.4; }
.empty-state__title { font-size: 1.45rem; font-weight: 800; margin-bottom: 12px; }
.empty-state__desc { color: var(--text2); margin-bottom: 28px; line-height: 1.6; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(3, 4, 9, 0.75); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: all .35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 40px;
  width: 100%; max-width: 550px;
  transform: scale(0.96) translateY(15px);
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.modal__title { font-size: 1.35rem; font-weight: 800; }
.modal__close { background: none; border: none; color: var(--text2); cursor: pointer; font-size: 1.65rem; padding: 4px; border-radius: 10px; transition: all .2s; display: flex; }
.modal__close:hover { color: #fff; background: var(--surface2); }
.modal__form { display: flex; flex-direction: column; gap: 24px; }
.modal__footer { display: flex; gap: 12px; justify-content: flex-end; margin-top: 12px; }

/* ===== EDITOR PAGE ===== */
.editor-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.editor-preview { position: sticky; top: 110px; }

.phone-mockup {
  background: #020205; border: 8px solid var(--border2);
  border-radius: 50px; padding: 18px 12px; max-width: 350px; margin: 0 auto;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0,0,0,0.8);
  position: relative; overflow: hidden;
}
/* Dynamische Notch (Mockup Kopf) */
.phone-mockup::before {
  content: ''; position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%); width: 110px; height: 26px;
  background: var(--bg); border-radius: 20px; z-index: 10;
}
.phone-mockup__screen { border-radius: 36px; overflow: hidden; min-height: 580px; position: relative; }

.preview-profile {
  padding: 50px 18px 40px; text-align: center; min-height: 580px;
  display: flex; flex-direction: column; align-items: center;
}
.preview-avatar {
  width: 86px; height: 86px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.25rem; font-weight: 800; color: #fff;
  margin: 12px auto 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.2);
}
.preview-name { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.preview-bio  { font-size: 0.88rem; opacity: .85; margin-bottom: 28px; line-height: 1.5; color: rgba(255,255,255,0.9); }
.preview-link {
  display: block; padding: 15px 24px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.08); color: #fff; font-weight: 600;
  font-size: 0.92rem; margin-bottom: 12px; text-align: center;
  backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all .25s ease; text-decoration: none; width: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.preview-link:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.links-section { margin-top: 40px; }
.links-section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.link-item {
  background: rgba(255,255,255,0.01); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px; transition: all .25s ease;
}
.link-item:hover { border-color: var(--border2); transform: translateX(2px); }
.link-item__icon { font-size: 1.65rem; flex-shrink: 0; display: flex; align-items: center; }
.link-item__info { flex: 1; min-width: 0; }
.link-item__title { font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.link-item__url   { font-size: 0.82rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-item__actions { display: flex; gap: 8px; flex-shrink: 0; }
.link-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.link-dot--active   { background: var(--success); box-shadow: 0 0 10px var(--success); }
.link-dot--inactive { background: var(--text3); }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
}
.login-page__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(124, 58, 237, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 75% 60%, rgba(59, 130, 246, 0.12) 0%, transparent 65%);
}
.login-card {
  position: relative; z-index: 1; width: 100%; max-width: 460px;
  background: rgba(255, 255, 255, 0.01); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 56px 48px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}
.login-logo {
  font-size: 2.25rem; font-weight: 900; text-align: center; margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 10%, var(--primary2) 60%, var(--blue2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}
.login-subtitle { text-align: center; color: var(--text2); font-size: 0.95rem; margin-bottom: 40px; }
.login-form { display: flex; flex-direction: column; gap: 24px; }

/* ===== PUBLIC PROFILE PAGE ===== */
.pub-profile {
  min-height: 100vh; display: flex; align-items: flex-start; justify-content: center;
  padding: 80px 24px;
}
.pub-profile__card {
  width: 100%; max-width: 540px;
  text-align: center;
}
.pub-avatar {
  width: 105px; height: 105px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.65rem; font-weight: 800; color: #fff;
  margin: 0 auto 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  border: 3px solid rgba(255,255,255,0.15);
}
.pub-name { font-size: 1.9rem; font-weight: 900; margin-bottom: 10px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); letter-spacing: -0.01em; }
.pub-bio  { font-size: 1.05rem; color: rgba(255,255,255,0.85); margin-bottom: 40px; max-width: 380px; margin-left: auto; margin-right: auto; line-height: 1.6; text-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.pub-link {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 28px; border-radius: var(--radius);
  background: rgba(255,255,255,0.06); color: #fff; font-weight: 600;
  font-size: 1.02rem; margin-bottom: 16px; text-align: left;
  backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.12);
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.pub-link:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}
.pub-link__icon { font-size: 1.65rem; flex-shrink: 0; display: flex; align-items: center; }
.pub-link__label { flex: 1; text-align: center; }
.pub-link__arrow { opacity: 0.6; font-size: 0.95rem; transition: transform .25s ease; }
.pub-link:hover .pub-link__arrow { transform: translate(2px, -2px); }
.pub-footer {
  margin-top: 50px; font-size: 0.85rem; color: rgba(255,255,255,0.45);
}
.pub-footer a { color: rgba(255,255,255,0.65); font-weight: 500; }
.pub-footer a:hover { color: #fff; }
.pub-404 { text-align: center; padding: 120px 24px; color: rgba(255,255,255,0.8); }
.pub-404 h2 { font-size: 2.25rem; margin-bottom: 16px; color: #fff; font-weight: 900; }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); margin: 36px 0; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.tab {
  padding: 14px 24px; font-size: 0.92rem; font-weight: 600; cursor: pointer;
  border: none; background: none; color: var(--text2);
  border-bottom: 2px solid transparent; transition: all .25s; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary2); border-bottom-color: var(--primary2); text-shadow: 0 0 10px rgba(167,139,250,0.2); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse  { 0%,100%{opacity:1;} 50%{opacity:.6;} }

.fade-in { animation: fadeIn .6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fade-in-1 { animation: fadeIn .6s .1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fade-in-2 { animation: fadeIn .6s .2s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fade-in-3 { animation: fadeIn .6s .3s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ===== TOOLTIP ===== */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--bg3); color: var(--text); font-size: 0.78rem; white-space: nowrap;
  padding: 6px 12px; border-radius: 8px; pointer-events: none;
  opacity: 0; transition: opacity .2s; border: 1px solid var(--border2);
  box-shadow: var(--shadow);
}
[data-tooltip]:hover::after { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .editor-layout { grid-template-columns: 1fr; }
  .editor-preview { position: static; margin-bottom: 40px; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .form-row--3 { grid-template-columns: 1fr; }
  .hero__stats { gap: 30px; flex-wrap: wrap; }
  .login-card { padding: 44px 32px; }
}
