*{
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{
margin:0;
font-family:Arial,Helvetica,sans-serif;
background:#eef4ff;
color:#172033;
}

button,
input,
textarea,
select{
font-family:inherit;
}

button{
cursor:pointer;
}

.wrap{
max-width:1250px;
margin:auto;
padding:20px;
}

.page{
display:none;
}

.page.active{
display:block;
}

.title{
text-align:center;
margin-bottom:25px;
}

.title h1{
margin:0 0 8px;
font-size:34px;
}

.title p{
margin:0;
color:#64748b;
font-size:16px;
}


/* ================= HOME ================= */

.home-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
}

.home-card{
background:#fff;
border-radius:20px;
padding:28px 20px;
text-align:center;
box-shadow:0 10px 35px #0001;
border:1px solid #e2e8f0;
transition:.25s;
}

.home-card:hover{
transform:translateY(-5px);
box-shadow:0 15px 40px #0002;
}

.home-icon{
font-size:48px;
margin-bottom:10px;
}

.home-card h2{
margin:8px 0;
}

.home-card p{
color:#64748b;
min-height:48px;
line-height:1.5;
}

.open-btn{
border:0;
padding:12px 18px;
border-radius:11px;
background:#2563eb;
color:white;
font-weight:800;
width:100%;
}

.open-btn:hover{
background:#1d4ed8;
}

.wedding-btn{
background:#b91c1c;
}

.invitation-btn{
background:#7c3aed;
}

.family-btn{
background:#b45309;
}

.family-home-card{
border:2px solid #f59e0b;
}


/* ================= DEMO ================= */

.demo-section{
margin-top:40px;
background:#fff;
padding:25px;
border-radius:22px;
box-shadow:0 10px 35px #0001;
}

.demo-title{
font-size:27px;
font-weight:900;
text-align:center;
}

.demo-subtitle{
text-align:center;
color:#64748b;
margin:8px 0 30px;
}

.demo-category{
font-size:21px;
font-weight:900;
margin:28px 0 15px;
}

.demo-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:18px;
}

.demo-item{
background:#f8fafc;
padding:12px;
border-radius:18px;
border:1px solid #e2e8f0;
}

.demo-card{
height:190px;
border-radius:15px;
padding:22px;
color:#fff;
display:flex;
flex-direction:column;
justify-content:space-between;
position:relative;
overflow:hidden;
box-shadow:0 8px 25px #0002;
}

.demo-card h3{
margin:0 0 7px;
font-size:18px;
}

.demo-card p{
margin:0;
font-size:13px;
}

.demo-phone{
font-size:13px;
line-height:1.7;
}

.demo-qr{
position:absolute;
right:15px;
bottom:15px;
width:42px;
height:42px;
background:
linear-gradient(45deg,#fff 25%,transparent 25%),
linear-gradient(-45deg,#fff 25%,transparent 25%);
background-size:12px 12px;
opacity:.8;
}

.demo-blue{
background:linear-gradient(135deg,#2563eb,#0f172a);
}

.demo-black{
background:linear-gradient(135deg,#111827,#000);
border:1px solid #d4af37;
}

.demo-green{
background:linear-gradient(135deg,#15803d,#064e3b);
}

.demo-purple{
background:linear-gradient(135deg,#7e22ce,#312e81);
}

.demo-red{
background:linear-gradient(135deg,#991b1b,#450a0a);
}

.demo-wedding-purple{
background:linear-gradient(135deg,#7e22ce,#4c1d95);
}

.demo-floral{
background:linear-gradient(135deg,#166534,#14532d);
}

.demo-pink{
background:linear-gradient(135deg,#db2777,#831843);
}

.demo-birthday{
background:linear-gradient(135deg,#7c3aed,#4338ca);
}

.demo-party{
background:linear-gradient(135deg,#2563eb,#1e3a8a);
}

.demo-event{
background:linear-gradient(135deg,#0284c7,#0c4a6e);
}

.demo-orange{
background:linear-gradient(135deg,#ea580c,#9a3412);
}

.demo-actions{
display:flex;
gap:7px;
margin-top:10px;
}

.demo-btn,
.order-btn{
border:0;
padding:10px;
border-radius:10px;
font-weight:800;
}

.demo-btn{
background:#2563eb;
color:#fff;
flex:1;
}

.order-btn{
background:#16a34a;
color:#fff;
width:100%;
margin-top:8px;
}

.demo-actions .order-btn{
flex:1;
margin-top:0;
}

.order-btn:hover{
background:#15803d;
}

.demo-price{
text-align:center;
font-size:13px;
font-weight:800;
margin-top:10px;
color:#475569;
}


/* ================= TOPBAR ================= */

.topbar{
display:flex;
align-items:center;
justify-content:space-between;
gap:15px;
margin-bottom:20px;
}

.topbar h2{
margin:0;
}

.home-btn{
border:0;
padding:10px 15px;
border-radius:10px;
background:#172033;
color:white;
font-weight:800;
}


/* ================= MAKER GRID ================= */

.grid{
display:grid;
grid-template-columns:350px 1fr;
gap:22px;
align-items:start;
}

.panel,
.preview{
background:#fff;
border-radius:20px;
padding:22px;
box-shadow:0 10px 35px #0001;
border:1px solid #e2e8f0;
}

.panel h2,
.preview h2{
margin-top:0;
}

label{
display:block;
font-weight:700;
margin:13px 0 6px;
}

input,
textarea,
select{
width:100%;
padding:12px;
border:1px solid #dbe2ea;
border-radius:11px;
outline:none;
font-size:14px;
background:#fff;
}

input:focus,
textarea:focus,
select:focus{
border-color:#2563eb;
box-shadow:0 0 0 3px #2563eb18;
}

textarea{
min-height:80px;
resize:vertical;
}

.template-title{
font-weight:900;
margin:18px 0 10px;
}

.template-buttons{
display:grid;
grid-template-columns:1fr 1fr;
gap:8px;
}

.template-btn{
padding:10px;
border:1px solid #cbd5e1;
background:#fff;
border-radius:10px;
font-weight:800;
}

.template-btn.active{
background:#2563eb;
color:#fff;
border-color:#2563eb;
}

.remove-photo{
display:none;
margin-top:8px;
border:0;
padding:9px 12px;
border-radius:9px;
background:#fee2e2;
color:#b91c1c;
font-weight:800;
}

.action-btn{
width:100%;
border:0;
padding:12px;
border-radius:11px;
font-weight:800;
margin-top:10px;
}

.share{
background:#0ea5e9;
color:#fff;
}

.download{
background:#2563eb;
color:#fff;
}

.print-btn{
background:#111827;
color:#fff;
}

.download-row{
display:flex;
gap:8px;
margin-top:10px;
}

.download-row select{
width:90px;
}

.download-row .action-btn{
margin-top:0;
}


/* ================= VISITING CARD ================= */

.visiting-card{
width:100%;
max-width:700px;
min-height:390px;
margin:auto;
border-radius:22px;
overflow:hidden;
background:linear-gradient(135deg,#2563eb,#0f172a);
color:white;
box-shadow:0 20px 50px #0003;
}

.v-head{
padding:28px;
display:flex;
align-items:center;
gap:16px;
border-bottom:1px solid #ffffff35;
}

.logo{
width:72px;
height:72px;
object-fit:cover;
border-radius:50%;
border:3px solid #fff;
}

.v-name{
font-size:25px;
font-weight:900;
}

.v-person{
font-size:16px;
margin-top:5px;
opacity:.9;
}

.v-body{
padding:25px;
}

.info{
line-height:1.9;
font-size:15px;
}

.qr-section{
text-align:center;
margin-top:18px;
}

.qr-title{
font-weight:800;
font-size:13px;
margin-bottom:8px;
}

.qr-code{
display:flex;
justify-content:center;
align-items:center;
}

.qr-code img{
background:white;
padding:5px;
border-radius:7px;
}

.actions{
display:flex;
gap:8px;
margin-top:18px;
flex-wrap:wrap;
}

.actions a{
text-decoration:none;
color:#fff;
padding:10px 13px;
border-radius:9px;
font-weight:800;
font-size:13px;
}

.call{
background:#16a34a;
}

.wa{
background:#22c55e;
}

.map{
background:#f97316;
}

.web{
background:#7c3aed;
}


/* ================= WEDDING ================= */

.wedding-card{
max-width:600px;
margin:auto;
background:#fffaf0;
border:10px solid #b8860b;
border-radius:25px;
overflow:hidden;
box-shadow:0 20px 50px #0002;
text-align:center;
}

.w-head{
padding:30px 20px 20px;
background:linear-gradient(135deg,#fff7ed,#fef3c7);
}

.w-small{
font-size:12px;
font-weight:900;
letter-spacing:2px;
}

.w-symbol{
font-size:48px;
margin:12px;
}

.w-invite{
font-size:13px;
font-weight:900;
letter-spacing:1px;
}

.w-photo{
display:none;
margin:15px auto;
}

.w-photo img{
width:130px;
height:130px;
object-fit:cover;
border-radius:50%;
border:5px solid #b8860b;
}

.w-names{
font-family:Georgia,serif;
font-size:38px;
font-weight:900;
color:#991b1b;
margin-top:15px;
}

.w-and{
font-size:25px;
color:#b8860b;
margin:3px;
}

.w-details{
padding:22px;
}

.w-family{
font-size:14px;
line-height:1.8;
font-weight:700;
}

.w-message{
margin:15px 0;
line-height:1.6;
font-style:italic;
}

.detail-box{
padding:12px;
margin:10px 0;
background:#fff;
border-radius:12px;
border:1px solid #ead7a1;
}

.detail-title{
font-size:11px;
font-weight:900;
color:#a16207;
margin-bottom:5px;
}

.wt2{
background:#faf5ff;
border-color:#9333ea;
}

.wt2 .w-head{
background:linear-gradient(135deg,#f5f3ff,#fae8ff);
}

.wt2 .w-names{
color:#7e22ce;
}

.wt3{
background:#f0fdf4;
border-color:#15803d;
}

.wt3 .w-head{
background:linear-gradient(135deg,#f0fdf4,#dcfce7);
}

.wt3 .w-names{
color:#166534;
}

.wt4{
background:#faf5ff;
border-color:#7c3aed;
}

.wt4 .w-head{
background:linear-gradient(135deg,#ede9fe,#fae8ff);
}

.wt4 .w-names{
color:#6d28d9;
}


/* ================= INVITATION ================= */

.invitation-card{
max-width:560px;
margin:auto;
border-radius:25px;
overflow:hidden;
background:#faf5ff;
box-shadow:0 20px 50px #0002;
border:8px solid #7c3aed;
}

.i-head{
padding:30px 20px;
text-align:center;
background:linear-gradient(135deg,#7c3aed,#c084fc);
color:white;
}

.i-icon{
font-size:48px;
}

.i-photo-wrap{
display:none;
margin:12px auto;
}

.i-photo-wrap img{
width:110px;
height:110px;
border-radius:50%;
object-fit:cover;
border:4px solid white;
}

.i-title{
font-size:32px;
font-weight:900;
margin-top:10px;
}

.i-subtitle{
font-size:12px;
font-weight:900;
letter-spacing:2px;
margin-top:7px;
}

.i-body{
padding:25px;
text-align:center;
}

.i-host{
font-weight:900;
font-size:17px;
}

.i-message{
margin:15px 0;
line-height:1.6;
}

.i-box{
background:#fff;
border-radius:12px;
padding:12px;
margin:10px 0;
border:1px solid #ddd6fe;
}

.i-label{
font-size:11px;
font-weight:900;
color:#6d28d9;
margin-bottom:5px;
}

.it2{
border-color:#ea580c;
}

.it2 .i-head{
background:linear-gradient(135deg,#ea580c,#fb923c);
}

.it3{
border-color:#15803d;
}

.it3 .i-head{
background:linear-gradient(135deg,#15803d,#4ade80);
}

.it4{
border-color:#0284c7;
}

.it4 .i-head{
background:linear-gradient(135deg,#0284c7,#38bdf8);
}


/* ================= FAMILY CARD ================= */

.family-grid{
grid-template-columns:360px 1fr;
}

.family-panel{
border-top:4px solid #f59e0b;
}

.family-design-buttons{
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:7px;
}

.family-design-btn{
border:1px solid #cbd5e1;
background:white;
padding:9px 5px;
border-radius:9px;
font-weight:800;
font-size:12px;
}

.family-design-btn.active{
background:#2563eb;
color:white;
border-color:#2563eb;
}

.family-design-btn.premium{
border-color:#d4af37;
background:#fffbeb;
}

.family-members-title{
font-size:16px;
font-weight:900;
margin:18px 0 8px;
}

.family-member{
display:grid;
grid-template-columns:90px 1fr 38px;
gap:6px;
margin-bottom:8px;
}

.family-member button{
border:0;
border-radius:9px;
background:#fee2e2;
color:#b91c1c;
font-weight:900;
}

.add-member-btn{
width:100%;
padding:10px;
border:2px dashed #94a3b8;
background:#f8fafc;
border-radius:10px;
font-weight:800;
}

.check-row{
display:flex;
align-items:center;
gap:8px;
}

.check-row input{
width:auto;
}

.family-action-row{
display:flex;
gap:8px;
margin-top:10px;
}

.family-action-row select{
width:90px;
}

.family-action-row button{
margin-top:0;
}

.family-order-btn{
background:#b45309;
margin-top:10px;
}

.family-card{
width:100%;
max-width:520px;
aspect-ratio:2 / 3;
margin:auto;
padding:14px;
background:#fff;
border-radius:22px;
box-shadow:0 20px 55px #0003;
overflow:hidden;
position:relative;
}

.family-card-inner{
height:100%;
border:2px solid #d4af37;
border-radius:17px;
padding:25px 18px;
display:flex;
flex-direction:column;
align-items:center;
text-align:center;
position:relative;
}

.family-card-title{
font-family:Georgia,serif;
font-size:30px;
font-weight:900;
margin:5px 0 18px;
}

.family-photo-frame{
width:180px;
height:180px;
overflow:hidden;
margin-bottom:18px;
flex-shrink:0;
}

.family-photo-frame img{
width:100%;
height:100%;
object-fit:cover;
display:none;
}

.family-photo-frame.circle{
border-radius:50%;
border:7px solid #d4af37;
}

.family-photo-frame.rounded{
border-radius:25px;
border:7px solid #64748b;
}

.family-photo-frame.square{
border-radius:5px;
border:7px solid #334155;
}

.family-photo-frame.diamond{
transform:rotate(45deg);
border:7px solid #d4af37;
margin:30px 0 45px;
width:135px;
height:135px;
}

.family-photo-frame.diamond img{
transform:rotate(-45deg) scale(1.4);
}

.family-photo-frame.double{
border:10px double #7c3aed;
border-radius:15px;
}

.family-photo-frame.gold{
border:9px solid #d4af37;
border-radius:20px;
box-shadow:0 0 0 5px #fff,0 0 0 8px #b8860b;
}

.family-photo-frame.floral{
border:9px solid #db2777;
border-radius:50%;
box-shadow:0 0 0 7px #fbcfe8;
}

.family-names{
width:100%;
margin-bottom:14px;
}

.family-member-display{
display:inline-block;
margin:4px;
padding:5px 9px;
border-radius:20px;
font-size:14px;
font-weight:800;
background:#f1f5f9;
}

.family-member-display strong{
display:block;
font-size:10px;
text-transform:uppercase;
opacity:.65;
}

.family-message{
font-size:14px;
line-height:1.6;
max-width:90%;
}

.family-qr{
margin-top:auto;
text-align:center;
}

.family-qr small{
display:block;
margin-top:3px;
font-size:9px;
}

.family-decoration{
font-size:20px;
letter-spacing:8px;
}

.family-decoration.bottom{
margin-top:12px;
}

.family-card.free-classic{
background:linear-gradient(135deg,#ffffff,#f8fafc);
}

.family-card.free-classic .family-card-title{
color:#334155;
}

.family-card.free-green{
background:linear-gradient(135deg,#f0fdf4,#dcfce7);
}

.family-card.free-green .family-card-inner{
border-color:#15803d;
}

.family-card.free-green .family-card-title{
color:#166534;
}

.family-card.free-blue{
background:linear-gradient(135deg,#eff6ff,#dbeafe);
}

.family-card.free-blue .family-card-inner{
border-color:#2563eb;
}

.family-card.free-blue .family-card-title{
color:#1d4ed8;
}

.family-card.premium-royal{
background:linear-gradient(135deg,#451a03,#78350f,#a16207);
color:#fff;
}

.family-card.premium-royal .family-card-inner{
border-color:#facc15;
}

.family-card.premium-royal .family-card-title{
color:#fde68a;
}

.family-card.premium-floral{
background:linear-gradient(135deg,#fff1f2,#fce7f3,#fdf2f8);
}

.family-card.premium-floral .family-card-inner{
border-color:#db2777;
}

.family-card.premium-floral .family-card-title{
color:#be185d;
}

.family-card.premium-luxury{
background:linear-gradient(135deg,#111827,#1f2937,#000);
color:#fff;
}

.family-card.premium-luxury .family-card-inner{
border-color:#d4af37;
}

.family-card.premium-luxury .family-card-title{
color:#facc15;
}


/* ================= ORDER POPUP ================= */

.order-modal{
display:none;
position:fixed;
inset:0;
background:#000a;
z-index:9999;
align-items:center;
justify-content:center;
padding:15px;
}

.order-modal.show{
display:flex;
}

.order-box{
width:100%;
max-width:430px;
max-height:90vh;
overflow-y:auto;
background:#fff;
border-radius:20px;
padding:25px;
box-shadow:0 20px 60px #0005;
position:relative;
}

.order-close{
position:absolute;
right:12px;
top:10px;
border:0;
background:#f1f5f9;
width:35px;
height:35px;
border-radius:50%;
font-size:24px;
}

.order-selected{
background:#eff6ff;
padding:12px;
border-radius:10px;
font-weight:800;
margin:15px 0;
}

.order-submit{
width:100%;
border:0;
padding:13px;
border-radius:11px;
background:#16a34a;
color:#fff;
font-weight:900;
font-size:15px;
margin-top:10px;
}

.order-cancel{
width:100%;
border:0;
padding:11px;
border-radius:11px;
background:#e2e8f0;
color:#172033;
font-weight:800;
margin-top:8px;
}

.payment-section{
margin-top:15px;
padding-top:15px;
border-top:1px solid #e2e8f0;
}

.payment-amount{
background:#f0fdf4;
padding:12px;
border-radius:10px;
text-align:center;
font-size:18px;
}

.upi-qr{
display:flex;
justify-content:center;
margin:15px 0;
}

.upi-qr img{
background:#fff;
padding:8px;
border:1px solid #ddd;
border-radius:10px;
}

.upi-id{
text-align:center;
font-size:14px;
}

.payment-help{
text-align:center;
color:#64748b;
font-size:13px;
}

.utr-box{
margin-top:15px;
padding:12px;
background:#f8fafc;
border-radius:12px;
}

.order-note{
margin-top:15px;
padding:12px;
border-radius:10px;
background:#fff7ed;
color:#92400e;
font-size:12px;
line-height:1.5;
}


/* ================= PRINT ================= */

@media print{

body{
background:#fff;
}

body.print-family *{
visibility:hidden !important;
}

body.print-family #familyCard,
body.print-family #familyCard *{
visibility:visible !important;
}

body.print-family #familyCard{
position:absolute;
left:50%;
top:0;
transform:translateX(-50%);
box-shadow:none;
margin:0;
}

body.print-family .size-4x6{
width:4in;
height:6in;
}

body.print-family .size-5x7{
width:5in;
height:7in;
}

body.print-family .size-a4{
width:8.27in;
height:11.69in;
}

body.print-family .size-a4 .family-card-inner{
padding:35px;
}

body.print-family .size-a4 .family-photo-frame{
width:260px;
height:260px;
}

}


/* ================= RESPONSIVE ================= */

@media(max-width:1050px){

.home-grid{
grid-template-columns:repeat(2,1fr);
}

.demo-grid{
grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:850px){

.grid,
.family-grid{
grid-template-columns:1fr;
}

.home-grid{
grid-template-columns:1fr;
}

}

@media(max-width:600px){

.wrap{
padding:12px;
}

.title h1{
font-size:27px;
}

.demo-grid{
grid-template-columns:1fr;
}

.demo-actions{
flex-direction:column;
}

.topbar{
align-items:flex-start;
}

.topbar h2{
font-size:20px;
}

.v-name{
font-size:20px;
}

.w-names{
font-size:30px;
}

.i-title{
font-size:26px;
}

.family-card{
max-width:420px;
}

.family-photo-frame{
width:140px;
height:140px;
}

.family-card-title{
font-size:25px;
}

}

/* =====================================================
   FAMILY CARD PRO DESIGN SYSTEM
   20+ DESIGNS + COLORS + FRAMES + BORDERS
===================================================== */

.family-pro-tools{
  margin-top:18px;
  padding:14px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
}

.family-pro-title{
  font-size:15px;
  font-weight:900;
  margin:14px 0 8px;
}

.family-design-scroll{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:7px;
}

.family-pro-design{
  min-height:48px;
  padding:8px 6px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  font-weight:800;
  font-size:11px;
  transition:.2s;
}

.family-pro-design:hover{
  transform:translateY(-2px);
  box-shadow:0 5px 12px #0002;
}

.family-pro-design.active{
  outline:3px solid #2563eb33;
  border-color:#2563eb;
  background:#eff6ff;
}

.family-control-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.family-color-row{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}

.family-color-btn{
  width:30px;
  height:30px;
  border-radius:50%;
  border:3px solid #fff;
  box-shadow:0 0 0 1px #cbd5e1;
  padding:0;
}

.family-color-btn.active{
  box-shadow:0 0 0 3px #2563eb;
}

.family-custom-color{
  width:100%;
  height:42px;
  padding:3px;
  cursor:pointer;
}

.family-decoration-buttons{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:7px;
}

.family-decoration-btn{
  padding:9px;
  border:1px solid #cbd5e1;
  background:#fff;
  border-radius:9px;
  font-weight:800;
  font-size:12px;
}

.family-decoration-btn.active{
  background:#172033;
  color:#fff;
}

.family-border-buttons{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
}

.family-border-btn{
  padding:9px 4px;
  border:1px solid #cbd5e1;
  background:#fff;
  border-radius:9px;
  font-weight:800;
  font-size:11px;
}

.family-border-btn.active{
  background:#2563eb;
  color:#fff;
}

.family-preview-stage{
  width:100%;
}


/* ================= DESIGN THEMES ================= */

.family-card.design-red-classic{
  background:linear-gradient(135deg,#fff,#fff5f5);
  color:#450a0a;
}

.family-card.design-red-classic .family-card-inner{
  border-color:#b91c1c;
  border-width:4px;
}

.family-card.design-red-classic .family-card-title{
  color:#991b1b;
}


.family-card.design-blue-elegant{
  background:linear-gradient(135deg,#eff6ff,#dbeafe);
  color:#172554;
}

.family-card.design-blue-elegant .family-card-inner{
  border-color:#2563eb;
}

.family-card.design-blue-elegant .family-card-title{
  color:#1d4ed8;
}


.family-card.design-green-natural{
  background:linear-gradient(135deg,#f0fdf4,#dcfce7);
  color:#14532d;
}

.family-card.design-green-natural .family-card-inner{
  border-color:#15803d;
}

.family-card.design-green-natural .family-card-title{
  color:#166534;
}


.family-card.design-purple-dream{
  background:linear-gradient(135deg,#faf5ff,#ede9fe);
  color:#3b0764;
}

.family-card.design-purple-dream .family-card-inner{
  border-color:#7c3aed;
}

.family-card.design-purple-dream .family-card-title{
  color:#6d28d9;
}


.family-card.design-pink-love{
  background:linear-gradient(135deg,#fff1f2,#fce7f3);
  color:#831843;
}

.family-card.design-pink-love .family-card-inner{
  border-color:#db2777;
}

.family-card.design-pink-love .family-card-title{
  color:#be185d;
}


.family-card.design-orange-celebration{
  background:linear-gradient(135deg,#fff7ed,#fed7aa);
  color:#7c2d12;
}

.family-card.design-orange-celebration .family-card-inner{
  border-color:#ea580c;
}

.family-card.design-orange-celebration .family-card-title{
  color:#c2410c;
}


.family-card.design-sky-modern{
  background:linear-gradient(135deg,#f0f9ff,#bae6fd);
  color:#0c4a6e;
}

.family-card.design-sky-modern .family-card-inner{
  border-color:#0284c7;
}

.family-card.design-sky-modern .family-card-title{
  color:#0369a1;
}


.family-card.design-teal-fresh{
  background:linear-gradient(135deg,#f0fdfa,#ccfbf1);
  color:#134e4a;
}

.family-card.design-teal-fresh .family-card-inner{
  border-color:#0f766e;
}

.family-card.design-teal-fresh .family-card-title{
  color:#0f766e;
}


.family-card.design-maroon-traditional{
  background:linear-gradient(135deg,#fff7ed,#fee2e2);
  color:#450a0a;
}

.family-card.design-maroon-traditional .family-card-inner{
  border-color:#7f1d1d;
  border-width:5px;
}

.family-card.design-maroon-traditional .family-card-title{
  color:#7f1d1d;
}


.family-card.design-black-gold{
  background:linear-gradient(135deg,#111827,#000);
  color:#fff;
}

.family-card.design-black-gold .family-card-inner{
  border-color:#d4af37;
  border-width:4px;
}

.family-card.design-black-gold .family-card-title{
  color:#facc15;
}


.family-card.design-royal-blue{
  background:linear-gradient(135deg,#172554,#1e40af,#172554);
  color:#fff;
}

.family-card.design-royal-blue .family-card-inner{
  border-color:#facc15;
  border-width:4px;
}

.family-card.design-royal-blue .family-card-title{
  color:#fde68a;
}


.family-card.design-emerald-gold{
  background:linear-gradient(135deg,#022c22,#065f46,#064e3b);
  color:#fff;
}

.family-card.design-emerald-gold .family-card-inner{
  border-color:#facc15;
}

.family-card.design-emerald-gold .family-card-title{
  color:#fde68a;
}


.family-card.design-wine-luxury{
  background:linear-gradient(135deg,#450a0a,#881337,#4c0519);
  color:#fff;
}

.family-card.design-wine-luxury .family-card-inner{
  border-color:#fda4af;
}

.family-card.design-wine-luxury .family-card-title{
  color:#fecdd3;
}


.family-card.design-champagne{
  background:linear-gradient(135deg,#fffbeb,#fef3c7,#fde68a);
  color:#451a03;
}

.family-card.design-champagne .family-card-inner{
  border-color:#92400e;
}

.family-card.design-champagne .family-card-title{
  color:#78350f;
}


.family-card.design-rose-gold{
  background:linear-gradient(135deg,#fff1f2,#fecdd3,#fda4af);
  color:#4c0519;
}

.family-card.design-rose-gold .family-card-inner{
  border-color:#be123c;
}

.family-card.design-rose-gold .family-card-title{
  color:#9f1239;
}


.family-card.design-peacock{
  background:linear-gradient(135deg,#083344,#155e75,#164e63);
  color:#fff;
}

.family-card.design-peacock .family-card-inner{
  border-color:#67e8f9;
}

.family-card.design-peacock .family-card-title{
  color:#a5f3fc;
}


.family-card.design-sandal{
  background:linear-gradient(135deg,#fff7ed,#fed7aa,#fef3c7);
  color:#431407;
}

.family-card.design-sandal .family-card-inner{
  border-color:#b45309;
}

.family-card.design-sandal .family-card-title{
  color:#92400e;
}


.family-card.design-sage{
  background:linear-gradient(135deg,#f7fee7,#ecfccb,#d9f99d);
  color:#365314;
}

.family-card.design-sage .family-card-inner{
  border-color:#65a30d;
}

.family-card.design-sage .family-card-title{
  color:#4d7c0f;
}


.family-card.design-coral{
  background:linear-gradient(135deg,#fff7ed,#ffedd5,#fed7aa);
  color:#431407;
}

.family-card.design-coral .family-card-inner{
  border-color:#f97316;
}

.family-card.design-coral .family-card-title{
  color:#c2410c;
}


.family-card.design-midnight{
  background:linear-gradient(135deg,#020617,#172554,#312e81);
  color:#fff;
}

.family-card.design-midnight .family-card-inner{
  border-color:#c4b5fd;
}

.family-card.design-midnight .family-card-title{
  color:#ddd6fe;
}


/* ================= FRAME STYLES ================= */

.family-photo-frame.frame-classic{
  border:6px solid #334155;
  border-radius:5px;
}

.family-photo-frame.frame-soft{
  border:7px solid #94a3b8;
  border-radius:20px;
}

.family-photo-frame.frame-round{
  border:7px solid #2563eb;
  border-radius:50%;
}

.family-photo-frame.frame-oval{
  width:180px;
  height:220px;
  border:7px solid #7c3aed;
  border-radius:50%;
}

.family-photo-frame.frame-double{
  border:9px double #b8860b;
  border-radius:15px;
}

.family-photo-frame.frame-gold{
  border:8px solid #d4af37;
  border-radius:22px;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 7px #b8860b;
}

.family-photo-frame.frame-floral{
  border:8px solid #db2777;
  border-radius:50%;
  box-shadow:
    0 0 0 6px #fbcfe8,
    0 0 0 10px #f9a8d4;
}

.family-photo-frame.frame-leaf{
  border:8px solid #15803d;
  border-radius:35px 8px 35px 8px;
}

.family-photo-frame.frame-diamond{
  width:140px;
  height:140px;
  margin:30px 0 45px;
  transform:rotate(45deg);
  border:7px solid #d4af37;
}

.family-photo-frame.frame-diamond img{
  transform:rotate(-45deg) scale(1.4);
}

.family-photo-frame.frame-heart{
  border:8px solid #e11d48;
  border-radius:50% 50% 45% 45%;
}


/* ================= CARD CORNERS ================= */

.family-card.radius-square{
  border-radius:0;
}

.family-card.radius-small{
  border-radius:10px;
}

.family-card.radius-medium{
  border-radius:22px;
}

.family-card.radius-round{
  border-radius:40px;
}

.family-card.radius-soft{
  border-radius:60px;
}


/* ================= CARD BORDER ================= */

.family-card.border-thin{
  padding:8px;
}

.family-card.border-medium{
  padding:14px;
}

.family-card.border-thick{
  padding:20px;
}

.family-card.border-double{
  padding:12px;
}

.family-card.border-double .family-card-inner{
  border-style:double;
  border-width:8px;
}


/* ================= DECORATIONS ================= */

.family-decoration.decor-none{
  display:none;
}

.family-decoration.decor-flower::before{
  content:"🌸  ❀  🌷  ❀  🌸";
}

.family-decoration.decor-leaf::before{
  content:"🍃  🌿  🍃  🌿  🍃";
}

.family-decoration.decor-gold::before{
  content:"✦  ❖  ✦  ❖  ✦";
}

.family-decoration.decor-heart::before{
  content:"♥  ♡  ♥  ♡  ♥";
}

.family-decoration.decor-star::before{
  content:"★  ✦  ★  ✦  ★";
}

.family-decoration.decor-peacock::before{
  content:"🦚  ✦  🦚  ✦  🦚";
}


/* ================= RESPONSIVE ================= */

@media(max-width:600px){

.family-design-scroll{
  grid-template-columns:1fr 1fr;
}

.family-control-grid{
  grid-template-columns:1fr;
}

.family-border-buttons{
  grid-template-columns:1fr 1fr 1fr;
}

.family-photo-frame.frame-oval{
  width:150px;
  height:185px;
}

}

/* =====================================================
   FAMILY CARD - RED CLASSIC DESIGN
===================================================== */

.family-card.design-red-classic{
    background:#fff;
    border:8px solid #8b0000;
    box-shadow:
        0 0 0 3px #d4af37,
        0 10px 30px rgba(0,0,0,.25);
}

.family-card.design-red-classic .family-card-inner{
    background:
        linear-gradient(
            135deg,
            #fffaf0 0%,
            #fff 45%,
            #fff4f4 100%
        );
    border:4px solid #d4af37;
}

.family-card.design-red-classic .family-card-title{
    color:#8b0000;
    font-weight:800;
    text-shadow:1px 1px 0 #f5d98b;
}

.family-card.design-red-classic .family-names{
    color:#5c0000;
}

.family-card.design-red-classic .family-member-display{
    color:#6b0000;
    border-bottom:1px solid rgba(139,0,0,.2);
}

.family-card.design-red-classic .family-message{
    color:#7f1d1d;
    font-style:italic;
}

.family-card.design-red-classic .family-decoration{
    color:#d4af37;
}