:root {
  color-scheme: light dark;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--brand-body-font, "Inter"), system-ui, sans-serif;
  font-weight: var(--brand-body-weight, 500);
  line-height: var(--brand-body-line-height, 1.7);
  overflow-x: hidden;
}

::selection {
  background: var(--brand-accent, #d4af37);
  color: var(--brand-primary, #0b1120);
}

h1,
h2,
h3,
.font-display {
  font-family: var(--brand-heading-font, "Playfair Display"), serif;
  font-weight: var(--brand-heading-weight, 800);
  line-height: var(--brand-heading-line-height, 1.05);
}

.nav-link,
.mobile-link {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.65rem 0.82rem;
  transition: 220ms ease;
}

.nav-link:hover,
.mobile-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-accent, #d4af37);
}

.brand-logo-wrap {
  align-items: center;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 77, 160, 0.18);
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.5rem;
  justify-content: center;
  overflow: hidden;
}

.brand-logo {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.icon-btn {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  display: inline-grid;
  font-weight: 800;
  height: 2.5rem;
  justify-content: center;
  transition: 220ms ease;
}

.icon-btn:hover {
  border-color: color-mix(in srgb, var(--brand-accent, #d4af37) 55%, transparent);
  color: var(--brand-accent, #d4af37);
  transform: translateY(-1px);
}

.gold-btn,
.glass-btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  transition: 260ms ease;
}

.gold-btn {
  background: linear-gradient(135deg, var(--brand-button, #d4af37), var(--brand-hover, #f0d987));
  box-shadow: 0 18px 50px rgba(212, 175, 55, 0.22);
  color: var(--brand-primary, #0b1120);
}

.gold-btn:hover,
.glass-btn:hover {
  transform: translateY(-2px);
}

.glass-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.phone-access {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  line-height: 1;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

.phone-label {
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 0.32rem 0.45rem;
  text-transform: uppercase;
}

.phone-locked {
  background: rgba(15, 23, 42, 0.08);
  border: 1px dashed rgba(15, 23, 42, 0.26);
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.phone-locked .phone-label {
  background: rgba(15, 23, 42, 0.1);
  color: #0b1120;
}

.phone-revealed {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 18px 50px rgba(212, 175, 55, 0.16);
}

.phone-revealed .phone-label {
  background: #d4af37;
  color: #0b1120;
}

.phone-revealed a {
  color: #d4af37;
  font-size: 1rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.dark .phone-locked {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.72);
}

.dark .phone-locked .phone-label {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.stat-card,
.lux-card,
.experience-card,
.metric-card,
.contact-form,
.contact-card,
.resume-center,
.testimonial-card,
.auth-card,
.detail-body {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px);
}

.stat-card {
  border-radius: 1rem;
  padding: 1rem;
}

.portrait-shell {
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 2rem;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45), 0 0 80px rgba(212, 175, 55, 0.16);
  overflow: hidden;
  position: relative;
}

.portrait-shell::after {
  background: linear-gradient(180deg, transparent, rgba(11, 17, 32, 0.62));
  content: "";
  inset: 0;
  position: absolute;
}

.portrait-shell img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.floating-card {
  animation: float 7s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 1.15rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  color: white;
  max-width: 15rem;
  padding: 1rem;
  position: absolute;
}

.floating-card span,
.achievement-card span,
.gallery-card span {
  color: #d4af37;
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.floating-card strong {
  display: block;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.floating-card p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

.card-1 {
  right: -1rem;
  top: 8%;
}

.card-2 {
  bottom: 14%;
  left: -2rem;
}

.card-3 {
  bottom: -1rem;
  right: 12%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.page-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(212, 175, 55, 0.20), transparent 24%),
    linear-gradient(135deg, #0b1120, #111827);
  color: #fff;
  padding: 9rem 1rem 5rem;
  position: relative;
}

.page-hero > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
}

.page-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.7rem, 8vw, 6.4rem);
  font-weight: 800;
  line-height: 0.95;
  margin-top: 1rem;
  max-width: 64rem;
}

.page-hero p:last-child {
  color: rgba(255, 255, 255, 0.64);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  margin-top: 1.4rem;
  max-width: 48rem;
}

.compact-hero {
  padding-bottom: 4rem;
}

.eyebrow {
  color: #d4af37;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.content-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 0 auto;
  max-width: 76rem;
  padding: 4rem 1rem;
}

.lux-card {
  border-color: rgba(15, 23, 42, 0.1);
  border-radius: 1.25rem;
  color: inherit;
  min-height: 15rem;
  padding: 1.5rem;
}

.dark .lux-card,
.dark .resume-center,
.dark .detail-body,
.dark .contact-form,
.dark .contact-card,
.dark .experience-card,
.dark .metric-card,
.dark .testimonial-card,
.dark .auth-card {
  border-color: rgba(255, 255, 255, 0.14);
}

.lux-card h2,
.experience-card h2,
.metric-card h2,
.contact-card h2 {
  font-size: 1.35rem;
  font-weight: 850;
  margin-top: 0.75rem;
}

.lux-card p,
.experience-card p,
.metric-card p,
.contact-card p,
.detail-body p {
  color: rgba(15, 23, 42, 0.68);
  line-height: 1.75;
  margin-top: 0.75rem;
}

.dark .lux-card p,
.dark .experience-card p,
.dark .metric-card p,
.dark .contact-card p,
.dark .detail-body p {
  color: rgba(255, 255, 255, 0.64);
}

.card-icon {
  align-items: center;
  background: #d4af37;
  border-radius: 999px;
  color: #0b1120;
  display: inline-flex;
  font-weight: 900;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.timeline-section,
.experience-wrap,
.dashboard,
.leadership-band,
.skill-system,
.resume-center,
.auth-wrap,
.masonry,
.testimonial-stage,
.contact-layout,
.detail-body {
  margin: 0 auto;
  max-width: 76rem;
  padding: 4rem 1rem;
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 48rem;
}

.section-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1;
  margin-top: 0.75rem;
}

.timeline {
  border-left: 1px solid rgba(212, 175, 55, 0.36);
  display: grid;
  gap: 1rem;
  margin-left: 1rem;
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  background: #d4af37;
  border-radius: 999px;
  content: "";
  height: 0.8rem;
  left: -1.92rem;
  position: absolute;
  top: 0.2rem;
  width: 0.8rem;
}

.timeline-item span {
  color: #d4af37;
  font-weight: 900;
}

.timeline-item h3 {
  font-size: 1.25rem;
  font-weight: 850;
  margin-top: 0.3rem;
}

.timeline-item p {
  color: rgba(100, 116, 139, 0.95);
  line-height: 1.7;
  margin-top: 0.4rem;
}

.dark .timeline-item p {
  color: rgba(255, 255, 255, 0.62);
}

.experience-wrap {
  display: grid;
  gap: 1rem;
}

.experience-card {
  border-radius: 1.4rem;
  display: grid;
  gap: 1.5rem;
  padding: 1.4rem;
}

.role {
  color: #d4af37 !important;
  font-weight: 850;
}

.exp-columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.exp-columns h3 {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.chip-row span {
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 999px;
  color: #d4af37;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.45rem 0.7rem;
}

.dashboard,
.skill-system {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.metric-card,
.skill-node {
  border-radius: 1.25rem;
  padding: 1.4rem;
}

.metric-ring,
.orb {
  align-items: center;
  background: conic-gradient(#d4af37 calc(var(--value) * 1%), rgba(148, 163, 184, 0.22) 0);
  border-radius: 999px;
  display: grid;
  height: 8rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 8rem;
}

.metric-ring span,
.orb span {
  align-items: center;
  background: #0b1120;
  border-radius: 999px;
  color: #fff;
  display: grid;
  font-weight: 900;
  height: 5.8rem;
  justify-content: center;
  width: 5.8rem;
}

.leadership-band {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.leadership-band div {
  background: #111827;
  color: #fff;
  padding: 1.5rem;
}

.leadership-band h2 {
  color: #d4af37;
  font-weight: 850;
}

.leadership-band p {
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.65;
  margin-top: 0.7rem;
}

.skill-node {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: 250ms ease;
}

.skill-node:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-5px);
}

.skill-node h2 {
  font-size: 1.1rem;
  font-weight: 850;
}

.skill-node p {
  color: #d4af37;
  font-weight: 800;
  margin-top: 0.25rem;
}

.skill-node small {
  color: rgba(100, 116, 139, 0.95);
  display: block;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.dark .skill-node small {
  color: rgba(255, 255, 255, 0.6);
}

.resume-center {
  border-radius: 1.4rem;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.resume-profile,
.resume-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-bottom: 1rem;
}

.resume-profile > div,
.resume-grid article,
.resume-section {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  padding: 1rem;
}

.resume-profile h2,
.resume-section h2 {
  font-size: 1.25rem;
  font-weight: 850;
  margin-top: 0.5rem;
}

.resume-profile p,
.resume-grid p,
.resume-section p {
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.7;
  margin-top: 0.45rem;
}

.resume-profile a {
  color: #d4af37;
  overflow-wrap: anywhere;
}

.resume-section {
  margin-bottom: 1rem;
}

.resume-section article {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  margin-top: 1rem;
  padding-top: 1rem;
}

.dark .resume-profile p,
.dark .resume-grid p,
.dark .resume-section p {
  color: rgba(255, 255, 255, 0.64);
}

.resume-center iframe,
.contact-card iframe {
  background: white;
  border: 0;
  border-radius: 1rem;
  height: 72vh;
  width: 100%;
}

.cv-builder-shell {
  margin: 0 auto;
  max-width: 92rem;
  padding: 4rem 1rem;
}

.cv-toolbar {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cv-toolbar h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  margin-top: 0.45rem;
}

.cv-start-panel {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.85rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.9fr) minmax(14rem, 0.65fr);
  margin-bottom: 1rem;
  padding: 1rem;
}

.dark .cv-start-panel {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.82));
  border-color: rgba(255, 255, 255, 0.12);
}

.cv-start-copy {
  align-content: center;
  display: grid;
  gap: 0.35rem;
}

.cv-start-copy h3 {
  color: #0f172a;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 950;
}

.cv-start-copy p:last-child {
  color: rgba(15, 23, 42, 0.68);
  line-height: 1.65;
  max-width: 42rem;
}

.dark .cv-start-copy h3 {
  color: #fff;
}

.dark .cv-start-copy p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.cv-preset-actions {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cv-preset-actions button {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.55rem;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 950;
  min-height: 3rem;
  padding: 0.7rem;
  text-align: left;
  transition: 180ms ease;
}

.cv-preset-actions button:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.42);
  transform: translateY(-1px);
}

.dark .cv-preset-actions button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cv-readiness-card {
  background: #0f172a;
  border-radius: 0.75rem;
  color: #fff;
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.cv-readiness-card span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cv-readiness-card strong {
  font-size: 1.1rem;
  font-weight: 950;
}

.cv-readiness-card small {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.cv-readiness-meter {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  height: 0.58rem;
  overflow: hidden;
}

.cv-readiness-meter i {
  background: linear-gradient(90deg, #ef4444, #eab308, #22c55e);
  display: block;
  height: 100%;
  transition: width 260ms ease;
  width: 0;
}

.cv-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.cv-template-picker {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  margin-bottom: 1rem;
}

.cv-template-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.5rem;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 3rem;
  padding: 0.75rem;
  transition: 220ms ease;
}

.cv-template-card:hover,
.cv-template-card.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.56);
  color: #d4af37;
  transform: translateY(-2px);
}

.cv-workspace {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(20rem, 1.18fr);
}

.cv-form,
.cv-preview-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.14);
  padding: 1rem;
}

.cv-form {
  display: grid;
  gap: 1rem;
}

.cv-form-section {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  display: grid;
  gap: 0.7rem;
  padding-bottom: 1rem;
}

.cv-form-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cv-field-note {
  color: rgba(100, 116, 139, 0.86);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
}

.dark .cv-field-note {
  color: rgba(255, 255, 255, 0.58);
}

.cv-form label {
  color: rgba(15, 23, 42, 0.78);
  display: grid;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.35rem;
  letter-spacing: 0.03em;
}

.dark .cv-form label {
  color: rgba(255, 255, 255, 0.72);
}

.cv-form input,
.cv-form textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.65rem;
  color: #0b1120;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0;
  outline: none;
  padding: 0.78rem 0.85rem;
  resize: vertical;
  width: 100%;
}

.cv-form input:focus,
.cv-form textarea:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.13);
}

.cv-preview-panel {
  display: grid;
  gap: 1rem;
  overflow-x: auto;
}

.cv-preview-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.cv-preview-head .glass-btn {
  min-height: 2.55rem;
  padding: 0.6rem 0.9rem;
}

.cv-document {
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  color: #111827;
  display: grid;
  gap: 1.2rem;
  letter-spacing: 0;
  margin: 0 auto;
  aspect-ratio: 210 / 297;
  min-height: 70rem;
  overflow-wrap: anywhere;
  padding: 2.2rem;
  width: min(100%, 49.5rem);
}

.cv-doc-header {
  border-bottom: 3px solid currentColor;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(13rem, 0.8fr);
  padding-bottom: 1rem;
}

.cv-doc-header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.cv-doc-header p {
  color: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 0.5rem;
}

.cv-contact-list {
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  justify-items: end;
  line-height: 1.45;
  text-align: right;
}

.cv-document section {
  display: grid;
  gap: 0.65rem;
}

.cv-document h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cv-document p {
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.62;
}

.cv-entry {
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  padding-top: 0.65rem;
}

.cv-entry:first-child {
  border-top: 0;
  padding-top: 0;
}

.cv-entry h4 {
  font-size: 1rem;
  font-weight: 900;
}

.cv-entry-meta {
  color: #64748b !important;
  font-size: 0.82rem !important;
  font-weight: 850;
  margin: 0.12rem 0 0.2rem;
}

.cv-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cv-skill-list span {
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0.32rem 0.55rem;
}

.cv-template-executive {
  color: #0b1120;
}

.cv-template-modern {
  border-left: 1.1rem solid #0f766e;
  color: #0f766e;
}

.cv-template-classic {
  color: #374151;
  font-family: Georgia, serif;
}

.cv-template-classic .cv-doc-header h2,
.cv-template-classic h3 {
  font-family: Georgia, serif;
}

.cv-template-minimal {
  color: #111827;
  gap: 1rem;
  padding: 2.7rem;
}

.cv-template-minimal .cv-doc-header {
  border-bottom-width: 1px;
}

.cv-template-creative {
  background: linear-gradient(90deg, #ffffff 0 68%, #fff7ed 68% 100%);
  color: #be123c;
}

.cv-template-corporate {
  color: #1d4ed8;
}

.cv-template-tech {
  background: #f8fafc;
  color: #0369a1;
  font-family: "Courier New", monospace;
}

.cv-template-tech .cv-doc-header h2,
.cv-template-tech h3 {
  font-family: "Courier New", monospace;
}

.cv-template-academic {
  color: #4338ca;
}

.cv-template-service {
  color: #047857;
}

.cv-template-luxury {
  background: #111827;
  color: #d4af37;
}

.cv-template-luxury p,
.cv-template-luxury .cv-entry-meta {
  color: rgba(255, 255, 255, 0.76) !important;
}

.cv-template-compact {
  color: #0f172a;
  gap: 0.8rem;
  min-height: 58rem;
  padding: 1.65rem;
}

.cv-template-compact p {
  font-size: 0.84rem;
  line-height: 1.45;
}

.cv-template-bold {
  color: #7c2d12;
}

.cv-template-bold .cv-doc-header {
  background: #7c2d12;
  border: 0;
  color: white;
  margin: -2.2rem -2.2rem 0;
  padding: 2rem 2.2rem;
}

.cv-template-bold .cv-doc-header p {
  color: rgba(255, 255, 255, 0.82);
}

.pdf-placeholder,
.map-placeholder,
.gallery-placeholder {
  align-items: center;
  background: linear-gradient(135deg, rgba(11, 17, 32, 0.96), rgba(212, 175, 55, 0.16));
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  min-height: 24rem;
  padding: 2rem;
  text-align: center;
}

.masonry {
  column-count: 3;
  column-gap: 1rem;
}

.gallery-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.25rem;
  break-inside: avoid;
  margin-bottom: 1rem;
  overflow: hidden;
}

.gallery-card img,
.detail-body img {
  display: block;
  height: auto;
  width: 100%;
}

.gallery-card div {
  padding: 1rem;
}

.gallery-card h2 {
  font-weight: 850;
  margin-top: 0.35rem;
}

.gallery-card p {
  color: rgba(100, 116, 139, 0.92);
  line-height: 1.6;
  margin-top: 0.35rem;
}

.testimonial-stage {
  min-height: 26rem;
  position: relative;
}

.testimonial-card {
  border-radius: 1.4rem;
  margin: 0 auto;
  max-width: 54rem;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.testimonial-card p {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 4vw, 3.5rem);
  line-height: 1.15;
}

.testimonial-card h2 {
  color: #d4af37;
  font-weight: 900;
  margin-top: 1.5rem;
}

.testimonial-card span {
  color: rgba(100, 116, 139, 0.92);
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.2rem;
}

.contact-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.contact-form,
.contact-card {
  border-radius: 1.4rem;
  padding: 1.4rem;
}

.contact-form input,
.contact-form textarea,
.auth-card input,
.assistant-box textarea {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.9rem;
  color: #0b1120;
  margin-bottom: 0.75rem;
  outline: none;
  padding: 0.9rem 1rem;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus,
.auth-card input:focus,
.assistant-box textarea:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.auth-wrap {
  max-width: 34rem;
}

.auth-wrap-wide {
  max-width: 42rem;
}

.auth-card {
  border-radius: 1.4rem;
  padding: 1.4rem;
}

.auth-tabs {
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  display: grid;
  gap: 0.3rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.2rem;
  padding: 0.3rem;
}

.dark .auth-tabs {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.auth-tab {
  border-radius: 999px;
  color: rgba(15, 23, 42, 0.68);
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 2.8rem;
  transition: 220ms ease;
}

.dark .auth-tab {
  color: rgba(255, 255, 255, 0.66);
}

.auth-tab.active {
  background: #d4af37;
  color: #0b1120;
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.22);
}

.auth-pane {
  display: grid;
}

.auth-card label {
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.password-field {
  align-items: stretch;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.password-field input {
  margin-bottom: 0.75rem;
}

.password-field button {
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 0.9rem;
  color: #d4af37;
  font-size: 0.78rem;
  font-weight: 900;
  height: 3.25rem;
  padding: 0 0.85rem;
}

.remember-row {
  align-items: center;
  display: flex !important;
  gap: 0.55rem;
  letter-spacing: 0 !important;
  margin: 0 0 1rem !important;
  text-transform: none !important;
}

.remember-row input {
  accent-color: #d4af37;
  height: 1rem;
  margin: 0;
  width: 1rem;
}

.remember-row span,
.auth-note {
  color: rgba(100, 116, 139, 0.95);
  font-size: 0.86rem;
  font-weight: 700;
}

.dark .remember-row span,
.dark .auth-note {
  color: rgba(255, 255, 255, 0.58);
}

.auth-note {
  margin-top: 0.9rem;
  text-align: center;
}

.success-msg {
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 0.9rem;
  color: #d4af37;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
}

.assistant-panel {
  bottom: 1rem;
  position: fixed;
  right: 1rem;
  z-index: 60;
}

.assistant-toggle {
  background: #d4af37;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  color: #0b1120;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.9rem 1.1rem;
}

.assistant-box {
  background: rgba(11, 17, 32, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 1.1rem;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.36);
  margin-top: 0.7rem;
  padding: 1rem;
  width: min(22rem, calc(100vw - 2rem));
}

.assistant-head {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  margin: -0.15rem 0 0.8rem;
  padding-bottom: 0.8rem;
}

.assistant-head p {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.assistant-head span {
  color: rgba(255, 255, 255, 0.52);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.assistant-status {
  background: #28d17c;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(40, 209, 124, 0.14);
  flex: 0 0 auto;
  height: 0.62rem;
  width: 0.62rem;
}

.assistant-thread {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  max-height: 18rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.assistant-answer {
  display: grid;
  gap: 0.6rem;
}

.assistant-message {
  border-radius: 0.95rem;
  font-size: 0.86rem;
  line-height: 1.6;
  padding: 0.78rem 0.9rem;
}

.assistant-message-bot {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: rgba(255, 255, 255, 0.82);
}

.assistant-link {
  background: #d4af37;
  border-radius: 999px;
  color: #0b1120;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.48rem 0.75rem;
}

.assistant-link.muted {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.assistant-form {
  display: grid;
  gap: 0.1rem;
}

.mouse-follower {
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  height: 2.4rem;
  left: 0;
  mix-blend-mode: difference;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translate(-50%, -50%);
  width: 2.4rem;
  z-index: 80;
}

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

  .cv-toolbar,
  .cv-preview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .cv-export-actions {
    justify-content: flex-start;
  }

  .cv-workspace {
    grid-template-columns: 1fr;
  }

  .cv-doc-header {
    grid-template-columns: 1fr;
  }

  .cv-contact-list {
    justify-items: start;
    text-align: left;
  }

  .masonry {
    column-count: 2;
  }

  .floating-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding-top: 7rem;
  }

  .masonry {
    column-count: 1;
  }

  .mouse-follower {
    display: none;
  }
}

.cv-builder-hero {
  background:
    linear-gradient(135deg, rgba(11, 17, 32, 0.96), rgba(17, 24, 39, 0.84)),
    url("../img/cv-templates/template-modern.jpg") center / cover;
}

.cv-status-strip {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.cv-status-strip div,
.cv-builder-panel,
.cv-preview-pro,
.cv-market-card {
  backdrop-filter: blur(22px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
}

.cv-status-strip div {
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}

.cv-status-strip span {
  color: rgba(100, 116, 139, 0.92);
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dark .cv-status-strip span {
  color: rgba(255, 255, 255, 0.55);
}

.cv-status-strip strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 950;
  margin-top: 0.1rem;
}

.cv-template-market {
  display: grid;
  gap: 0.85rem;
  grid-auto-columns: minmax(9rem, 1fr);
  grid-auto-flow: column;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.cv-market-card {
  border-radius: 0.65rem;
  color: inherit;
  display: grid;
  gap: 0.55rem;
  min-width: 10rem;
  padding: 0.6rem;
  text-align: left;
  transition: 220ms ease;
}

.cv-market-card img {
  aspect-ratio: 4 / 5;
  border-radius: 0.45rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  height: 10rem;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.cv-market-preview {
  aspect-ratio: 4 / 5;
  background: var(--swatch-c);
  border-radius: 0.45rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  height: 10rem;
  overflow: hidden;
  padding: 0.55rem;
  position: relative;
  width: 100%;
}

.cv-market-preview::before {
  background: var(--swatch-a);
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 32%;
}

.cv-market-preview::after {
  background: var(--swatch-b);
  border-radius: 999px;
  content: "";
  height: 1.65rem;
  left: 0.78rem;
  position: absolute;
  top: 0.78rem;
  width: 1.65rem;
}

.cv-market-preview i,
.cv-market-preview b,
.cv-market-preview em,
.cv-market-preview small {
  background: color-mix(in srgb, var(--swatch-a) 24%, #ffffff);
  border-radius: 999px;
  display: block;
  grid-column: 2;
  height: 0.36rem;
  margin-left: 0.55rem;
}

.cv-market-preview i {
  background: var(--swatch-a);
  height: 0.62rem;
  margin-top: 0.2rem;
  width: 76%;
}

.cv-market-preview b {
  background: var(--swatch-b);
  width: 52%;
}

.cv-market-preview em {
  align-self: end;
  box-shadow: 0 0.8rem 0 color-mix(in srgb, var(--swatch-a) 18%, #ffffff), 0 1.6rem 0 color-mix(in srgb, var(--swatch-a) 14%, #ffffff), 0 2.4rem 0 color-mix(in srgb, var(--swatch-a) 14%, #ffffff);
  margin-bottom: 2.6rem;
  width: 88%;
}

.cv-market-preview small {
  align-self: end;
  background: var(--swatch-b);
  height: 0.5rem;
  margin-bottom: 0.25rem;
  width: 42%;
}

.cv-market-preview-topbar,
.cv-market-preview-ribbon,
.cv-market-preview-photo {
  grid-template-columns: 1fr;
}

.cv-market-preview-topbar::before {
  height: 30%;
  width: 100%;
}

.cv-market-preview-ribbon::before {
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
  width: 48%;
}

.cv-market-preview-photo::after {
  height: 2.4rem;
  left: auto;
  right: 0.8rem;
  top: 0.72rem;
  width: 2.4rem;
}

.cv-market-preview-ats::before {
  display: none;
}

.cv-market-preview-grid {
  background:
    linear-gradient(90deg, transparent 49%, color-mix(in srgb, var(--swatch-a) 16%, #ffffff) 49% 51%, transparent 51%),
    var(--swatch-c);
}

.cv-market-preview-timeline::before {
  left: 1.8rem;
  width: 0.2rem;
}

.cv-market-card span {
  font-size: 0.82rem;
  font-weight: 950;
}

.cv-market-card:hover,
.cv-market-card.active {
  border-color: rgba(212, 175, 55, 0.62);
  color: #d4af37;
  transform: translateY(-2px);
}

.cv-pro-workspace {
  grid-template-columns: minmax(19rem, 0.78fr) minmax(24rem, 1.22fr);
}

.cv-builder-panel,
.cv-preview-pro {
  border-radius: 1rem;
  padding: 1rem;
}

.cv-builder-panel {
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  position: sticky;
  top: 5.5rem;
}

.cv-panel-tabs {
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1rem;
  padding: 0.25rem;
}

.dark .cv-panel-tabs {
  background: rgba(255, 255, 255, 0.07);
}

.cv-panel-tabs button {
  border-radius: 999px;
  color: rgba(100, 116, 139, 0.95);
  font-size: 0.78rem;
  font-weight: 950;
  min-height: 2.45rem;
}

.dark .cv-panel-tabs button {
  color: rgba(255, 255, 255, 0.62);
}

.cv-panel-tabs button.active {
  background: #d4af37;
  color: #0b1120;
}

.cv-panel {
  display: none;
}

.cv-panel.active {
  display: grid;
  gap: 1rem;
}

.cv-section-head,
.cv-section-editor-head,
.cv-mini-actions {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
}

.cv-section-head h3,
.cv-preview-head h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 950;
  margin-top: 0.15rem;
}

.compact-action,
.cv-mini-actions .glass-btn {
  min-height: 2.4rem;
  padding: 0.55rem 0.8rem;
}

.cv-form select,
.cv-builder-panel select,
.cv-builder-panel input,
.cv-builder-panel textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.65rem;
  color: #0b1120;
  font-size: 0.9rem;
  font-weight: 650;
  outline: none;
  padding: 0.78rem 0.85rem;
  width: 100%;
}

.cv-builder-panel input[type="color"] {
  height: 3rem;
  padding: 0.2rem;
}

.cv-builder-panel input[type="range"] {
  accent-color: #d4af37;
  padding-left: 0;
  padding-right: 0;
}

.cv-section-manager {
  display: grid;
  gap: 0.7rem;
}

.cv-section-editor {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  display: grid;
  gap: 0.65rem;
  padding: 0.7rem;
  transition: 180ms ease;
}

.cv-section-editor.is-hidden {
  opacity: 0.58;
}

.cv-section-editor.is-dragging {
  border-color: #d4af37;
  transform: scale(0.99);
}

.cv-drag-handle {
  background: rgba(212, 175, 55, 0.15);
  border-radius: 0.5rem;
  color: #d4af37;
  flex: 0 0 auto;
  font-weight: 950;
  height: 2.5rem;
  width: 2.5rem;
}

.cv-section-title-input {
  min-width: 0;
}

.cv-section-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
}

.cv-section-actions button,
.cv-ai-actions button {
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  min-height: 2.2rem;
  padding: 0.45rem 0.7rem;
}

.dark .cv-section-actions button,
.dark .cv-ai-actions button {
  background: rgba(255, 255, 255, 0.08);
}

.cv-section-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.cv-ai-actions {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cv-score-meter {
  background: rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  height: 0.7rem;
  overflow: hidden;
}

.cv-score-meter span {
  background: linear-gradient(90deg, #ef4444, #eab308, #22c55e);
  display: block;
  height: 100%;
  transition: width 260ms ease;
  width: 0;
}

.cv-score-list {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.cv-score-list li.pass {
  color: #16a34a;
}

.cv-score-list li.warn {
  color: #ca8a04;
}

.cv-document {
  --cv-accent: #2f8f46;
  --cv-paper: #fff;
  --cv-font: "Inter", system-ui, sans-serif;
  --cv-photo-size: 118px;
  --cv-spacing: 1;
  background: var(--cv-paper);
  color: #15191f;
  font-family: var(--cv-font);
  gap: calc(1rem * var(--cv-spacing));
  padding: 0;
  position: relative;
}

.cv-doc-bg {
  background-position: center;
  background-size: cover;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.cv-document > *:not(.cv-doc-bg) {
  position: relative;
  z-index: 1;
}

.cv-doc-header {
  border-bottom: 0;
  grid-template-columns: auto minmax(0, 1fr) minmax(12rem, 0.65fr);
  padding: 2rem;
}

.cv-photo-frame {
  align-self: start;
  background: color-mix(in srgb, var(--cv-accent) 12%, #ffffff);
  border: 5px solid var(--cv-accent);
  border-radius: 999px;
  height: var(--cv-photo-size);
  overflow: hidden;
  width: var(--cv-photo-size);
}

.cv-photo-frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cv-doc-header h2 {
  color: #111827;
  font-family: var(--cv-font);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 950;
  letter-spacing: 0;
}

.cv-doc-header p[data-cv="title"] {
  color: var(--cv-accent);
  font-size: 1.2rem;
}

.cv-summary-inline {
  max-width: 38rem;
}

.cv-contact-list span::before {
  color: var(--cv-accent);
  content: "• ";
}

.cv-doc-sections {
  column-count: var(--cv-columns);
  column-gap: 2rem;
  padding: 0 2rem 2rem;
}

.cv-render-section {
  break-inside: avoid;
  display: grid;
  gap: 0.65rem;
  margin-bottom: calc(1.1rem * var(--cv-spacing));
}

.cv-render-section h3 {
  border-bottom: 1px solid var(--cv-accent);
  color: var(--cv-accent);
  padding-bottom: 0.35rem;
}

.cv-render-section p,
.cv-render-section li,
.cv-entry p {
  color: #333b49;
  font-size: 0.9rem;
  line-height: calc(1.45 * var(--cv-spacing));
}

.cv-entry {
  border-color: rgba(15, 23, 42, 0.08);
}

.cv-skill-list {
  display: grid;
  gap: 0.5rem;
}

.cv-skill-list span {
  border: 0;
  display: grid;
  gap: 0.25rem;
  padding: 0;
}

.cv-skill-list b {
  font-size: 0.82rem;
}

.cv-skill-list i {
  background:
    linear-gradient(90deg, var(--cv-accent) var(--skill), rgba(148, 163, 184, 0.24) 0);
  border-radius: 999px;
  display: block;
  height: 0.36rem;
}

.cv-modern-list {
  display: grid;
  gap: 0.35rem;
  list-style: disc;
  padding-left: 1.1rem;
}

.cv-layout-sidebar .cv-doc-header {
  background: #334155;
  color: #fff;
  grid-column: 1;
  grid-row: 1 / span 2;
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 70rem;
  padding: 2rem 1.4rem;
}

.cv-layout-sidebar .cv-doc-header h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  overflow-wrap: normal;
  word-break: normal;
}

.cv-layout-sidebar {
  gap: 0;
  grid-template-columns: minmax(13.5rem, 0.35fr) minmax(0, 0.65fr);
}

.cv-layout-sidebar .cv-doc-sections {
  column-count: var(--cv-columns);
  grid-column: 2;
  padding: 2rem;
}

.cv-layout-sidebar .cv-contact-list {
  justify-items: start;
  text-align: left;
}

.cv-layout-topbar .cv-doc-header {
  background: #334155;
  color: #fff;
}

.cv-layout-topbar .cv-doc-header h2 {
  color: #fff;
}

.cv-layout-clean .cv-doc-sections,
.cv-layout-ats .cv-doc-sections {
  column-count: 1;
}

.cv-layout-ats .cv-photo-frame,
.cv-layout-ats .cv-doc-bg {
  display: none;
}

.cv-layout-ats .cv-doc-header {
  grid-template-columns: 1fr;
}

.cv-layout-ribbon .cv-doc-header {
  background: linear-gradient(135deg, var(--cv-accent), color-mix(in srgb, var(--cv-accent) 55%, #111827));
  color: #fff;
}

.cv-layout-ribbon .cv-doc-header h2,
.cv-layout-ribbon .cv-doc-header p[data-cv="title"] {
  color: #fff;
}

.cv-layout-photo .cv-doc-header {
  background: linear-gradient(90deg, color-mix(in srgb, var(--cv-accent) 78%, #111827), color-mix(in srgb, var(--cv-accent) 30%, #ffffff));
  color: #fff;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cv-layout-photo .cv-photo-frame {
  border-color: #fff;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.cv-layout-photo .cv-contact-list,
.cv-layout-timeline .cv-contact-list {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: start;
  text-align: left;
}

.cv-layout-photo .cv-doc-header h2,
.cv-layout-photo .cv-doc-header p[data-cv="title"] {
  color: #fff;
}

.cv-layout-timeline .cv-doc-header {
  border-bottom: 1px solid color-mix(in srgb, var(--cv-accent) 45%, transparent);
  grid-template-columns: auto minmax(0, 1fr);
}

.cv-layout-timeline .cv-doc-sections {
  column-count: 1;
  padding-left: 3.2rem;
}

.cv-layout-timeline .cv-render-section {
  border-left: 2px solid color-mix(in srgb, var(--cv-accent) 32%, transparent);
  padding-left: 1.2rem;
  position: relative;
}

.cv-layout-timeline .cv-render-section::before {
  background: var(--cv-accent);
  border: 4px solid var(--cv-paper);
  border-radius: 999px;
  content: "";
  height: 0.8rem;
  left: -0.48rem;
  position: absolute;
  top: 0.1rem;
  width: 0.8rem;
}

.cv-layout-grid .cv-doc-header {
  background: linear-gradient(90deg, color-mix(in srgb, var(--cv-accent) 16%, #ffffff), #ffffff);
  border-bottom: 0;
}

.cv-layout-grid .cv-doc-sections {
  column-count: 1;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(var(--cv-columns), minmax(0, 1fr));
}

.cv-layout-grid .cv-render-section {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.45rem;
  padding: 0.85rem;
}

.cv-template-modern {
  --cv-accent: #2563eb;
}

.cv-template-corporate {
  --cv-accent: #5fa64a;
}

.cv-template-minimal {
  --cv-accent: #111827;
}

.cv-template-creative {
  --cv-accent: #f97316;
}

.cv-template-ats {
  --cv-accent: #2f8f46;
}

.cv-template-premium {
  --cv-accent: #7c3aed;
}

.cv-template-executive .cv-doc-header,
.cv-template-black-gold .cv-doc-header {
  background: #090909;
}

.cv-template-executive .cv-render-section h3,
.cv-template-black-gold .cv-render-section h3 {
  letter-spacing: 0.18em;
}

.cv-template-corporate .cv-doc-header,
.cv-template-accountant .cv-doc-header,
.cv-template-manager .cv-doc-header {
  background: #0f172a;
}

.cv-template-graphic,
.cv-template-geometric {
  background:
    radial-gradient(circle at 94% 7%, color-mix(in srgb, var(--cv-accent) 20%, transparent) 0 5rem, transparent 5.1rem),
    linear-gradient(90deg, #ffffff 0 72%, color-mix(in srgb, var(--cv-accent) 10%, #ffffff) 72% 100%);
}

.cv-template-graphic .cv-doc-header h2,
.cv-template-marketing .cv-doc-header h2,
.cv-template-orange-designer .cv-doc-header h2,
.cv-template-geometric .cv-doc-header h2 {
  font-family: "Trebuchet MS", var(--cv-font);
  text-transform: uppercase;
}

.cv-template-dark-sidebar .cv-doc-header,
.cv-template-developer .cv-doc-header {
  background: #0b1120;
}

.cv-template-developer {
  background:
    linear-gradient(90deg, rgba(6, 182, 212, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(6, 182, 212, 0.08) 1px, transparent 1px),
    var(--cv-paper);
  background-size: 1rem 1rem;
}

.cv-template-ux .cv-render-section,
.cv-template-portfolio-clean .cv-render-section,
.cv-template-architecture .cv-render-section {
  background: rgba(255, 255, 255, 0.72);
}

.cv-template-luxury-beige {
  color: #3f2c1f;
}

.cv-template-luxury-beige .cv-doc-header {
  background: #3f2c1f;
}

.cv-template-yellow-creative .cv-doc-header,
.cv-template-sales .cv-doc-header {
  background: #111;
}

.cv-template-green-pro .cv-doc-header {
  background: #052e16;
}

.cv-template-blue-business .cv-doc-header {
  background: #172554;
}

.cv-template-photo-header .cv-doc-header {
  min-height: 16rem;
}

.cv-template-timeline .cv-render-section h3 {
  border-bottom: 0;
}

.cv-template-simple-ats {
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.12);
}

.cv-template-simple-ats .cv-doc-header,
.cv-template-minimal .cv-doc-header {
  background: #fff;
  color: #111827;
}

.cv-template-simple-ats .cv-doc-header h2,
.cv-template-minimal .cv-doc-header h2 {
  color: #111827;
}

.cv-template-skill-bars .cv-skill-list i {
  height: 0.52rem;
}

.cv-template-hr .cv-doc-header {
  background: #831843;
}

.cv-template-graduate .cv-doc-header {
  background: #eef2ff;
  color: #111827;
}

.cv-template-graduate .cv-doc-header h2 {
  color: #111827;
}

.cv-template-healthcare .cv-photo-frame,
.cv-template-student .cv-photo-frame,
.cv-template-graduate .cv-photo-frame {
  border-style: double;
}

.cv-style-bars .cv-render-section h3 {
  background: var(--cv-accent);
  border: 0;
  color: #fff;
  display: inline-flex;
  padding: 0.35rem 0.55rem;
}

.cv-style-chips .cv-render-section h3 {
  background: color-mix(in srgb, var(--cv-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--cv-accent) 36%, transparent);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  width: fit-content;
}

.cv-style-plain .cv-render-section h3 {
  border-bottom-color: #111827;
  color: #111827;
}

.cv-preview-dark {
  background: #111827;
  color: #fff;
}

.cv-preview-dark .cv-doc-header h2,
.cv-preview-dark .cv-render-section h3 {
  color: #fff;
}

.cv-preview-dark .cv-render-section p,
.cv-preview-dark .cv-render-section li,
.cv-preview-dark .cv-entry p,
.cv-preview-dark .cv-entry-meta {
  color: rgba(255, 255, 255, 0.78) !important;
}

@media (max-width: 1100px) {
  .cv-start-panel {
    grid-template-columns: 1fr 1fr;
  }

  .cv-readiness-card {
    grid-column: 1 / -1;
  }

  .cv-pro-workspace {
    grid-template-columns: 1fr;
  }

  .cv-builder-panel {
    max-height: none;
    position: static;
  }
}

@media (max-width: 760px) {
  body:has(.cv-builder-shell) .assistant-panel {
    display: none;
  }

  .cv-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .cv-export-actions {
    justify-content: stretch;
  }

  .cv-export-actions > * {
    flex: 1 1 9rem;
  }

  .cv-start-panel,
  .cv-preset-actions {
    grid-template-columns: 1fr;
  }

  .cv-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-doc-header,
  .cv-layout-sidebar .cv-doc-sections,
  .cv-doc-sections {
    column-count: 1;
  }

  .cv-layout-sidebar {
    grid-template-columns: 1fr;
  }

  .cv-layout-sidebar .cv-doc-header,
  .cv-layout-sidebar .cv-doc-sections {
    grid-column: auto;
    min-height: auto;
  }

  .cv-contact-list {
    justify-items: start;
    text-align: left;
  }

  .cv-document {
    min-height: auto;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .cv-status-strip,
  .cv-ai-actions {
    grid-template-columns: 1fr;
  }

  .cv-section-editor-head,
  .cv-mini-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cv-section-actions {
    width: 100%;
  }

  .cv-section-actions button {
    flex: 1;
  }
}

.cv-dashboard-strip {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.cv-dashboard-strip article,
.cv-section-rail {
  backdrop-filter: blur(22px);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.85rem;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
  padding: 0.9rem;
}

.cv-dashboard-strip span,
.cv-dashboard-strip small,
.cv-market-card small {
  color: rgba(100, 116, 139, 0.9);
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dark .cv-dashboard-strip span,
.dark .cv-dashboard-strip small,
.dark .cv-market-card small {
  color: rgba(255, 255, 255, 0.58);
}

.cv-dashboard-strip strong {
  display: block;
  font-size: 1rem;
  font-weight: 950;
  margin: 0.18rem 0;
}

.cv-dashboard-strip button,
.cv-card-actions button {
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.55rem;
  color: inherit;
  font-size: 0.74rem;
  font-weight: 950;
  margin-top: 0.55rem;
  min-height: 2.15rem;
  padding: 0.4rem 0.62rem;
}

.cv-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cv-pro-workspace {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(15rem, 0.52fr) minmax(20rem, 0.78fr) minmax(31rem, 1.25fr);
}

.cv-section-rail,
.cv-builder-panel,
.cv-preview-pro {
  max-height: calc(100vh - 5.5rem);
  overflow-y: auto;
  position: sticky;
  top: 5rem;
}

.cv-section-nav {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.cv-section-nav button {
  align-items: center;
  background: rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.6rem;
  color: inherit;
  display: flex;
  gap: 0.55rem;
  justify-content: space-between;
  min-height: 2.45rem;
  padding: 0.45rem 0.6rem;
  text-align: left;
}

.cv-section-nav button.is-hidden {
  opacity: 0.52;
}

.cv-section-nav span {
  font-size: 0.82rem;
  font-weight: 950;
}

.cv-section-nav small {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 900;
}

.cv-page-viewport {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1px),
    rgba(15, 23, 42, 0.06);
  background-size: 24px 24px;
  border-radius: 0.75rem;
  max-height: calc(100vh - 12rem);
  overflow: auto;
  padding: 1rem;
}

.cv-document {
  --cv-secondary: #334155;
  --cv-text: #15191f;
  --cv-margin: 18mm;
  --cv-page-padding: 20mm;
  --cv-align: left;
  --cv-shape-color: #d4af37;
  --cv-shape-opacity: 0.16;
  --cv-shape-size: 120px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
  color: var(--cv-text);
  margin: 0 auto;
  min-height: 297mm;
  overflow: hidden;
  width: 210mm;
}

.cv-doc-header {
  background: var(--cv-secondary);
  padding: var(--cv-page-padding);
  text-align: var(--cv-align);
}

.cv-doc-sections {
  padding: var(--cv-margin);
}

.cv-layout-sidebar .cv-doc-header {
  background: var(--cv-secondary);
  min-height: 297mm;
}

.cv-layout-sidebar .cv-doc-sections {
  padding: var(--cv-margin);
}

.cv-layout-columns .cv-doc-header {
  background: linear-gradient(90deg, color-mix(in srgb, var(--cv-secondary) 88%, #ffffff), color-mix(in srgb, var(--cv-accent) 52%, #ffffff));
  color: #fff;
}

.cv-layout-columns .cv-doc-header h2,
.cv-layout-columns .cv-doc-header p[data-cv="title"] {
  color: #fff;
}

.cv-contact-list a,
.cv-contact-list span {
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.cv-contact-list a::before {
  color: var(--cv-accent);
  content: "* ";
}

.cv-contact-list span::before {
  content: "* ";
}

.cv-contact-list a:hover {
  color: var(--cv-accent);
}

.cv-doc-shape {
  background: var(--cv-shape-color);
  height: var(--cv-shape-size);
  opacity: var(--cv-shape-opacity);
  pointer-events: none;
  position: absolute;
  right: -2rem;
  top: 2rem;
  width: var(--cv-shape-size);
  z-index: 0;
}

.cv-document[data-shape="none"] .cv-doc-shape {
  display: none;
}

.cv-document[data-shape="circle"] .cv-doc-shape {
  border-radius: 999px;
}

.cv-document[data-shape="square"] .cv-doc-shape {
  border-radius: 0.35rem;
}

.cv-document[data-shape="rectangle"] .cv-doc-shape {
  border-radius: 0.35rem;
  width: calc(var(--cv-shape-size) * 1.6);
}

.cv-document[data-shape="triangle"] .cv-doc-shape {
  background: transparent;
  border-bottom: var(--cv-shape-size) solid var(--cv-shape-color);
  border-left: calc(var(--cv-shape-size) / 1.5) solid transparent;
  border-right: calc(var(--cv-shape-size) / 1.5) solid transparent;
  height: 0;
  width: 0;
}

.cv-document[data-shape="line"] .cv-doc-shape {
  height: 0.35rem;
  top: 4rem;
  width: calc(var(--cv-shape-size) * 2);
}

.cv-document[data-background="dark"] {
  --cv-paper: #111827;
  --cv-text: #f8fafc;
}

.cv-document[data-background="blue-gradient"] {
  background: linear-gradient(135deg, #eff6ff, var(--cv-paper) 38%, #dbeafe);
}

.cv-document[data-background="geometric"] {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cv-accent) 14%, transparent) 25%, transparent 25%) 0 0 / 3rem 3rem,
    var(--cv-paper);
}

.cv-document[data-background="abstract"] {
  background:
    radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--cv-accent) 24%, transparent), transparent 10rem),
    radial-gradient(circle at 8% 86%, color-mix(in srgb, var(--cv-secondary) 14%, transparent), transparent 9rem),
    var(--cv-paper);
}

.cv-page-rule {
  border-top: 1px dashed rgba(148, 163, 184, 0.65);
  left: 0;
  position: absolute;
  right: 0;
  top: 297mm;
}

.cv-page-indicator,
.cv-print-note {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

.cv-print-note {
  margin-top: 0.75rem;
}

.cv-mini-actions {
  flex-wrap: wrap;
}

.cv-mini-actions .glass-btn {
  min-width: 2.35rem;
}

.cv-template-ats-modern,
.cv-template-ats-professional,
.cv-template-ats-minimal,
.cv-template-ats-technical,
.cv-template-fresher-resume {
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.12);
}

.cv-template-business-black .cv-doc-header,
.cv-template-elegant-dark .cv-doc-header {
  background: #030712;
}

.cv-template-luxury-gold .cv-doc-header,
.cv-template-modern-executive .cv-doc-header {
  background: #18130a;
}

.cv-template-creative-gradient,
.cv-template-modern-designer {
  background:
    radial-gradient(circle at 94% 7%, color-mix(in srgb, var(--cv-accent) 20%, transparent) 0 5rem, transparent 5.1rem),
    linear-gradient(90deg, #ffffff 0 72%, color-mix(in srgb, var(--cv-accent) 10%, #ffffff) 72% 100%);
}

.cv-template-silicon-valley {
  background:
    linear-gradient(90deg, rgba(6, 182, 212, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(6, 182, 212, 0.08) 1px, transparent 1px),
    var(--cv-paper);
  background-size: 1rem 1rem;
}

@media (max-width: 1240px) {
  .cv-pro-workspace {
    grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1fr);
  }

  .cv-preview-pro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .cv-dashboard-strip,
  .cv-pro-workspace {
    grid-template-columns: 1fr;
  }

  .cv-section-rail,
  .cv-builder-panel,
  .cv-preview-pro {
    max-height: none;
    position: static;
  }
}

@media print {
  body > *:not(main),
  .cv-builder-shell > *:not(.cv-workspace),
  .cv-section-rail,
  .cv-builder-panel,
  .cv-preview-head,
  .cv-print-note {
    display: none !important;
  }

  .cv-workspace,
  .cv-pro-workspace,
  .cv-preview-pro,
  .cv-page-viewport {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .cv-document {
    box-shadow: none !important;
    min-height: 297mm;
    transform: none !important;
    width: 210mm;
  }
}

.google-login-btn {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  color: #111827;
  display: flex;
  font-size: 0.9rem;
  font-weight: 950;
  justify-content: center;
  min-height: 3rem;
  width: 100%;
}

.dash-body {
  background:
    linear-gradient(135deg, rgba(5, 10, 22, 0.96), rgba(18, 24, 38, 0.94)),
    radial-gradient(circle at 80% 10%, rgba(212, 175, 55, 0.18), transparent 28%);
  color: #e5e7eb;
  display: grid;
  font-family: Inter, system-ui, sans-serif;
  grid-template-columns: 17.5rem minmax(0, 1fr);
  min-height: 100vh;
}

.dash-sidebar {
  background: rgba(2, 6, 23, 0.72);
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  min-height: 100vh;
  padding: 1rem;
  position: sticky;
  top: 0;
}

.dash-brand {
  align-items: center;
  color: #fff;
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.7rem;
}

.dash-brand span {
  background: #d4af37;
  border-radius: 0.65rem;
  color: #0b1120;
  display: grid;
  font-weight: 1000;
  height: 2.5rem;
  place-items: center;
  width: 2.5rem;
}

.dash-nav {
  display: grid;
  gap: 0.25rem;
}

.dash-nav a,
.dash-top-actions a,
.dash-top-actions button,
.dash-btn,
.dash-item-actions a,
.dash-item-actions button,
.dash-search button {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.65rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.65rem 0.8rem;
}

.dash-nav a {
  border-color: transparent;
  display: block;
}

.dash-nav a:hover,
.dash-nav a.active,
.dash-top-actions a,
.dash-primary {
  background: #d4af37;
  color: #0b1120;
}

.dash-main {
  min-width: 0;
  padding: 1rem;
}

.dash-topbar,
.dash-panel,
.dash-stat,
.dash-messages {
  backdrop-filter: blur(24px);
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.dash-topbar {
  align-items: center;
  border-radius: 0.85rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1rem;
}

.dash-topbar p,
.dash-panel-head p,
.dash-stat span,
.dash-subtitle {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dash-topbar h1,
.dash-panel h2 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 950;
  margin-top: 0.1rem;
}

.dash-top-actions,
.dash-actions,
.dash-item-actions,
.dash-panel-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: space-between;
}

.dash-grid-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.dash-stat {
  border-radius: 0.85rem;
  padding: 1rem;
}

.dash-stat strong {
  color: #fff;
  display: block;
  font-size: 1.7rem;
  font-weight: 1000;
  margin-top: 0.35rem;
}

.dash-stat.good strong {
  color: #86efac;
}

.dash-stat.danger strong {
  color: #fca5a5;
}

.dash-two-col {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 1rem;
}

.dash-manager-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(22rem, 0.75fr);
}

.dash-panel {
  border-radius: 0.85rem;
  padding: 1rem;
}

.dash-panel-head {
  margin-bottom: 1rem;
}

.dash-feed,
.dash-table,
.dash-sortable,
.dash-form,
.dash-form-grid {
  display: grid;
  gap: 0.7rem;
}

.dash-feed div,
.dash-row,
.dash-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.7rem;
  padding: 0.75rem;
}

.dash-feed strong,
.dash-row span:first-child,
.dash-item strong {
  color: #fff;
  display: block;
  font-weight: 950;
}

.dash-feed span,
.dash-row span,
.dash-item span {
  color: #94a3b8;
  font-size: 0.8rem;
}

.dash-row {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dash-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-form-grid.single {
  grid-template-columns: 1fr;
}

.dash-form label {
  display: grid;
  gap: 0.35rem;
}

.dash-form label span {
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 900;
}

.dash-input,
.dash-file,
.dash-color,
.dash-search input,
.dash-search select,
.dash-form textarea,
.dash-form select,
.dash-form input:not([type="checkbox"]) {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.65rem;
  color: #fff;
  min-height: 2.8rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.dash-color {
  height: 3rem;
  padding: 0.2rem;
}

.dash-check-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.65rem;
  display: flex !important;
  justify-content: space-between;
  padding: 0.7rem;
}

.dash-check {
  accent-color: #d4af37;
  height: 1.1rem;
  width: 1.1rem;
}

.dash-primary {
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 1000;
  padding: 0.8rem 1rem;
}

.dash-messages {
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
}

.dash-messages p {
  color: #fde68a;
  font-weight: 850;
}

.dash-search {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-bottom: 1rem;
}

.dash-item {
  align-items: center;
  cursor: grab;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.dash-item.dragging {
  border-color: #d4af37;
  opacity: 0.72;
}

.dash-item-actions form {
  display: inline-flex;
}

.dash-error,
.dash-form em {
  color: #fca5a5;
  font-size: 0.78rem;
  font-style: normal;
}

.dash-empty {
  color: #94a3b8;
  padding: 1rem;
}

@media (max-width: 1120px) {
  .dash-body {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    min-height: auto;
    position: static;
  }

  .dash-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-grid-cards,
  .dash-two-col,
  .dash-manager-layout,
  .dash-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dash-topbar,
  .dash-item {
    align-items: stretch;
    flex-direction: column;
  }

  .dash-row,
  .dash-search,
  .dash-nav {
    grid-template-columns: 1fr;
  }
}

.auth-wrap-wide {
  max-width: 48rem;
}

.auth-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68)),
    radial-gradient(circle at 100% 0, rgba(212, 175, 55, 0.22), transparent 28%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.16);
}

.dark .auth-card {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.68)),
    radial-gradient(circle at 100% 0, rgba(212, 175, 55, 0.18), transparent 28%);
}

.auth-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.google-login-btn {
  gap: 0.7rem;
  margin-bottom: 1rem;
  min-height: 3.25rem;
}

.google-login-btn span {
  background: #111827;
  border-radius: 999px;
  color: #fff;
  display: grid;
  font-weight: 1000;
  height: 1.75rem;
  place-items: center;
  width: 1.75rem;
}

.auth-divider {
  align-items: center;
  color: #64748b;
  display: grid;
  font-size: 0.72rem;
  font-weight: 950;
  gap: 0.75rem;
  grid-template-columns: 1fr auto 1fr;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  background: rgba(148, 163, 184, 0.34);
  content: "";
  height: 1px;
}

.dash-body {
  background:
    radial-gradient(circle at 18% 10%, rgba(212, 175, 55, 0.18), transparent 24rem),
    radial-gradient(circle at 88% 0, rgba(20, 184, 166, 0.12), transparent 22rem),
    linear-gradient(135deg, #030712, #111827 50%, #0f172a);
  grid-template-columns: 18.5rem minmax(0, 1fr);
}

.dash-sidebar {
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dash-brand {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.9rem;
  margin-bottom: 0;
}

.dash-brand {
  flex-wrap: wrap;
}

.dash-brand small {
  color: #94a3b8;
  flex-basis: 100%;
  font-size: 0.72rem;
  font-weight: 850;
  margin-left: 3.3rem;
  margin-top: -0.5rem;
}

.dash-user-card {
  align-items: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 0.9rem;
  display: flex;
  gap: 0.75rem;
  padding: 0.8rem;
}

.dash-user-card > span {
  background: #d4af37;
  border-radius: 999px;
  color: #0b1120;
  display: grid;
  flex: 0 0 auto;
  font-weight: 1000;
  height: 2.35rem;
  place-items: center;
  width: 2.35rem;
}

.dash-user-card strong,
.dash-user-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-user-card strong {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 950;
}

.dash-user-card small {
  color: #94a3b8;
  font-size: 0.72rem;
  max-width: 12rem;
}

.dash-nav {
  gap: 0.32rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.dash-nav a {
  border-radius: 0.7rem;
  color: #aab6c8;
}

.dash-nav a:hover,
.dash-nav a.active {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.28);
  color: #fde68a;
}

.dash-main {
  padding: 1.25rem;
}

.dash-topbar {
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
}

.dash-top-actions a,
.dash-top-actions button,
.dash-btn {
  background: rgba(255, 255, 255, 0.055);
}

.dash-top-actions a:hover,
.dash-top-actions button:hover,
.dash-btn:hover {
  border-color: rgba(212, 175, 55, 0.34);
  color: #fde68a;
}

.dash-panel,
.dash-stat,
.dash-messages {
  border-radius: 1rem;
}

.dash-stat {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(15, 23, 42, 0.68);
}

@media (max-width: 1120px) {
  .dash-sidebar {
    max-height: none;
  }

  .dash-user-card {
    align-self: stretch;
  }
}
