:root {
  color-scheme: dark;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, #161616 0%, #080808 45%, #040404 100%);
  color: #f7f7f7;
  min-height: 100vh;
  transition: color 180ms ease, background-color 180ms ease;
}

.glass-nav {
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.glass-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  border-radius: 24px;
  backdrop-filter: blur(24px);
}

.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.badge-glow {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: #d9c7ff;
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff, #d9c7ff);
  color: #080808;
  border: 0;
  box-shadow: 0 10px 24px rgba(255,255,255,0.12);
}

.btn-outline-light {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.btn,
.btn-outline-light,
.premium-action-btn,
.premium-social-chip,
.premium-link-item,
.premium-footer-action-btn,
.nav-link,
.form-control,
.form-select,
.form-control-color,
.accordion-button,
.dropdown-toggle,
.dropdown-menu .dropdown-item {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
  position: relative;
  overflow: hidden;
}

.btn:hover,
.btn-outline-light:hover,
.premium-action-btn:hover,
.premium-social-chip:hover,
.premium-link-item:hover,
.premium-footer-action-btn:hover,
.nav-link:hover,
.accordion-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.btn:active,
.btn-outline-light:active,
.premium-action-btn:active,
.premium-social-chip:active,
.premium-link-item:active,
.premium-footer-action-btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn:focus-visible,
.btn-outline-light:focus-visible,
.premium-action-btn:focus-visible,
.premium-social-chip:focus-visible,
.premium-link-item:focus-visible,
.premium-footer-action-btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.accordion-button:focus-visible {
  outline: 2px solid rgba(255,255,255,0.55);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.12);
}

.btn:disabled,
.btn-outline-light:disabled,
.premium-action-btn:disabled,
.premium-social-chip:disabled,
.premium-link-item:disabled,
.premium-footer-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.card-preview {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.12);
}

.premium-profile-card,
.glass-card,
.card,
.theme-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.premium-profile-card {
  width: 100%;
  max-width: 820px;
  margin: 40px auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  isolation: isolate;
  background: var(--theme-bg, linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)));
  color: var(--theme-text, #fff);
}

/* allow absolute positioning context for identity/avatar alignment tweaks */
.premium-profile-card {
  position: relative;
}

.premium-profile-card:hover,
.glass-card:hover,
.card:hover,
.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 90px rgba(0,0,0,0.34);
}

.premium-profile-cover {
  position: relative;
  width: 100%;
  min-height: 220px;
  padding: 24px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border-radius: 24px 24px 0 0;
  overflow: visible;
  transition: transform 220ms ease, opacity 220ms ease;
  opacity: 0.96;
}

.premium-profile-cover.is-loaded {
  opacity: 1;
}

.premium-profile-avatar-wrap {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  transform: none;
  width: 220px;
  height: 220px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.premium-profile-avatar {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity 280ms ease, transform 280ms ease;
}

.premium-profile-avatar.is-loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.premium-profile-content {
  padding: 8px 24px 32px 24px;
  margin-top: 0;
  background: transparent;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.premium-profile-identity {
  margin: 0 0 18px 0;
  padding-top: 0;
  text-align: center;
  width: 100%;
}

.premium-profile-info {
  flex: 1;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.premium-profile-identity,
.premium-profile-info {
  align-items: flex-start;
}

.premium-profile-name,
.premium-profile-subtitle,
.premium-profile-company,
.premium-profile-bio,
.premium-profile-note,
.premium-profile-meta {
  text-align: center;
}

.premium-profile-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.premium-profile-name {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.15rem;
  margin-top: 0;
  color: var(--theme-text, #fff);
  word-break: break-word;
}

.premium-profile-subtitle,
.premium-profile-company {
  margin-bottom: 0;
  color: var(--theme-muted, #d5d7df);
  font-weight: 500;
  opacity: 0.95;
}

.premium-profile-qr {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.premium-profile-qr-image {
  width: 148px;
  height: 148px;
  border-radius: 22px;
  padding: 0.55rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 280ms ease, transform 280ms ease;
}

.premium-profile-qr-image.is-loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.premium-profile-body {
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.premium-profile-bio {
  color: var(--theme-text, #f3f4f6);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 720px;
}

.premium-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.45rem;
  justify-content: center;
}

.premium-action-btn {
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  min-width: 140px;
  justify-content: center;
  color: var(--theme-text, #fff);
  background: rgba(0,0,0,0.36);
  border: 1px solid rgba(255,255,255,0.06);
}

.premium-profile-socials,
.premium-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.premium-social-chip,
.premium-link-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(0,0,0,0.36);
  color: var(--theme-text, #fff);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.premium-social-chip:hover,
.premium-link-item:hover,
.premium-action-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.16);
  color: var(--theme-text, #000);
}

.premium-link-item {
  border-radius: 12px;
  justify-content: flex-start;
  width: 100%;
  padding: 0.9rem 1.05rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}

.premium-profile-footer {
  border-top: none;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}

.premium-profile-note {
  color: var(--theme-text, #f3f4f6);
}

.premium-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  color: var(--theme-muted, #d5d7df);
}

.premium-meta-link {
  color: var(--theme-text, #fff);
  text-decoration: none;
}

.premium-profile-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.premium-footer-action-btn {
  min-width: 120px;
}

.contact-list-row {
  display: flex;
  gap: 0.5rem;
}

.contact-list-row .btn {
  flex-shrink: 0;
}

.modal-content.glass-card {
  background: rgba(8, 8, 8, 0.88);
}

.modal .btn-close-white {
  filter: invert(1);
}

@media (max-width: 768px) {
  .premium-profile-cover {
    min-height: 180px;
    padding: 16px 0 6px;
  }

  .premium-profile-avatar {
    width: 148px;
    height: 148px;
  }

  .premium-profile-avatar-wrap {
    width: 148px;
    height: 148px;
    margin: 0 auto;
  }

  .premium-profile-content {
    padding: 12px 16px 24px 16px;
    margin-top: 0;
    display: flex;
    align-items: center;
    text-align: center;
  }

  .premium-profile-identity {
    margin: 0 0 14px 0;
    padding-top: 0;
    text-align: center;
  }

  .premium-profile-info {
    padding: 0;
  }

  .premium-profile-name {
    font-size: 1.45rem;
  }

  .premium-profile-body {
    padding: 0;
    align-items: center;
  }

  .premium-profile-footer {
    border-top: none;
    padding-top: 0;
  }
}

.form-control, .form-select, .form-control-color {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
}

.nav-pills .nav-link {
  color: #d8dce6;
  border-radius: 999px;
  margin: 0.2rem;
  padding: 0.5rem 0.8rem;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
}

.dashboard-sidebar {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow: auto;
  border-radius: 32px;
}

.dashboard-sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-user-avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.dashboard-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-nav {
  display: grid;
  gap: 0.4rem;
}

.dashboard-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #e2e8f0;
  text-decoration: none;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  transition: background 220ms ease, transform 220ms ease;
}

.dashboard-sidebar-item:hover,
.dashboard-sidebar-item--active {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateX(1px);
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-hero {
  border-radius: 32px;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-stat-card {
  min-height: 130px;
  border-radius: 28px;
}

.dashboard-stat-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
}

.dashboard-search .input-group-text {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.dashboard-search .form-control {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.dashboard-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dashboard-filter-group .btn {
  border-radius: 999px;
}

.dashboard-sort select {
  min-width: 170px;
}

.dashboard-empty-state {
  border-radius: 28px;
  border: 1px dashed rgba(255,255,255,0.18);
}

.dashboard-empty-icon {
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  color: #d8c8ff;
  font-size: 2.5rem;
}

.dashboard-card-row {
  border-radius: 28px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.dashboard-card-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.dashboard-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
}

.dashboard-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dashboard-card-actions .btn,
.dashboard-card-actions .dropdown-toggle {
  margin-left: 0.35rem;
}

.dashboard-dropdown {
  min-width: 220px;
  border-radius: 18px;
  background: rgba(12,12,12,0.98);
  backdrop-filter: blur(18px);
}

.dashboard-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(15,15,15,0.95);
  color: #fff;
  padding: 0.95rem 1.2rem;
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 1100;
}

.dashboard-toast--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.shadow-soft {
  box-shadow: 0 28px 70px rgba(0,0,0,0.24);
}

.btn-glow {
  box-shadow: 0 16px 40px rgba(217,199,255,0.22);
}

@media (max-width: 1199px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }
}

@media (max-width: 767px) {
  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
  }
}

.nav-pills .nav-link.active {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.tab-pane.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.alert-secondary {
  background: rgba(255,255,255,0.08);
  color: #f3f4f6;
  border: 1px solid rgba(255,255,255,0.12);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-control.social-url-input::placeholder,
.form-control.social-url-input::-webkit-input-placeholder,
.form-control.social-url-input::-moz-placeholder,
.form-control.social-url-input:-ms-input-placeholder,
.form-control.social-url-input::-ms-input-placeholder {
  color: #ffffff !important;
  opacity: 1 !important;
}

.accordion-button {
  background: transparent;
  color: #fff;
}

.accordion-button:not(.collapsed) {
  background: rgba(255,255,255,0.08);
  color: #0c0c0c;
}

.text-muted { color: #a9a9b3 !important; }

.theme-aurora {
  --theme-bg: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
  --theme-surface: rgba(255,255,255,0.06);
  --theme-border: rgba(255,255,255,0.12);
  --theme-text: #f7f7f7;
  --theme-muted: #a9a9b3;
  --theme-accent: #d9c7ff;
  --theme-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.theme-executive-dark {
  --theme-bg: linear-gradient(135deg, #0c0c0c, #181818);
  --theme-surface: rgba(255,255,255,0.05);
  --theme-border: rgba(255,255,255,0.12);
  --theme-text: #f1e9d5;
  --theme-muted: #b9aa80;
  --theme-accent: #c7a96b;
  --theme-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.theme-glassmorphism {
  --theme-bg: linear-gradient(135deg, rgba(255,255,255,0.20), rgba(255,255,255,0.06));
  --theme-surface: rgba(255,255,255,0.12);
  --theme-border: rgba(255,255,255,0.2);
  --theme-text: #ffffff;
  --theme-muted: #dce8ff;
  --theme-accent: #8cc9ff;
  --theme-shadow: 0 24px 60px rgba(45, 95, 140, 0.25);
}

.theme-minimal-white {
  --theme-bg: linear-gradient(135deg, #f7f7f7, #eeeeee);
  --theme-surface: rgba(255,255,255,0.92);
  --theme-border: rgba(16,16,16,0.1);
  --theme-text: #111111;
  --theme-muted: #666666;
  --theme-accent: #111111;
  --theme-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.theme-royal-blue {
  --theme-bg: linear-gradient(135deg, #071b2d, #123a63);
  --theme-surface: rgba(255,255,255,0.06);
  --theme-border: rgba(255,255,255,0.16);
  --theme-text: #f4f8ff;
  --theme-muted: #a8c7ee;
  --theme-accent: #72b7ff;
  --theme-shadow: 0 24px 60px rgba(3, 18, 35, 0.35);
}

.theme-emerald {
  --theme-bg: linear-gradient(135deg, #06231b, #0f4b3d);
  --theme-surface: rgba(255,255,255,0.06);
  --theme-border: rgba(255,255,255,0.16);
  --theme-text: #f2fff8;
  --theme-muted: #a8e3c4;
  --theme-accent: #57d28b;
  --theme-shadow: 0 24px 60px rgba(2, 28, 24, 0.32);
}

.theme-midnight-gold {
  --theme-bg: linear-gradient(135deg, #0a0705, #22160c);
  --theme-surface: rgba(255,255,255,0.05);
  --theme-border: rgba(230,190,95,0.16);
  --theme-text: #f8efcf;
  --theme-muted: #b89b61;
  --theme-accent: #d8b35a;
  --theme-shadow: 0 24px 60px rgba(0,0,0,0.42);
}

.theme-soft-beige {
  --theme-bg: linear-gradient(135deg, #f5ebdc, #efe0c5);
  --theme-surface: rgba(255,255,255,0.84);
  --theme-border: rgba(82, 60, 24, 0.12);
  --theme-text: #312311;
  --theme-muted: #7d6a4f;
  --theme-accent: #8b6a3b;
  --theme-shadow: 0 16px 36px rgba(80, 54, 22, 0.12);
}

.theme-modern-gradient {
  --theme-bg: linear-gradient(135deg, #1c1235, #2d4a94);
  --theme-surface: rgba(255,255,255,0.06);
  --theme-border: rgba(255,255,255,0.16);
  --theme-text: #ffffff;
  --theme-muted: #c9d5ff;
  --theme-accent: #ff9d6c;
  --theme-shadow: 0 24px 60px rgba(22, 18, 46, 0.32);
}

.theme-frosted-glass {
  --theme-bg: linear-gradient(135deg, rgba(22,42,64,0.75), rgba(37,61,90,0.65));
  --theme-surface: rgba(255,255,255,0.13);
  --theme-border: rgba(255,255,255,0.22);
  --theme-text: #f7fbff;
  --theme-muted: #cce0f7;
  --theme-accent: #ffffff;
  --theme-shadow: 0 24px 60px rgba(10, 18, 27, 0.3);
}

.theme-elegant-purple {
  --theme-bg: linear-gradient(135deg, #220d31, #5e2b7d);
  --theme-surface: rgba(255,255,255,0.06);
  --theme-border: rgba(255,255,255,0.16);
  --theme-text: #f8ebff;
  --theme-muted: #dabbf7;
  --theme-accent: #d6acff;
  --theme-shadow: 0 24px 60px rgba(32, 10, 48, 0.34);
}

.theme-alloy-midnight {
  --theme-bg: #0B1220;
  --theme-surface: #151E2F;
  --theme-border: #27344B;
  --theme-text: #FFFFFF;
  --theme-muted: #AEB7C5;
  --theme-accent: #2F80ED;
  --theme-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.theme-graphite {
  --theme-bg: #1A1A1A;
  --theme-surface: #242424;
  --theme-border: #404040;
  --theme-text: #FFFFFF;
  --theme-muted: #B0B0B0;
  --theme-accent: #6D7C92;
  --theme-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.theme-titanium {
  --theme-bg: #E8EAED;
  --theme-surface: #F4F5F6;
  --theme-border: #D6D9DD;
  --theme-text: #1B1B1B;
  --theme-muted: #6A6A6A;
  --theme-accent: #8A99A8;
  --theme-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.theme-sapphire {
  --theme-bg: #0C1D4F;
  --theme-surface: #132B73;
  --theme-border: #2956C7;
  --theme-text: #FFFFFF;
  --theme-muted: #D7E6FF;
  --theme-accent: #3F8CFF;
  --theme-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* New classy themes */
.theme-sapphire-night {
  --theme-bg: linear-gradient(135deg, #071428, #0b2b4a);
  --theme-surface: rgba(255,255,255,0.04);
  --theme-border: rgba(255,255,255,0.08);
  --theme-text: #e8f4ff;
  --theme-muted: #a9cbe6;
  --theme-accent: #3db0ff;
  --theme-shadow: 0 24px 60px rgba(3, 12, 30, 0.4);
}

.theme-sunset-blush {
  --theme-bg: linear-gradient(135deg, #ffefe6, #ffd0c2);
  --theme-surface: rgba(255,255,255,0.94);
  --theme-border: rgba(0,0,0,0.06);
  --theme-text: #2d1c16;
  --theme-muted: #7a5a50;
  --theme-accent: #ff7a6b;
  --theme-shadow: 0 18px 48px rgba(0,0,0,0.08);
}

.theme-monochrome-minimal {
  --theme-bg: linear-gradient(135deg, #ffffff, #f2f2f2);
  --theme-surface: rgba(255,255,255,0.98);
  --theme-border: rgba(0,0,0,0.06);
  --theme-text: #111111;
  --theme-muted: #6b6b6b;
  --theme-accent: #111111;
  --theme-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.theme-platinum {
  --theme-bg: linear-gradient(135deg, #f5f7fa, #e9eef6);
  --theme-surface: rgba(255,255,255,0.96);
  --theme-border: rgba(34,34,34,0.06);
  --theme-text: #0f1720;
  --theme-muted: #6b7280;
  --theme-accent: #a3b8ff;
  --theme-shadow: 0 18px 44px rgba(10,18,30,0.06);
}

.theme-deep-olive {
  --theme-bg: linear-gradient(135deg, #07130a, #17321a);
  --theme-surface: rgba(255,255,255,0.04);
  --theme-border: rgba(255,255,255,0.06);
  --theme-text: #eef8ef;
  --theme-muted: #9cc9a4;
  --theme-accent: #78c08a;
  --theme-shadow: 0 24px 60px rgba(2, 10, 6, 0.4);
}

/* Logo sizing helper */
.site-logo {
  height: 36px;
  width: auto;
  display: inline-block;
}

/* Text-based site logo using Anonymous Pro */
.site-text-logo {
  font-family: 'Anonymous Pro', ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Segoe UI', monospace;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-block;
}
.site-text-logo:hover {
  text-decoration: none;
  color: #d9c7ff;
}

.theme-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow);
  color: var(--theme-text);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.theme-card .btn-outline-light,
.theme-card .btn-primary {
  border-color: var(--theme-border);
  color: var(--theme-text);
}

.theme-card .btn-primary {
  background: var(--theme-accent);
  color: #111111;
}

.theme-card .premium-social-chip,
.theme-card .premium-link-item,
.theme-card .premium-action-btn {
  background: var(--theme-surface);
  color: var(--theme-text);
  border-color: var(--theme-border);
}

.theme-card:hover {
  border-color: color-mix(in srgb, var(--theme-accent) 38%, var(--theme-border));
  box-shadow: 0 24px 72px rgba(0,0,0,0.24);
}

.modal.fade .modal-dialog {
  transition: transform 220ms ease, opacity 220ms ease;
  transform: translateY(16px) scale(0.98);
}

.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

.dropdown-menu,
.toast {
  animation: premiumFadeIn 220ms ease;
}

.btn::after,
.premium-action-btn::after,
.premium-social-chip::after,
.premium-link-item::after,
.premium-footer-action-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
  transform: scale(0.4);
  opacity: 0;
  transition: transform 240ms ease, opacity 180ms ease;
  pointer-events: none;
}

.btn:active::after,
.premium-action-btn:active::after,
.premium-social-chip:active::after,
.premium-link-item:active::after,
.premium-footer-action-btn:active::after {
  transform: scale(1.1);
  opacity: 0.35;
}

@keyframes premiumFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.layout-classic-vertical .card-main {
  display: block;
}

.layout-executive-horizontal .card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.layout-centered-profile .card-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.layout-modern-split .card-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.layout-premium-portfolio .card-main {
  display: block;
}

.layout-creative-agency .card-main {
  display: block;
}

.layout-minimal-corporate .card-main {
  display: block;
}

.layout-luxury-business .card-main {
  display: block;
}

/* Premium Edit Form Styles */
.premium-edit-card-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.premium-edit-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(24px);
  flex: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.form-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
  margin-top: 24px;
}

.form-section-title:first-of-type {
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 0;
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-col-full {
  display: flex;
  flex-direction: column;
  gap: 16px;
  grid-column: 1 / -1;
}

.form-row:has(.form-col-full) {
  grid-template-columns: 1fr;
}

.form-label-premium {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  margin: 0;
  display: block;
}

.form-label-premium .required {
  color: #ef4444;
}

.form-control-premium,
.form-textarea-premium {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 1rem;
  font-family: inherit;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  width: 100%;
  box-sizing: border-box;
}

.form-control-premium {
  height: 50px;
  display: flex;
  align-items: center;
}

.form-control-premium::placeholder,
.form-textarea-premium::placeholder,
.premium-edit-form .form-control-premium::placeholder,
.premium-edit-form .form-textarea-premium::placeholder,
.premium-edit-form .form-control-premium::-webkit-input-placeholder,
.premium-edit-form .form-textarea-premium::-webkit-input-placeholder,
.premium-edit-form .form-control-premium::-moz-placeholder,
.premium-edit-form .form-textarea-premium::-moz-placeholder,
.premium-edit-form .form-control-premium:-ms-input-placeholder,
.premium-edit-form .form-textarea-premium:-ms-input-placeholder,
.premium-edit-form .form-control-premium::-ms-input-placeholder,
.premium-edit-form .form-textarea-premium::-ms-input-placeholder {
  color: #A4A4A4 !important;
  opacity: 1 !important;
}

.form-control-premium:focus,
.form-textarea-premium:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.form-textarea-premium {
  min-height: 140px;
  padding: 12px 16px;
  resize: vertical;
}

.form-helper-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.btn-submit-premium {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #ffffff, #d9c7ff);
  color: #080808;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 32px;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.12);
}

.btn-submit-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.16);
}

.btn-submit-premium:active {
  transform: translateY(0);
}

.premium-preview-section {
  flex: 1;
  min-width: 0;
}

.premium-preview-section .glass-card {
  position: sticky;
  top: 2rem;
}

/* Responsive: Stack on tablet and mobile */
@media (max-width: 1199px) {
  .premium-edit-card-wrapper {
    flex-direction: column;
    gap: 0;
  }

  .premium-preview-section {
    order: -1;
  }

  .premium-preview-section .glass-card {
    position: static;
  }
}

/* Mobile responsive: Stack form fields */
@media (max-width: 767px) {
  .premium-edit-card-wrapper {
    max-width: 100%;
    padding: 1rem;
  }

  .premium-edit-form {
    padding: 20px;
    border-radius: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-section-title {
    margin-bottom: 16px;
  }

  .btn-submit-premium {
    margin-top: 24px;
    height: 48px;
  }
}
