@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');

:root {
  --wine: #7b2036;
  --wine2: #a73b55;
  --cream: #fbf7f3;
  --ink: #261d20;
  --muted: #766b6c;
  --line: #e9ded8;
  --gold: #c59a50;
  --green: #23815b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}


/* =====================================================
   NAVIGATION
===================================================== */

.nav {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  padding: 0 6%;
  gap: 34px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.brand span:last-child {
  color: var(--wine);
}

.brand-icon {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f8e7e9;
  color: var(--wine);
  font-size: 21px;
}

.nav nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: #5c5355;
}

.nav nav a {
  color: inherit;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.small-btn,
.primary-btn,
.secondary-btn,
.premium-btn {
  border: 0;
  border-radius: 8px;
  padding: 12px 17px;
  font-weight: 800;
}

.small-btn,
.primary-btn {
  background: var(--wine);
  color: #fff;
}

.secondary-btn {
  background: #fff;
  color: var(--wine);
  border: 1px solid #d8c7c3;
}

.premium-btn {
  background: #191516;
  color: #fff;
}

.lang {
  border: 1px solid #ddd0cb;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
}


/* =====================================================
   HERO
===================================================== */

.hero {
  padding: 82px 7% 92px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background:
    radial-gradient(circle at 85% 20%, #f1dfe0, transparent 35%),
    linear-gradient(120deg, #fff, #faf0ea);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--wine);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  line-height: 1.03;
  max-width: 650px;
  margin: 18px 0;
}

.hero h1 em,
h2 em {
  color: var(--wine);
}

.hero-copy > p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin: 30px 0;
}

.primary-btn {
  display: inline-block;
}

.ghost-btn {
  padding: 12px 17px;
  font-weight: 800;
  color: var(--wine);
  border: 1px solid #d9c6c1;
  border-radius: 8px;
}

.ticks {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: #665c5e;
}


/* =====================================================
   HERO STAGE
===================================================== */

.hero-stage {
  position: relative;
  z-index: 1;
  max-width: 530px;
  margin: auto;
}

.hero-stage .paper {
  position: relative;
  z-index: 10;
  cursor: pointer;
  background: #fff;
  border: 9px solid #e6cc91;
  padding: 34px;
  box-shadow: 0 25px 70px #4a272414;
  transform: rotate(1deg);
}

.hero-stage .decor {
  display: none !important;
}


/* =====================================================
   PAPER
===================================================== */

.paper-top {
  text-align: center;
  color: #9d712e;
  font-family: serif;
  margin-bottom: 22px;
}

.paper-person {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.paper-person small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #9d712e;
}

.paper-person h2 {
  font: 700 29px 'Playfair Display';
  margin: 8px 0 3px;
}

.paper-person p {
  margin: 0;
  color: #777;
  font-size: 12px;
}

.paper-photo {
  width: 92px;
  height: 112px;
  background: #eee2dc;
  display: grid;
  place-items: center;
  color: #9b8e89;
  font-size: 10px;
}

.paper hr {
  border: 0;
  height: 2px;
  background: #d6b16a;
  margin: 22px 0;
}

.paper h5 {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #9d712e;
}

.paper-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  font-size: 9px;
}

.paper-details span {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #eee;
  padding: 5px 0;
  color: #777;
}

.paper-details b {
  color: #3d3537;
}

.paper-foot {
  margin-top: 25px;
  padding-top: 12px;
  border-top: 1px solid #eadfd8;
  font-size: 9px;
}


/* =====================================================
   DECORATIONS
===================================================== */

.decor {
  position: absolute;
  background: #fff;
  padding: 12px 15px;
  border-radius: 9px;
  box-shadow: 0 12px 30px #0002;
  font-size: 11px;
  font-weight: 800;
}

.d1 {
  right: -25px;
  top: 30px;
  color: var(--wine);
}

.d2 {
  left: -25px;
  bottom: 20px;
  color: #98712d;
}


/* =====================================================
   STATS
===================================================== */

.stats {
  background: var(--wine);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 29px 7%;
}

.stats div {
  text-align: center;
  border-right: 1px solid #fff3;
}

.stats div:last-child {
  border: 0;
}

.stats b {
  display: block;
  font: 700 27px 'Playfair Display';
}

.stats span {
  font-size: 11px;
  opacity: .8;
}


/* =====================================================
   SECTIONS
===================================================== */

.section {
  padding: 88px 7%;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px;
}

.section h2,
.maker-title h2 {
  font: 700 44px 'Playfair Display';
  margin: 10px 0;
}

.section-head p {
  max-width: 350px;
  color: var(--muted);
  line-height: 1.6;
}


/* =====================================================
   FILTERS
===================================================== */

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.filter {
  border: 1px solid #ded1cc;
  background: #fff;
  padding: 9px 14px;
  border-radius: 30px;
}

.filter.active {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}


/* =====================================================
   TEMPLATE GRID
===================================================== */

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.template-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  transition: .2s;
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px #40201a12;
}

.template-art {
  height: 235px;
  padding: 22px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.template-art .tp {
  width: 48px;
  height: 62px;
  background: #e8ded9;
  position: absolute;
  right: 18px;
  top: 23px;
}

.template-art .tt {
  font: 700 19px 'Playfair Display';
  padding-top: 20px;
  max-width: 150px;
}

.template-art .tl {
  height: 2px;
  width: 80px;
  margin: 12px 0;
}

.template-art .lines {
  height: 90px;
  background:
    repeating-linear-gradient(
      #fff 0 12px,
      #eee 13px 14px
    );
  margin-top: 18px;
}

.template-card footer {
  background: none;
  color: var(--ink);
  padding: 10px 3px 3px;
  display: block;
}

.template-card footer b {
  display: block;
}

.template-card footer small {
  color: var(--muted);
}


/* =====================================================
   TEMPLATE COLORS
===================================================== */

.gold {
  border: 7px solid #e6cc91;
}

.rose {
  border: 7px solid #dca9b3;
}

.blue {
  border: 7px solid #3c5e70;
}

.green {
  border: 7px solid #98b4a1;
}

.purple {
  border: 7px solid #9b87a7;
}

.orange {
  border: 7px solid #d6a071;
}

.cream {
  border: 7px solid #d7c5a1;
}

.red {
  border: 7px solid #b86d6d;
}


/* =====================================================
   HOW IT WORKS
===================================================== */

.how {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps > div {
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 12px;
}

.steps span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f8e7e9;
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
}

.steps h3 {
  margin: 20px 0 6px;
}

.steps p {
  color: var(--muted);
  font-size: 14px;
}


/* =====================================================
   MAKER
===================================================== */

.maker {
  padding: 85px 7% 0 !important;
  margin: 0 !important;
  background: #f4eae5;
}

.maker-title {
  text-align: center;
}

.maker-title p {
  color: var(--muted);
}

.maker-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 38px;
  margin-bottom: 0 !important;
}

.form-card,
.preview-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
  margin-bottom: 0 !important;
}

.form-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.form-top span {
  font-size: 11px;
  color: var(--wine);
  font-weight: 800;
}


/* =====================================================
   MINI TEMPLATES
===================================================== */

.mini-templates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 28px;
  max-height: 245px;
  overflow: auto;
  padding-right: 4px;
}

.mini {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 7px;
  padding: 9px 12px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini.active {
  border-color: var(--wine);
  color: var(--wine);
}


/* =====================================================
   FORM
===================================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #554b4d;
}

.full {
  margin-top: 13px;
}

input,
textarea {
  border: 1px solid #dcd0cb;
  border-radius: 7px;
  padding: 11px;
  outline: 0;
}

input:focus,
textarea:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px #7b203610;
}

.upload {
  border: 1px dashed #cdbdb7;
  padding: 12px;
  border-radius: 8px;
  background: #fcfaf9;
}

.upload span {
  font-weight: 500;
  color: var(--wine);
}

.download-row {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.payment-note {
  font-size: 10px;
  color: #887d7e;
}


/* =====================================================
   PREVIEW
===================================================== */

.preview-bar {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: #766b6d;
  margin-bottom: 12px;
}

.preview-bar span {
  float: right;
  color: var(--green);
}

.bio-preview {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background: #fff;
  padding: 34px;
  transition: .2s;
  font-family: Georgia, serif;
}

.bio-preview.design-1 {
  border: 8px solid #e6cc91;
}

.bio-preview.design-2 {
  border: 8px solid #dca9b3;
}

.bio-preview.design-3 {
  border: 8px solid #3c5e70;
}


/* =====================================================
   BIODATA COMMON ELEMENTS
===================================================== */

.bio-preview .bio-ornament,
.bio-preview .bio-gold-symbol {
  text-align: center;
  font-family: Georgia, serif;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.bio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.bio-header-text {
  flex: 1;
}

.bio-header-text small {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
}

.bio-header-text h2 {
  font: 700 29px 'Playfair Display';
  margin: 7px 0 4px;
}

.bio-header-text p,
.bio-location {
  margin: 3px 0;
  color: #716668;
  font-size: 11px;
}

.profile {
  width: 105px;
  height: 130px;
  flex: 0 0 105px;
  background: #eee2dc;
  display: grid;
  place-items: center;
  color: #999;
  overflow: hidden;
  border: 1px solid #ddd;
}

.profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.bio-section {
  position: relative;
  z-index: 2;
  margin-top: 23px;
}

.bio-section h5 {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #8d672f;
}

.bio-section-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.bio-row {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dashed #eee;
  padding: 5px 0;
  font-size: 9.5px;
}

.bio-row span {
  color: #766d6e;
}

.bio-row b {
  text-align: right;
  color: #30292a;
  font-weight: 600;
}

.bio-about {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  line-height: 1.6;
  color: #5d5556;
  margin: 0;
}

.bio-foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid #eadfd8;
  padding-top: 12px;
  margin-top: 22px;
  font-size: 9px;
}


/* =====================================================
   DESIGN 1
===================================================== */

.bio-preview.design-1 {
  border: 8px solid #e2c785;
  background: #fffdfb;
  color: #2e2929;
}

.bio-preview.design-1 .bio-ornament {
  color: #9d712e;
}


/* =====================================================
   DESIGN 2
===================================================== */

.bio-preview.design-2 {
  border: 8px solid #f0c95c;
  background: #843b32;
  color: #fff;
}

.bio-preview.design-2 .bio-header-text p,
.bio-preview.design-2 .bio-location,
.bio-preview.design-2 .bio-row span,
.bio-preview.design-2 .bio-about {
  color: #f5e9d7;
}

.bio-preview.design-2 .bio-header-text h2,
.bio-preview.design-2 .bio-row b {
  color: #fff;
}

.bio-preview.design-2 .bio-section h5 {
  background: #e9bf4d;
  color: #fff;
  display: table;
  padding: 7px 18px;
  border-radius: 18px;
}

.bio-preview.design-2 .bio-row {
  border-color: #ffffff25;
}


/* =====================================================
   DESIGN 3
===================================================== */

.bio-preview.design-3 {
  border: 8px solid #e7ba45;
  background: #2e518f;
  color: #fff;
}

.bio-preview.design-3 .bio-header-text p,
.bio-preview.design-3 .bio-location,
.bio-preview.design-3 .bio-row span,
.bio-preview.design-3 .bio-about {
  color: #e9eef8;
}

.bio-preview.design-3 .bio-header-text h2,
.bio-preview.design-3 .bio-row b {
  color: #fff;
}

.bio-preview.design-3 .bio-section h5 {
  background: #e7ba45;
  color: #fff;
  display: table;
  padding: 7px 18px;
  border-radius: 18px;
}

.bio-preview.design-3 .bio-row {
  border-color: #ffffff25;
}


/* =====================================================
   DESIGN 4
===================================================== */

.bio-preview.design-4 {
  border: 0;
  background: #fff;
  color: #302a2d;
}

.bio-preview.design-4 .bio-blush-top {
  background: #ead6dd;
  margin: -34px -34px 22px;
  padding: 25px 34px;
  display: flex;
  align-items: center;
  gap: 25px;
}

.bio-preview.design-4 .bio-blush-top .profile {
  order: -1;
  border-radius: 50%;
  width: 105px;
  height: 105px;
  flex-basis: 105px;
  border: 0;
}

.bio-preview.design-4 .bio-blush-top h2 {
  font: 700 27px 'Playfair Display';
  margin: 0 0 7px;
}

.bio-preview.design-4 .bio-blush-top p {
  margin: 4px 0;
  font-size: 10px;
}

.bio-preview.design-4 .bio-section h5 {
  display: table;
  margin: 0 auto 12px;
  padding: 7px 22px;
  border-radius: 16px;
  background: #ead6dd;
  color: #4d3c43;
}


/* =====================================================
   DESIGN 5
===================================================== */

.bio-preview.design-5 {
  border: 8px solid #d9bf77;
  background: #faf1dc;
}

.bio-preview.design-5 .bio-gold-symbol {
  color: #8b6a2f;
  font-size: 12px;
}

.bio-preview.design-5 .bio-section h5 {
  color: #7b5c29;
}


/* =====================================================
   DESIGN 6
===================================================== */

.bio-preview.design-6 {
  border: 5px solid #b58a45;
  background: #fffdf9;
}

.bio-preview.design-6::before,
.bio-preview.design-6::after {
  content: "✦";
  position: absolute;
  color: #b58a45;
  font-size: 45px;
  z-index: 1;
}

.bio-preview.design-6::before {
  left: 14px;
  top: 8px;
}

.bio-preview.design-6::after {
  right: 14px;
  bottom: 8px;
}

.bio-preview.design-6 .bio-corner-ornaments {
  position: absolute;
  inset: 10px;
  border: 1px solid #b58a45;
  pointer-events: none;
  color: transparent;
}


/* =====================================================
   DESIGN 7
===================================================== */

.bio-preview.design-7 {
  border: 0;
  background: #7f3030;
  color: #fff;
}

.bio-preview.design-7 .bio-header-text h2,
.bio-preview.design-7 .bio-row b {
  color: #fff;
}

.bio-preview.design-7 .bio-header-text p,
.bio-preview.design-7 .bio-location,
.bio-preview.design-7 .bio-row span,
.bio-preview.design-7 .bio-about {
  color: #f5dddd;
}

.bio-preview.design-7 .bio-section h5 {
  background: #f0c95c;
  color: #fff;
  padding: 7px 18px;
  border-radius: 3px;
  display: table;
}

.bio-preview.design-7 .bio-row {
  border-color: #ffffff2a;
}


/* =====================================================
   DESIGN 8
===================================================== */

.bio-preview.design-8 {
  border: 8px solid #d9bd69;
  background: #fff0bd;
}

.bio-preview.design-8 .bio-section h5 {
  background: #a8482d;
  color: #fff;
  display: table;
  padding: 7px 15px;
  border-radius: 2px;
}

.bio-preview.design-8 .bio-gold-symbol {
  color: #a8482d;
  font-size: 12px;
}


/* =====================================================
   DESIGN 9
===================================================== */

.bio-preview.design-9 {
  border: 7px solid #d7d0c5;
  background: #fffefa;
}

.bio-preview.design-9 .bio-floral-watermark {
  position: absolute;
  right: -20px;
  top: 30px;
  font-size: 180px;
  color: #e6e0d7;
  opacity: .45;
  transform: rotate(-15deg);
  z-index: 0;
}

.bio-preview.design-9 .bio-section h5 {
  color: #8d7345;
}


/* =====================================================
   DESIGN 10
===================================================== */

.bio-preview.design-10 {
  border: 7px solid #d0b35b;
  background: #fffefa;
}

.bio-preview.design-10 .bio-floral-watermark {
  position: absolute;
  left: -15px;
  bottom: -30px;
  font-size: 180px;
  color: #d5e5eb;
  opacity: .7;
  z-index: 0;
}

.bio-preview.design-10 .bio-section h5 {
  color: #477e9e;
}

.bio-preview.design-10 .bio-row {
  border-color: #e4e9eb;
}


/* =====================================================
   TEMPLATE PREVIEW CARDS
===================================================== */

.template-art.design-thumb {
  border: 0;
}

.template-art.design-1 {
  background: #fffdfb;
  border: 7px solid #e2c785;
}

.template-art.design-2 {
  background: #843b32;
  border: 7px solid #f0c95c;
  color: #fff;
}

.template-art.design-3 {
  background: #2e518f;
  border: 7px solid #e7ba45;
  color: #fff;
}

.template-art.design-4 {
  background: #ead6dd;
  border: 0;
  color: #352c30;
}

.template-art.design-5 {
  background: #faf1dc;
  border: 7px solid #d9bf77;
}

.template-art.design-6 {
  background: #fffdf9;
  border: 7px solid #b58a45;
}

.template-art.design-7 {
  background: #7f3030;
  border: 0;
  color: #fff;
}

.template-art.design-8 {
  background: #fff0bd;
  border: 7px solid #d9bd69;
}

.template-art.design-9 {
  background: #fffefa;
  border: 7px solid #d7d0c5;
}

.template-art.design-10 {
  background: #fffefa;
  border: 7px solid #d0b35b;
}

.template-art.design-2,
.template-art.design-3,
.template-art.design-7 {
  color: #fff;
}

.template-art.design-4,
.template-art.design-9,
.template-art.design-10 {
  color: #3a3436;
}


/* =====================================================
   TEMPLATE THUMBNAILS
===================================================== */

.thumb-photo {
  width: 58px;
  height: 72px;
  background: #e8ded9;
  position: absolute;
  right: 16px;
  top: 18px;
  border-radius: 2px;
}

.thumb-title {
  font: 700 17px 'Playfair Display';
  padding-top: 17px;
  max-width: 145px;
}

.thumb-section {
  width: 80px;
  height: 8px;
  border-radius: 8px;
  margin-top: 16px;
  background: currentColor;
  opacity: .65;
}

.thumb-lines {
  height: 80px;
  margin-top: 16px;
  background:
    repeating-linear-gradient(
      transparent 0 10px,
      #777 11px 12px
    );
  opacity: .22;
}


/* =====================================================
   ADMIN
===================================================== */

.premium {
  background: #fff5df;
  border: 1px solid #ead19a;
}

.admin-body {
  background: #f5efeb;
}

.admin {
  padding: 60px 7%;
  max-width: 1200px;
  margin: auto;
}

.admin-head h1 {
  font: 700 45px 'Playfair Display';
  margin: 10px 0;
}

.admin-head p {
  color: var(--muted);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.admin-stats div {
  background: #fff;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-stats b {
  display: block;
  font: 700 28px 'Playfair Display';
}

.admin-stats span {
  font-size: 12px;
  color: var(--muted);
}

.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin: 18px 0;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-table .row {
  display: grid;
  grid-template-columns: 60px 1fr 120px 100px;
  align-items: center;
  border-top: 1px solid #eee;
  padding: 12px 0;
  font-size: 13px;
}

.thumb {
  width: 45px;
  height: 55px;
}

.setup {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  gap: 12px;
  align-items: end;
}

.setup label {
  font-size: 11px;
}

.setup button {
  height: 43px;
}

.admin-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.admin-actions button {
  border: 1px solid #d9ceca;
  background: #fff;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 10px;
}

.admin-table small {
  font-size: 10px;
}


/* =====================================================
   TOAST
===================================================== */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #20191b;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  display: none;
  z-index: 99;
}


/* =====================================================
   FOOTER - COMPACT / NO EXTRA HEIGHT
===================================================== */

.site-footer {
  width: 100% !important;
  background: #241a1d !important;
  color: #fff !important;
  margin: 0 !important;
  padding: 28px 4% !important;
  border: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
  overflow: hidden !important;
  position: relative !important;
  clear: both !important;
  box-sizing: border-box !important;
  min-height: 0 !important;
}

.site-footer > div {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

.site-footer .brand {
  color: #fff !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.site-footer .brand-icon {
  flex-shrink: 0 !important;
}

.site-footer .footer-description {
  color: #eadfd5 !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  flex-shrink: 1 !important;
  margin: 0 !important;
}

.site-footer .footer-links {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  text-align: right !important;
}

.site-footer .footer-links a {
  color: #eadfd5 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.site-footer .footer-links a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

.site-footer .footer-links span {
  color: #eadfd5 !important;
  margin: 0 3px !important;
}

.site-footer-copyright {
  width: 100% !important;
  background: #241a1d !important;
  color: #eadfd5 !important;
  padding: 14px 4% !important;
  margin: 0 !important;
  border: 0 !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  text-align: center !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* Copyright separator: only 40% width, centered */
.site-footer-copyright::before {
  content: "";
  display: block;
  width: 40%;
  height: 1px;
  background: rgba(234,223,213,.16);
  margin: 0 auto 14px;
}

.site-footer-copyright p {
  margin: 0 !important;
  padding: 0 !important;
}

.maker {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.maker-layout {
  margin-bottom: 0 !important;
}

.form-card,
.preview-wrap {
  margin-bottom: 0 !important;
}

.preview-wrap {
  padding-bottom: 25px !important;
}

.site-footer + .site-footer {
  display: none !important;
}


/* =====================================================
   TABLET
===================================================== */

===================================================== */

@media (max-width: 900px) {

  .nav nav {
    display: none;
  }

  .hero,
  .maker-layout {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 48px;
  }

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

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

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .setup {
    grid-template-columns: 1fr;
  }

  .section,
  .maker {
    padding-left: 5%;
    padding-right: 5%;
  }

  .maker {
    padding-bottom: 0 !important;
  }

  .site-footer {
    padding-left: 5%;
    padding-right: 5%;
  }

  .site-footer .footer-links {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    text-align: left;
  }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

  .nav {
    padding: 0 4%;
    gap: 8px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .admin-link {
    display: none;
  }

  .hero {
    padding: 55px 5%;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .ticks {
    flex-wrap: wrap;
    gap: 10px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .stats div {
    border: 0;
  }

  .section-head {
    display: block;
  }

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

  .form-grid,
  .bio-details {
    grid-template-columns: 1fr;
  }

  .download-row > * {
    width: 100%;
  }

  .mini-templates {
    grid-template-columns: 1fr;
    max-height: 260px;
  }

  .bio-preview {
    padding: 22px;
  }

  .bio-preview.design-4 .bio-blush-top {
    margin: -22px -22px 22px;
    padding: 22px;
  }

  .bio-section-body {
    grid-template-columns: 1fr;
  }

  .bio-row {
    font-size: 9px;
  }

  .hero-stage .decor {
    display: none !important;
  }


  /* COMPACT MOBILE FOOTER */

  .site-footer {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 24px 15px !important;
    gap: 13px !important;
    margin: 0 !important;
  }

  .site-footer > div {
    width: 100% !important;
  }

  .site-footer .brand {
    justify-content: center !important;
  }

  .site-footer .footer-description {
    white-space: normal !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  .site-footer .footer-links {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
  }

  .site-footer-copyright {
    text-align: center !important;
    padding: 11px 15px !important;
    font-size: 12px !important;
  }

  .site-footer-copyright::before {
    width: 60%;
    margin-bottom: 10px;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}


/* =====================================================
   PRINT
===================================================== */

@media print {

  body {
    background: #fff;
  }

  .nav,
  .hero,
  .stats,
  .section,
  .how,
  .maker-title,
  .form-card,
  footer,
  .preview-bar {
    display: none !important;
  }

  .maker {
    padding: 0 !important;
    margin: 0 !important;
    background: #fff;
  }

  .maker-layout {
    display: block;
    margin: 0;
  }

  .preview-wrap {
    border: 0;
    padding: 0;
  }

  .bio-preview {
    box-shadow: none;
    min-height: auto;
  }
}


/* =====================================================
   FINAL FOOTER SAFETY
===================================================== */

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

.maker {
  margin-bottom: 0 !important;
}

.site-footer {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.site-footer,
.site-footer * {
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .site-footer {
    margin: 0 !important;
    padding: 24px 15px !important;
  }
}

/* =====================================================
   ACTUAL HTML FOOTER OVERRIDE
   The copyright is the last direct DIV inside .site-footer.
   This overrides the inline footer spacing from index.html.
===================================================== */

.site-footer {
  padding: 18px 4% 12px !important;
  gap: 12px !important;
  min-height: 0 !important;
}

/* Main footer content row */
.site-footer > div:first-child {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* Copyright DIV in the current index.html */
.site-footer > div:last-child {
  width: 100% !important;
  max-width: none !important;
  margin: 10px 0 0 !important;
  padding: 10px 0 0 !important;
  border-top: 0 !important;
  text-align: center !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* Short separator instead of full-width border */
.site-footer > div:last-child::before {
  content: "" !important;
  display: block !important;
  width: 40% !important;
  height: 1px !important;
  background: rgba(234,223,213,.16) !important;
  margin: 0 auto 9px !important;
}

/* Copyright text */
.site-footer > div:last-child p {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

/* Make the large inline sizes in the HTML harmless */
.site-footer > div:last-child[style] {
  margin-top: 10px !important;
  padding-top: 10px !important;
}

/* Mobile */
@media (max-width: 700px) {
  .site-footer {
    padding: 16px 15px 10px !important;
    gap: 9px !important;
  }

  .site-footer > div:last-child {
    margin-top: 8px !important;
    padding-top: 8px !important;
  }

  .site-footer > div:last-child::before {
    width: 60% !important;
    margin-bottom: 7px !important;
  }
}

/* =====================================================
   FINAL FOOTER LINKS TEXT FIX
   Keeps every footer link clearly separated.
===================================================== */

.site-footer .footer-links {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  white-space: normal !important;
  line-height: 1.8 !important;
  min-width: 0 !important;
}

.site-footer .footer-links a {
  display: inline-block !important;
  margin: 0 5px !important;
  padding: 0 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.site-footer .footer-links span {
  display: inline-block !important;
  margin: 0 2px !important;
  padding: 0 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

@media (max-width: 900px) {
  .site-footer .footer-links {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.9 !important;
  }

  .site-footer .footer-links a {
    margin: 0 4px !important;
  }

  .site-footer .footer-links span {
    margin: 0 1px !important;
  }
}

@media (max-width: 600px) {
  .site-footer .footer-links {
    justify-content: center !important;
    line-height: 2 !important;
    font-size: 13px !important;
  }

  .site-footer .footer-links a {
    margin: 0 3px !important;
  }
}
