/* vCardPro — Corporate Design System
 * Unique, polished, animated. Built ground-up.
 */

:root {
  /* Brand palette — corporate with personality */
  --brand-50:  #eef4ff;
  --brand-100: #dce7ff;
  --brand-200: #b9ceff;
  --brand-300: #8fafff;
  --brand-400: #5d85ff;
  --brand-500: #3b5bff;
  --brand-600: #2a3df0;
  --brand-700: #2028c8;
  --brand-800: #1d27a0;
  --brand-900: #1c2584;
  --brand-950: #141758;

  --accent-300: #fba475;
  --accent-500: #ec6a3a;
  --accent-600: #d24d22;

  /* Slate */
  --slate-0:   #ffffff;
  --slate-50:  #f6f8fb;
  --slate-100: #eceff5;
  --slate-200: #d9deea;
  --slate-300: #b9c1d4;
  --slate-400: #8c95ad;
  --slate-500: #5d677e;
  --slate-600: #3e475c;
  --slate-700: #2a3142;
  --slate-800: #1b2030;
  --slate-900: #10131c;

  /* Semantic */
  --success: #1e9a55;
  --warn: #d98a08;
  --danger: #d3324a;

  /* Effects */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(16,19,28,.04), 0 1px 4px rgba(16,19,28,.06);
  --shadow-md: 0 4px 14px rgba(16,19,28,.06), 0 8px 28px rgba(16,19,28,.10);
  --shadow-lg: 0 10px 30px rgba(16,19,28,.10), 0 20px 60px rgba(16,19,28,.14);
  --shadow-glow: 0 0 0 4px rgba(59,91,255,.18);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--slate-50);
  color: var(--slate-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14.5px;
  line-height: 1.5;
}

/* ---------- Brand bar / chrome ---------- */
.vc-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.vc-side {
  background: linear-gradient(180deg, var(--slate-900) 0%, #0a0d18 100%);
  color: var(--slate-100);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vc-side .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 18px 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 14px;
}
.vc-side .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(236,106,58,.4);
}
.vc-side .brand-name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.vc-side .brand-sub { color: rgba(255,255,255,.5); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.vc-nav { display: flex; flex-direction: column; gap: 2px; }
.vc-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  position: relative;
}
.vc-nav a:hover { background: rgba(255,255,255,.06); color: white; }
.vc-nav a.active {
  background: linear-gradient(90deg, rgba(59,91,255,.22), rgba(59,91,255,.05));
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.vc-nav a.active::before {
  content: '';
  position: absolute; left: -16px; top: 6px; bottom: 6px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--brand-400), var(--accent-500));
}
.vc-nav .vc-nav-icon { width: 18px; height: 18px; flex-shrink: 0; }

.vc-side-foot {
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 10px;
}
.vc-side-foot .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  display: grid; place-items: center; color: white; font-weight: 700;
}
.vc-side-foot .who { line-height: 1.2; font-size: 13px; }
.vc-side-foot .who small { color: rgba(255,255,255,.5); display: block; font-size: 11px; }

.vc-main { min-width: 0; }
.vc-top {
  background: white;
  border-bottom: 1px solid var(--slate-100);
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.vc-top h1 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.vc-top .crumbs { font-size: 12px; color: var(--slate-500); text-transform: uppercase; letter-spacing: .08em; }
.vc-top-actions { display: flex; gap: 8px; align-items: center; }
.vc-content { padding: 28px 32px 60px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border-radius: 9px;
  font-weight: 600; font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .1s ease, background .15s, color .15s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
  color: white;
  box-shadow: 0 2px 6px rgba(59,91,255,.32), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(59,91,255,.45), inset 0 1px 0 rgba(255,255,255,.25); }

.btn-ghost {
  background: var(--slate-100);
  color: var(--slate-700);
}
.btn-ghost:hover { background: var(--slate-200); }

.btn-outline {
  background: white;
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
}
.btn-outline:hover { border-color: var(--slate-300); background: var(--slate-50); }

.btn-danger { background: white; color: var(--danger); border: 1px solid #f7d3da; }
.btn-danger:hover { background: #fef1f3; }

.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 7px; }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 11px; }

/* ---------- Card ---------- */
.card {
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-body { padding: 22px; }
.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--slate-100);
  display: flex; align-items: center; justify-content: space-between;
}
.card-head h3 { margin: 0; font-size: 15px; font-weight: 700; }

/* ---------- Stat tile ---------- */
.stat {
  background: white;
  border-radius: var(--r-lg);
  padding: 18px 20px;
  border: 1px solid var(--slate-100);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-100), transparent 70%);
  opacity: .8;
}
.stat .stat-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  color: var(--brand-600);
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.stat .stat-label { color: var(--slate-500); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; position: relative; z-index: 1; }
.stat .stat-value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; position: relative; z-index: 1; color: var(--slate-900); }
.stat .stat-delta { font-size: 12px; margin-top: 6px; color: var(--success); font-weight: 600; position: relative; z-index: 1; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge-green { background: #d3f5e3; color: var(--success); }
.badge-amber { background: #fff4d6; color: var(--warn); }
.badge-slate { background: var(--slate-100); color: var(--slate-600); }
.badge-red { background: #fde0e4; color: var(--danger); }
.badge-blue { background: var(--brand-100); color: var(--brand-700); }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Form ---------- */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-row label { font-size: 12px; font-weight: 600; color: var(--slate-600); text-transform: uppercase; letter-spacing: .04em; }
.form-row .input,
.form-row .textarea,
.form-row .select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
  font-size: 14px;
  color: var(--slate-800);
  background: white;
  transition: border .15s, box-shadow .15s;
  font-family: inherit;
}
.form-row .input:focus, .form-row .textarea:focus, .form-row .select:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: var(--shadow-glow);
}
.form-row .textarea { min-height: 88px; resize: vertical; }
.form-row .hint { font-size: 12px; color: var(--slate-500); }

/* ---------- Auth split ---------- */
.vc-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: white;
}
.vc-auth .auth-form {
  padding: 56px 64px;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.vc-auth .auth-hero {
  position: relative;
  background: linear-gradient(135deg, var(--slate-900) 0%, #050817 100%);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 50px 60px;
  color: white;
}
.vc-auth .auth-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 12% 10%, rgba(59,91,255,.32), transparent 60%),
    radial-gradient(700px 500px at 92% 90%, rgba(236,106,58,.30), transparent 60%);
}
.vc-auth .auth-hero .blob {
  position: absolute;
  width: 360px; height: 360px; border-radius: 50%;
  filter: blur(60px); opacity: .35;
  animation: blobDrift 18s ease-in-out infinite alternate;
}
.vc-auth .auth-hero .blob.b1 { background: var(--brand-500); top: -80px; left: -80px; }
.vc-auth .auth-hero .blob.b2 { background: var(--accent-500); bottom: -100px; right: -80px; animation-delay: -6s; }
.vc-auth .auth-hero > * { position: relative; z-index: 1; }
.vc-auth .auth-hero h2 { font-size: 38px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
.vc-auth .auth-hero p { font-size: 16px; color: rgba(255,255,255,.75); max-width: 460px; }
.vc-auth .auth-hero .pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.vc-auth .auth-hero .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.85);
}
.vc-auth .auth-hero .pill svg { color: var(--brand-300); }
.vc-auth .auth-form h1 { font-size: 30px; letter-spacing: -.02em; margin: 0 0 8px; }
.vc-auth .auth-form .sub { color: var(--slate-500); margin-bottom: 28px; }

/* ---------- Public card page ---------- */
.vc-public {
  min-height: 100vh;
  background: linear-gradient(180deg, #f0f4ff 0%, #f8fafc 100%);
  display: grid; place-items: start center;
  padding: 36px 16px 80px;
  font-family: var(--font-sans);
  position: relative;
  overflow-x: hidden;
}
.vc-card-wrap {
  max-width: 420px; width: 100%;
  display: flex; flex-direction: column; gap: 18px;
  position: relative; z-index: 1;
}
.vc-card-phone {
  background: white;
  border-radius: 28px;
  box-shadow: 0 30px 80px -20px rgba(20,23,48,.25), 0 10px 40px -10px rgba(20,23,48,.18);
  overflow: hidden;
  position: relative;
  animation: fadeUp .5s ease backwards;
}
.vc-card-cover {
  height: 140px;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  position: relative;
  overflow: hidden;
}
.vc-card-cover::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(300px 200px at 80% 20%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(280px 180px at 10% 80%, rgba(0,0,0,.18), transparent 60%);
}
.vc-card-cover-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(255,255,255,.15) 2px, transparent 3px),
    radial-gradient(circle at 75% 70%, rgba(255,255,255,.10) 2px, transparent 3px);
  background-size: 30px 30px;
}
.vc-card-avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: white;
  border: 4px solid white;
  margin: -46px auto 0;
  display: grid; place-items: center;
  font-size: 36px; font-weight: 700;
  color: var(--brand-600);
  box-shadow: var(--shadow-md);
  position: relative; z-index: 2;
  letter-spacing: -.02em;
}
.vc-card-body { padding: 22px 22px 28px; text-align: center; }
.vc-card-name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 10px 0 4px; }
.vc-card-role { color: var(--slate-500); font-size: 14px; margin-bottom: 4px; }
.vc-card-org { color: var(--slate-700); font-weight: 600; font-size: 13px; }
.vc-card-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.vc-card-actions .act {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 0;
  border-radius: 14px;
  background: linear-gradient(180deg, white, var(--slate-50));
  border: 1px solid var(--slate-100);
  color: var(--brand-600);
  font-size: 11px; font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.vc-card-actions .act:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.vc-card-actions .act svg { width: 22px; height: 22px; }
.vc-card-section { padding: 22px; border-top: 1px solid var(--slate-100); text-align: left; }
.vc-card-section h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); font-weight: 700; margin: 0 0 12px; }
.vc-card-section p { color: var(--slate-700); font-size: 14px; line-height: 1.6; margin: 0; }
.vc-card-services { display: flex; flex-direction: column; gap: 10px; }
.vc-card-service { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--slate-50); border-radius: 10px; }
.vc-card-service .ic { width: 32px; height: 32px; border-radius: 8px; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; flex-shrink: 0; }
.vc-card-service .meta b { font-size: 13px; color: var(--slate-800); display: block; }
.vc-card-service .meta small { color: var(--slate-500); font-size: 12px; }
.vc-card-share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 22px 24px; }
.vc-card-share a { padding: 10px; border-radius: 10px; font-size: 12px; font-weight: 600; text-align: center; text-decoration: none; }

/* ===== TEMPLATE STYLE VARIANTS ===== */
/* Each variant overrides cover/body/avatar/sections to give a unique look */

/* Modern: gradient */
.tpl-modern .vc-card-phone { background: linear-gradient(180deg, white, #f0f4ff); }
.tpl-modern .vc-card-cover { background: linear-gradient(135deg, var(--brand-500), var(--accent-500)); height: 180px; }

/* Glass: dark glassmorphic */
.tpl-glass { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important; }
.tpl-glass .vc-card-phone { background: rgba(255,255,255,.05); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px rgba(0,0,0,.5); color: white; }
.tpl-glass .vc-card-cover { background: linear-gradient(135deg, var(--brand-500), var(--accent-500)); height: 100px; }
.tpl-glass .vc-card-avatar { background: rgba(255,255,255,.95); }
.tpl-glass .vc-card-name, .tpl-glass .vc-card-org { color: white; }
.tpl-glass .vc-card-role { color: rgba(255,255,255,.6); }
.tpl-glass .vc-card-section { border-color: rgba(255,255,255,.08) !important; }
.tpl-glass .vc-card-section h4 { color: rgba(255,255,255,.5) !important; }
.tpl-glass .vc-card-section p, .tpl-glass .vc-card-service .meta b { color: rgba(255,255,255,.9) !important; }
.tpl-glass .vc-card-service { background: rgba(255,255,255,.06); }
.tpl-glass .vc-card-actions .act { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: white; }
.tpl-glass .vc-card-actions .act svg { color: white; }

/* Aurora: deep gradient with animated lights */
.tpl-aurora { background: #0f172a !important; color: white; }
.tpl-aurora .vc-public-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 20% 20%, rgba(59,91,255,.5), transparent 60%),
    radial-gradient(700px 500px at 80% 80%, rgba(236,106,58,.45), transparent 65%);
  animation: blobDrift 12s ease-in-out infinite alternate;
  filter: blur(40px);
  z-index: 0;
}
.tpl-aurora .vc-card-phone { background: rgba(15,23,42,.85); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.08); color: white; }
.tpl-aurora .vc-card-name, .tpl-aurora .vc-card-org { color: white; }
.tpl-aurora .vc-card-role { color: rgba(255,255,255,.6); }
.tpl-aurora .vc-card-section { border-color: rgba(255,255,255,.08) !important; }
.tpl-aurora .vc-card-section h4 { color: rgba(255,255,255,.4) !important; }
.tpl-aurora .vc-card-section p { color: rgba(255,255,255,.85) !important; }
.tpl-aurora .vc-card-actions .act { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); color: white; }

/* Mesh: soft mesh gradient */
.tpl-mesh { background: linear-gradient(135deg, #fce7f3 0%, #ddd6fe 50%, #cffafe 100%) !important; }
.tpl-mesh .vc-card-phone { background: white; }
.tpl-mesh .vc-card-cover { background: linear-gradient(135deg, #a78bfa 0%, #f472b6 60%, #60a5fa 100%); }

/* Neon: black with neon edges */
.tpl-neon { background: #0f172a !important; color: white; }
.tpl-neon .vc-card-phone { background: #0f172a; border: 1px solid #22c55e; box-shadow: 0 0 60px rgba(34,197,94,.4); }
.tpl-neon .vc-card-cover { background: linear-gradient(135deg, #22c55e, #16a34a); height: 80px; }
.tpl-neon .vc-card-name, .tpl-neon .vc-card-org { color: white; text-shadow: 0 0 14px rgba(34,197,94,.5); }
.tpl-neon .vc-card-role { color: #4ade80; }
.tpl-neon .vc-card-section { border-color: rgba(34,197,94,.18) !important; }
.tpl-neon .vc-card-section h4 { color: #4ade80 !important; }
.tpl-neon .vc-card-section p { color: rgba(255,255,255,.85) !important; }

/* Particles: dark with floating dots */
.tpl-particles { background: #10131c !important; color: white; }
.tpl-particles .vc-card-phone { background: #1a1f2e; }
.tpl-particles .vc-card-cover { background: radial-gradient(ellipse at center, rgba(59,91,255,.4), transparent 70%), #1a1f2e; position: relative; }
.tpl-particles .vc-card-cover::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20px 30px, white, transparent), radial-gradient(1.5px 1.5px at 40px 70px, rgba(236,106,58,.8), transparent), radial-gradient(1px 1px at 90px 40px, white, transparent), radial-gradient(1.5px 1.5px at 130px 80px, rgba(59,91,255,.8), transparent), radial-gradient(2px 2px at 160px 30px, white, transparent); background-repeat: no-repeat; }
.tpl-particles .vc-card-name, .tpl-particles .vc-card-org { color: white; }
.tpl-particles .vc-card-role { color: rgba(255,255,255,.6); }

/* Blobs: animated morph */
.tpl-blobs .vc-card-cover { background: linear-gradient(135deg, #1e1b4b, #312e81); height: 160px; }
.tpl-blobs .vc-card-cover::before {
  content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: linear-gradient(45deg, #3b5bff, #22c55e); top: -50px; left: -50px;
  filter: blur(30px); opacity: .7; animation: blobDrift 7s ease-in-out infinite;
}
.tpl-blobs .vc-card-cover::after {
  content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: linear-gradient(45deg, #ec6a3a, #fbbf24); bottom: -80px; right: -50px;
  filter: blur(30px); opacity: .6; animation: blobDrift 7s ease-in-out -3.5s infinite;
}

/* Spotlight */
.tpl-spotlight { background: #10131c !important; color: white; }
.tpl-spotlight .vc-card-phone { background: #10131c; background-image: radial-gradient(ellipse at top, var(--brand-700) 0%, transparent 60%); }
.tpl-spotlight .vc-card-name { color: white; }
.tpl-spotlight .vc-card-cover { height: 60px; background: transparent; }

/* Crystal */
.tpl-crystal { background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 50%, #fbcfe8 100%) !important; }
.tpl-crystal .vc-card-phone { background: rgba(255,255,255,.75); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.5); }
.tpl-crystal .vc-card-cover { background: linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,.1)); backdrop-filter: blur(8px); }

/* Liquid */
.tpl-liquid { background: linear-gradient(135deg, #06b6d4, #3b5bff) !important; color: white; }
.tpl-liquid .vc-card-phone { background: rgba(255,255,255,.95); }

/* Pastel */
.tpl-pastel { background: linear-gradient(135deg, #fce7f3 0%, #dbeafe 50%, #dcfce7 100%) !important; }
.tpl-pastel .vc-card-cover { background: linear-gradient(135deg, #f472b6 0%, #60a5fa 50%, #34d399 100%); }
.tpl-pastel .vc-card-avatar { border: 4px solid white; }

/* Prism */
.tpl-prism { background: #0f172a !important; }
.tpl-prism .vc-public-bg {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg at 50% 50%, #3b5bff 0deg, #ec6a3a 120deg, #22c55e 240deg, #3b5bff 360deg);
  opacity: .25; filter: blur(60px); z-index: 0;
  animation: spin 30s linear infinite;
}
.tpl-prism .vc-card-phone { background: rgba(15,23,42,.92); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.08); color: white; }
.tpl-prism .vc-card-name { color: white; }
.tpl-prism .vc-card-cover { background: linear-gradient(135deg, rgba(59,91,255,.7), rgba(236,106,58,.7)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Mono variations */
.tpl-mono { background: #10131c !important; color: white; }
.tpl-mono .vc-card-phone { background: #10131c; border: 1px solid #2a3142; }
.tpl-mono .vc-card-cover { background: #1b2030; height: 60px; }
.tpl-mono .vc-card-name { color: white; }
.tpl-mono .vc-card-role { color: rgba(255,255,255,.5); }
.tpl-mono .vc-card-org { color: rgba(255,255,255,.7); }
.tpl-mono .vc-card-section { border-color: #2a3142 !important; }
.tpl-mono .vc-card-section h4 { color: rgba(255,255,255,.5) !important; }
.tpl-mono .vc-card-section p { color: rgba(255,255,255,.85) !important; }
.tpl-mono .vc-card-service { background: #1b2030; }
.tpl-mono .vc-card-service .ic { background: rgba(255,255,255,.08); color: white; }
.tpl-mono .vc-card-actions .act { background: #1b2030; border-color: #2a3142; color: white; }
.tpl-mono .vc-card-actions .act svg { color: white; }

.tpl-mono-dark { background: #0f172a !important; color: white; }
.tpl-mono-dark .vc-card-phone { background: #0f172a; border: 1px solid #1e293b; }
.tpl-mono-dark .vc-card-cover { background: #1e293b; height: 60px; }
.tpl-mono-dark .vc-card-name { color: white; }
.tpl-mono-dark .vc-card-role { color: #94a3b8; }
.tpl-mono-dark .vc-card-org { color: white; }
.tpl-mono-dark .vc-card-section { border-color: #1e293b !important; }
.tpl-mono-dark .vc-card-section h4 { color: #94a3b8 !important; }
.tpl-mono-dark .vc-card-actions .act { background: #1e293b; border-color: #334155; color: white; }

/* Line — minimal with line accents */
.tpl-line .vc-card-phone { background: white; }
.tpl-line .vc-card-cover { display: none; }
.tpl-line .vc-card-avatar { margin-top: 22px; border: none; box-shadow: none; background: white; }
.tpl-line .vc-card-name { font-weight: 300; font-size: 28px; }
.tpl-line .vc-card-section { padding: 16px 22px; border-top: none; border-bottom: 1px solid var(--slate-100); }

/* Typography */
.tpl-typography { background: #fafbff !important; }
.tpl-typography .vc-card-phone { background: white; }
.tpl-typography .vc-card-cover { display: none; }
.tpl-typography .vc-card-avatar { display: none; }
.tpl-typography .vc-card-body { padding-top: 40px; }

/* Grid */
.tpl-grid .vc-card-phone { background: white; }
.tpl-grid .vc-card-cover { background: white; height: 0; border-bottom: 2px solid var(--brand-500); }
.tpl-grid .vc-card-avatar { width: 56px; height: 56px; font-size: 22px; margin-top: -28px; }
.tpl-grid .vc-card-body { padding-top: 18px; }
.tpl-grid .vc-card-actions .act { border-radius: 8px; }

/* Whitespace */
.tpl-whitespace { background: white !important; padding: 60px 16px; }
.tpl-whitespace .vc-card-phone { box-shadow: 0 4px 14px rgba(0,0,0,.05); border: 1px solid #eef0f5; }
.tpl-whitespace .vc-card-cover { height: 6px; background: var(--brand-500); }
.tpl-whitespace .vc-card-avatar { margin-top: -3px; }
.tpl-whitespace .vc-card-section { padding: 18px 22px; }

/* Brutalist */
.tpl-brutalist { background: #fbbf24 !important; }
.tpl-brutalist .vc-card-phone { background: white; border: 4px solid #10131c; box-shadow: 12px 12px 0 #10131c; }
.tpl-brutalist .vc-card-cover { background: #fbbf24; height: 80px; }
.tpl-brutalist .vc-card-name { font-weight: 900; text-transform: uppercase; font-size: 24px; letter-spacing: -.03em; }

/* Serif */
.tpl-serif { background: #fafbff !important; }
.tpl-serif .vc-card-phone { background: white; }
.tpl-serif .vc-card-cover { background: linear-gradient(135deg, #92400e, #451a03); height: 100px; }
.tpl-serif .vc-card-avatar { border-color: white; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.tpl-serif .vc-card-name, .tpl-serif .vc-card-org { font-family: Georgia, 'Times New Roman', serif; }
.tpl-serif .vc-card-section h4 { font-family: Georgia, serif; }

/* Card stack */
.tpl-card-stack .vc-card-wrap { padding-top: 40px; }
.tpl-card-stack .vc-card-phone { transform: rotate(-2deg); }
.tpl-card-stack .vc-card-wrap::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%) rotate(3deg);
  width: calc(100% - 16px); height: 50px; background: white; border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow-md); z-index: -1;
}

/* Whisper */
.tpl-whisper { background: white !important; padding: 80px 16px; }
.tpl-whisper .vc-card-phone { box-shadow: none; border: none; background: transparent; }
.tpl-whisper .vc-card-cover { display: none; }
.tpl-whisper .vc-card-avatar { display: none; }
.tpl-whisper .vc-card-body { padding: 20px 0; text-align: left; }
.tpl-whisper .vc-card-name { font-weight: 200; font-size: 32px; letter-spacing: -.02em; }
.tpl-whisper .vc-card-section { padding: 12px 0; }

/* Bold variants */
.tpl-cover { background: linear-gradient(135deg, #fafbff, #f0f4ff) !important; }
.tpl-cover .vc-card-cover { height: 220px !important; background: linear-gradient(135deg, #10131c, #1e1b4b) !important; }
.tpl-cover .vc-card-cover::after { background: radial-gradient(400px 240px at 50% 80%, rgba(255,255,255,.16), transparent 60%); }
.tpl-cover .vc-card-avatar { width: 110px; height: 110px; font-size: 42px; margin-top: -55px; }

.tpl-statement { background: #3b5bff !important; color: white; }
.tpl-statement .vc-card-phone { background: #3b5bff; color: white; }
.tpl-statement .vc-card-name, .tpl-statement .vc-card-org { color: white; }
.tpl-statement .vc-card-cover { background: rgba(0,0,0,.2); height: 200px; }
.tpl-statement .vc-card-avatar { border-color: #3b5bff; background: white; }

.tpl-bigtype { background: #fbbf24 !important; color: #10131c; }
.tpl-bigtype .vc-card-phone { background: #fbbf24; color: #10131c; }
.tpl-bigtype .vc-card-cover { background: #10131c; height: 120px; }
.tpl-bigtype .vc-card-name { color: #10131c; font-size: 48px; line-height: .9; }
.tpl-bigtype .vc-card-avatar { border-color: #fbbf24; }

.tpl-colorblock { background: white !important; }
.tpl-colorblock .vc-card-cover { background: #3b5bff; height: 100px; }
.tpl-colorblock .vc-card-cover::after { content: ''; position: absolute; bottom: 0; right: 0; width: 60%; height: 30%; background: #ec6a3a; border-radius: 24px 0 0 0; }

.tpl-poster { background: #10131c !important; color: white; }
.tpl-poster .vc-card-phone { background: #10131c; color: white; }
.tpl-poster .vc-card-name { color: white; font-family: Georgia, serif; font-style: italic; }
.tpl-poster .vc-card-cover { background: linear-gradient(135deg, #ec6a3a, #b3500e); height: 200px; }

.tpl-magazine .vc-card-phone { background: white; font-family: Georgia, serif; }
.tpl-magazine .vc-card-name { font-family: Georgia, serif; font-size: 28px; }
.tpl-magazine .vc-card-section h4 { font-family: Georgia, serif; font-style: italic; text-transform: none; }

.tpl-asymmetric { background: white !important; }
.tpl-asymmetric .vc-card-cover { background: linear-gradient(135deg, #3b5bff, #ec6a3a); height: 100px; clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%); }

.tpl-mosaic .vc-card-cover { background: conic-gradient(from 0deg, #3b5bff, #ec6a3a, #22c55e, #3b5bff); height: 160px; }

.tpl-industrial .vc-card-phone { background: #1f2937; color: white; }
.tpl-industrial .vc-card-name { color: white; font-family: 'Courier New', monospace; text-transform: uppercase; letter-spacing: .04em; }
.tpl-industrial .vc-card-cover { background: #fbbf24; height: 80px; }
.tpl-industrial .vc-card-avatar { border-color: #1f2937; background: #fbbf24; color: #10131c; }
.tpl-industrial .vc-card-section { border-color: rgba(251,191,36,.18) !important; }
.tpl-industrial .vc-card-section h4 { color: #fbbf24 !important; font-family: 'Courier New', monospace; }
.tpl-industrial .vc-card-section p, .tpl-industrial .vc-card-service .meta b { color: rgba(255,255,255,.85) !important; font-family: 'Courier New', monospace; }
.tpl-industrial .vc-card-actions .act { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.2); color: #fbbf24; }
.tpl-industrial .vc-card-actions .act svg { color: #fbbf24; }

/* Industry-templates */
.tpl-luxe { background: linear-gradient(135deg, #1c1437 0%, #3b2567 100%) !important; color: white; }
.tpl-luxe .vc-card-phone { background: rgba(255,255,255,.04); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); color: white; }
.tpl-luxe .vc-card-name { font-family: Georgia, serif; font-style: italic; font-size: 26px; }
.tpl-luxe .vc-card-avatar { border-color: rgba(255,255,255,.2); background: linear-gradient(135deg, #c4b5fd, #fbcfe8); color: #1c1437; }
.tpl-luxe .vc-card-section { border-color: rgba(255,255,255,.08) !important; }
.tpl-luxe .vc-card-section h4 { color: rgba(255,255,255,.5) !important; font-family: Georgia, serif; font-style: italic; }

.tpl-portfolio .vc-card-phone { background: white; }
.tpl-portfolio .vc-card-cover { background: linear-gradient(135deg, #10131c, #1e3a8a); height: 60px; }
.tpl-portfolio .vc-card-avatar { width: 64px; height: 64px; font-size: 24px; margin-top: -32px; }

.tpl-industry .vc-card-phone { background: white; }
.tpl-industry .vc-card-cover { background: linear-gradient(135deg, var(--brand-500), var(--accent-500)); }

/* Two-tone */
.tpl-two-tone .vc-card-phone { background: linear-gradient(180deg, white 50%, var(--brand-50) 50%); }
.tpl-two-tone .vc-card-cover { height: 90px; }
.tpl-two-tone .vc-card-avatar { margin-top: -20px; }

/* Soft shadow */
.tpl-soft-shadow .vc-card-phone { box-shadow: 0 40px 100px -20px rgba(20,23,48,.18), 0 10px 40px -10px rgba(20,23,48,.10), inset 0 0 0 1px rgba(255,255,255,.6); }

/* Centered */
.tpl-centered { background: linear-gradient(180deg, #fafbff, white) !important; }
.tpl-centered .vc-card-phone { background: white; max-width: 380px; }
.tpl-centered .vc-card-avatar { width: 110px; height: 110px; font-size: 44px; margin-top: -55px; border-width: 6px; }
.tpl-centered .vc-card-name { font-size: 26px; }

/* Compact */
.tpl-compact .vc-card-cover { height: 70px; }
.tpl-compact .vc-card-avatar { width: 60px; height: 60px; font-size: 22px; margin-top: -30px; }
.tpl-compact .vc-card-body { padding: 14px 18px 20px; }

/* Wide */
.tpl-wide .vc-card-phone { max-width: 100%; }
.tpl-wide .vc-card-cover { height: 180px; }

/* Editorial */
.tpl-editorial { background: #fafbff !important; }
.tpl-editorial .vc-card-phone { background: white; }
.tpl-editorial .vc-card-cover { background: linear-gradient(135deg, #10131c, #1c1437); height: 240px; }
.tpl-editorial .vc-card-name { font-family: Georgia, serif; font-size: 32px; font-weight: 700; }

/* Print */
.tpl-print { background: white !important; padding: 40px 16px; }
.tpl-print .vc-card-phone { background: white; border: 1px solid #d9deea; box-shadow: none; }
.tpl-print .vc-card-cover { background: #10131c; height: 60px; }
.tpl-print .vc-card-name { font-weight: 300; font-size: 28px; letter-spacing: -.01em; }
.tpl-print .vc-card-section { padding: 16px 22px; border-top: 1px dashed #d9deea; }

/* Aurora animated bg */
.tpl-aurora { background: #0f172a !important; }
.tpl-aurora::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(59,91,255,.5), transparent),
    radial-gradient(60% 50% at 80% 80%, rgba(236,106,58,.4), transparent);
  filter: blur(40px);
  animation: blobDrift 14s ease-in-out infinite alternate;
}

/* Glassy bg */
.tpl-glass::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(59,91,255,.2), transparent 70%), radial-gradient(ellipse at bottom, rgba(236,106,58,.15), transparent 70%);
  z-index: 0;
}

/* Public background blob layer (for layered animated bgs) */
.vc-public-bg-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; }


/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
@keyframes blobDrift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px, -30px) scale(1.06); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.fade-up { animation: fadeUp .35s ease backwards; }
.fade-up-1 { animation: fadeUp .4s .05s ease backwards; }
.fade-up-2 { animation: fadeUp .4s .10s ease backwards; }
.fade-up-3 { animation: fadeUp .4s .15s ease backwards; }
.fade-up-4 { animation: fadeUp .4s .20s ease backwards; }
.slide-in { animation: slideRight .35s ease backwards; }

.shimmer {
  background: linear-gradient(90deg, var(--slate-100) 0%, var(--slate-200) 50%, var(--slate-100) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

/* ---------- Misc helpers ---------- */
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.text-muted { color: var(--slate-500); }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; font-weight: 600; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 24px; }
.p-2 { padding: 8px; } .p-3 { padding: 12px; } .p-4 { padding: 16px; }
.rounded { border-radius: 12px; }

/* ---------- Toast ---------- */
.vc-toast-wrap { position: fixed; right: 20px; top: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.vc-toast {
  background: var(--slate-900);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 12px 36px rgba(0,0,0,.30);
  display: flex; align-items: center; gap: 10px;
  min-width: 240px;
  animation: fadeUp .3s ease;
}
.vc-toast.success { background: linear-gradient(135deg, var(--success), #15733e); }
.vc-toast.error { background: linear-gradient(135deg, var(--danger), #a12338); }
.vc-toast.info { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); }

/* ---------- Empty state ---------- */
.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--slate-500);
}
.empty svg { color: var(--slate-300); margin-bottom: 16px; }
.empty h3 { color: var(--slate-700); margin: 0 0 6px; font-size: 16px; }
.empty p { margin: 0 0 14px; font-size: 13px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; }
.table th { background: var(--slate-50); color: var(--slate-500); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.table tbody tr { border-top: 1px solid var(--slate-100); transition: background .12s; }
.table tbody tr:hover { background: var(--slate-50); }

/* ---------- Card preview / builder ---------- */
.builder-grid {
  display: grid;
  grid-template-columns: 380px 1fr 360px;
  gap: 18px;
  align-items: start;
}
.builder-panel {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.builder-panel .panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--slate-100);
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: space-between;
}
.builder-panel .panel-body { padding: 18px; }
.builder-section-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: var(--slate-50);
  border-radius: 9px;
  margin-bottom: 8px;
  cursor: pointer;
  font-weight: 600; font-size: 13px;
}
.builder-section-toggle .on { width: 36px; height: 20px; background: var(--brand-500); border-radius: 999px; position: relative; transition: background .15s; }
.builder-section-toggle .on::after { content: ''; width: 16px; height: 16px; background: white; border-radius: 50%; position: absolute; top: 2px; left: 18px; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.builder-section-toggle.off .on { background: var(--slate-300); }
.builder-section-toggle.off .on::after { left: 2px; }

.theme-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.theme-tile {
  padding: 0; border: 2px solid transparent; border-radius: 12px;
  overflow: hidden; cursor: pointer;
  background: white;
  transition: transform .15s, border-color .15s;
}
.theme-tile:hover { transform: translateY(-2px); }
.theme-tile.active { border-color: var(--brand-500); box-shadow: 0 6px 18px rgba(59,91,255,.25); }
.theme-tile .swatch { height: 56px; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.theme-tile .swatch span { display: block; }
.theme-tile .meta { padding: 6px 10px; font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; }

/* Card builder preview container */
.preview-phone {
  background: linear-gradient(180deg, #f0f4ff, #fafbff);
  border-radius: 28px;
  padding: 20px 10px;
  box-shadow: inset 0 0 0 1px var(--slate-100);
}

/* responsive */
@media (max-width: 1080px) {
  .vc-app { grid-template-columns: 220px 1fr; }
  .builder-grid { grid-template-columns: 320px 1fr; }
  .builder-grid .builder-panel:last-child { display: none; }
}
@media (max-width: 820px) {
  .vc-app { grid-template-columns: 1fr; }
  .vc-side { display: none; }
  .vc-auth { grid-template-columns: 1fr; }
  .vc-auth .auth-hero { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
