:root{--blue:#2563eb;--sky:#0ea5e9;--dark:#0f172a;--muted:#64748b;--soft:#f8fafc;--line:#e2e8f0;--gold:#d9a441;--green:#16a34a;--red:#ef4444}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f6f8fc;color:var(--dark)}a{text-decoration:none;color:inherit}.topnav{height:72px;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);display:flex;align-items:center;justify-content:space-between;padding:0 8%;position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line)}.brand{font-size:22px;font-weight:800;color:var(--blue)}.topnav div{display:flex;gap:22px;align-items:center}.btn,button{border:0;border-radius:14px;background:linear-gradient(135deg,var(--blue),var(--sky));color:#fff;padding:13px 20px;font-weight:800;box-shadow:0 12px 24px rgba(37,99,235,.22);cursor:pointer}.btn.light{background:#fff;color:var(--blue);border:1px solid var(--line);box-shadow:none}.btn.green{background:linear-gradient(135deg,#16a34a,#22c55e)}.btn.red{background:linear-gradient(135deg,#ef4444,#f97316)}.btn.small{padding:9px 14px;border-radius:12px}.container{width:min(1180px,92%);margin:0 auto}.hero{padding:70px 0;display:grid;grid-template-columns:1.1fr .9fr;gap:36px;align-items:center}.hero h1{font-size:58px;line-height:1.05;margin:0 0 18px;font-weight:900}.hero h1 span{color:var(--blue)}.hero p{font-size:19px;color:var(--muted);line-height:1.7}.hero-card{background:#fff;border-radius:34px;padding:28px;box-shadow:0 30px 70px rgba(15,23,42,.12)}.phone{width:285px;min-height:530px;margin:auto;background:#111;border-radius:42px;padding:12px;box-shadow:0 28px 70px rgba(0,0,0,.28)}.phone-screen{background:linear-gradient(#fff7ed,#fff);border-radius:32px;min-height:506px;padding:26px;text-align:center;overflow:hidden}.script{font-family:'Playfair Display',serif;color:#9b6b43}.grid{display:grid;gap:22px}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-4{grid-template-columns:repeat(4,1fr)}.card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:0 16px 44px rgba(15,23,42,.06)}.section{padding:54px 0}.section h2{font-size:34px;margin:0 0 10px}.muted{color:var(--muted)}.template-card img{width:100%;height:260px;object-fit:cover;border-radius:18px;background:linear-gradient(135deg,#dbeafe,#fff7ed)}.badge{display:inline-block;padding:6px 10px;border-radius:99px;background:#dbeafe;color:#1d4ed8;font-size:12px;font-weight:800}.price{font-size:28px;font-weight:900;color:var(--blue)}.dash{display:grid;grid-template-columns:260px 1fr;min-height:calc(100vh - 72px)}.sidebar{background:#0b1220;color:#cbd5e1;padding:28px;position:sticky;top:72px;height:calc(100vh - 72px)}.sidebar h3{color:#fff}.sidebar a{display:block;padding:13px 14px;border-radius:14px;margin:5px 0}.sidebar a:hover,.sidebar .active{background:#1e293b;color:#fff}.main{padding:32px}.stat{display:flex;align-items:center;justify-content:space-between}.stat b{font-size:30px}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:20px;overflow:hidden}.table th,.table td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left}.table th{background:#f8fafc;color:#475569}.form input,.form select,.form textarea{width:100%;padding:14px;border:1px solid var(--line);border-radius:14px;margin:7px 0 16px;background:#fff}.editor{display:grid;grid-template-columns:300px 1fr 320px;gap:20px}.panel{background:#fff;border-radius:24px;padding:20px;border:1px solid var(--line);height:max-content}.mobile-preview{display:flex;justify-content:center}.invite-public{min-height:100vh;background:linear-gradient(180deg,#fff7ed,#fff);padding:24px}.invite-card{max-width:470px;margin:auto;background:rgba(255,255,255,.86);border-radius:34px;padding:28px;text-align:center;box-shadow:0 30px 70px rgba(15,23,42,.12)}.countdown{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.countdown div{background:#a67c52;color:#fff;border-radius:14px;padding:12px}.toast{position:fixed;right:20px;top:90px;z-index:50;padding:14px 18px;border-radius:14px;color:#fff}.toast.ok{background:#16a34a}.toast.err{background:#ef4444}.footer{text-align:center;padding:38px;color:#64748b}.actions{display:flex;gap:10px;flex-wrap:wrap}.progress{height:10px;background:#e2e8f0;border-radius:99px;overflow:hidden}.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--sky))}@media(max-width:900px){.hero,.dash,.editor{grid-template-columns:1fr}.hero h1{font-size:38px}.grid-3,.grid-4{grid-template-columns:1fr}.sidebar{position:relative;top:0;height:auto}.topnav{padding:0 4%}.topnav div{gap:10px;font-size:13px}}
.template-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px;margin:8px 0 18px}.template-choice{display:block;text-align:left;background:#fff;color:var(--dark);border:2px solid var(--line);box-shadow:none;padding:12px;border-radius:18px}.template-choice img,.template-placeholder{width:100%;height:150px;border-radius:14px;object-fit:cover;background:linear-gradient(135deg,#dbeafe,#fff7ed);display:flex;align-items:center;justify-content:center;color:var(--muted);margin-bottom:10px}.template-choice small,.template-choice span{display:block;color:var(--muted);margin-top:4px}.template-choice.selected{border-color:var(--blue);box-shadow:0 12px 28px rgba(37,99,235,.16)}.front-edit-fab{position:fixed;right:22px;bottom:22px;z-index:80;background:linear-gradient(135deg,var(--blue),var(--sky));color:#fff;padding:13px 18px;border-radius:999px;font-weight:800;box-shadow:0 14px 30px rgba(37,99,235,.28)}.front-edit-bar{position:sticky;top:0;z-index:90;background:#fff;border-bottom:1px solid var(--line);padding:12px 18px;display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}.front-edit-bar input[type=date]{padding:10px;border:1px solid var(--line);border-radius:12px}.editable{outline:2px dashed rgba(37,99,235,.45);outline-offset:4px;border-radius:10px;cursor:text}.editable:focus{background:#fff;outline-color:var(--blue)}
.grid-2{grid-template-columns:repeat(2,1fr)}.invite-theme-wedding{background:radial-gradient(circle at top,#fff7ed 0,#fff 52%,#fdf2f8 100%);padding:0 18px 40px}.invite-hero{max-width:620px;min-height:620px;margin:0 auto 24px;padding:90px 28px 40px;border-radius:0 0 44px 44px;background:linear-gradient(180deg,#fff7ed,#fff);background-size:cover;background-position:center;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 30px 80px rgba(15,23,42,.10)}.invite-hero .script{font-size:52px;margin:14px 0;color:#9b6b43}.hero-quote{max-width:430px;line-height:1.8}.rich-card{text-align:center}.couple-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.person-card{background:#fff7ed;border:1px solid #f5d0a9;border-radius:28px;padding:18px}.avatar{width:150px;height:150px;border-radius:999px;margin:0 auto 12px;background:linear-gradient(135deg,#fde68a,#fed7aa);display:flex;align-items:center;justify-content:center;overflow:hidden;border:6px solid #fff;box-shadow:0 16px 36px rgba(15,23,42,.14)}.avatar img{width:100%;height:100%;object-fit:cover}.avatar span{font-size:64px}.info-box{background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px;margin:18px 0;line-height:1.8}.timeline{display:grid;gap:12px;text-align:left}.timeline div{padding:14px 16px;border-left:4px solid #a67c52;background:#fff7ed;border-radius:14px}.gallery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.gallery-grid img{width:100%;height:170px;object-fit:cover;border-radius:18px}.wishes{margin-top:24px;text-align:left}.wish{background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:14px;margin:10px 0}.wish span{float:right;color:var(--blue);font-size:12px;font-weight:800}.couple-mini{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.couple-mini div{background:#fff7ed;border-radius:18px;padding:10px}.couple-mini img{width:70px;height:70px;border-radius:999px;object-fit:cover;display:block;margin:0 auto 8px}@media(max-width:700px){.invite-hero .script{font-size:38px}.couple-grid,.gallery-grid,.grid-2{grid-template-columns:1fr}.invite-hero{min-height:560px}.avatar{width:130px;height:130px}}

/* Responsive media/frame upgrade */
img,video{max-width:100%;height:auto}.editor{align-items:start}.editor .panel.form{max-height:calc(100vh - 110px);overflow:auto}.upload-preview img,.gallery-admin img,.couple-mini img,.avatar img,.gallery-grid img,.preview-cover img{display:block;max-width:100%;object-fit:cover}.gallery-admin{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:10px}.gallery-admin img{width:100%;aspect-ratio:1/1;height:auto;border-radius:16px;border:4px solid #fff;box-shadow:0 8px 22px rgba(15,23,42,.12)}.form input[type=file]{font-family:inherit}.preview-cover{height:150px;margin:-26px -26px 18px;overflow:hidden;border-radius:32px 32px 22px 22px}.preview-cover img{width:100%;height:100%}.couple-mini.framed img{border:4px solid #fff;box-shadow:0 8px 18px rgba(15,23,42,.12)}
.invite-theme-wedding,.invite-theme-soft{background:radial-gradient(circle at top,#fff7ed 0,#fff 52%,#fdf2f8 100%)}.invite-theme-gold{background:radial-gradient(circle at top,#fff8dc 0,#fff 48%,#fef3c7 100%)}.invite-theme-dark{background:linear-gradient(180deg,#111827,#312e81 55%,#111827);color:#f8fafc}.invite-theme-dark .invite-card,.invite-theme-dark .info-box,.invite-theme-dark .card,.invite-theme-dark .wish{background:rgba(17,24,39,.86);border-color:rgba(255,255,255,.16);color:#f8fafc}.invite-theme-dark .person-card,.invite-theme-dark .timeline div{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16)}.invite-theme-soft .invite-hero{background:linear-gradient(180deg,#fdf2f8,#eff6ff)}.invite-theme-gold .invite-hero{background:linear-gradient(180deg,#fffbeb,#fff)}.invite-theme-dark .invite-hero{background:linear-gradient(180deg,#1f2937,#111827);box-shadow:0 30px 80px rgba(0,0,0,.34)}.invite-hero{overflow:hidden}.invite-hero[style*="background-image"]{color:#fff}.couple-grid .person-card{position:relative;overflow:hidden}.couple-grid .person-card:before{content:"";position:absolute;inset:10px;border:1px solid rgba(166,124,82,.35);border-radius:22px;pointer-events:none}.avatar{outline:2px solid rgba(166,124,82,.22);outline-offset:4px}.gallery-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.gallery-grid img{width:100%;aspect-ratio:4/5;height:auto;border:6px solid #fff;border-radius:22px;box-shadow:0 12px 30px rgba(15,23,42,.14);background:#f8fafc}.gallery-grid img:nth-child(3n+1){aspect-ratio:1/1}.gallery-grid img:nth-child(4n+2){aspect-ratio:5/4}.mini-theme-soft{background:linear-gradient(#fdf2f8,#eff6ff)}.mini-theme-gold{background:linear-gradient(#fffbeb,#fff7ed)}.mini-theme-dark{background:linear-gradient(#1f2937,#111827);color:#f8fafc}.mini-theme-dark .script{color:#facc15}.mini-theme-dark .couple-mini div{background:rgba(255,255,255,.1)}
@media(max-width:1200px){.editor{grid-template-columns:340px 1fr}.editor aside{grid-column:1/-1}.mobile-preview{position:sticky;top:92px}}@media(max-width:800px){.editor .panel.form{max-height:none}.mobile-preview{position:static}.preview-cover{height:120px}.topnav{position:sticky}.gallery-grid{grid-template-columns:repeat(2,1fr)}}

/* media auto-fit + themed frames */
.phone{height:560px;min-height:560px}.phone-screen{height:536px;min-height:536px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}.phone-screen::-webkit-scrollbar{display:none}.preview-cover{height:170px;background:#f8fafc}.preview-cover img{width:100%;height:100%;object-fit:cover;object-position:center}.invite-hero{max-width:560px;margin:0 auto 22px;min-height:720px;border-radius:36px;padding:46px 24px;display:flex;flex-direction:column;justify-content:end;align-items:center;text-align:center;background-size:cover;background-position:center;overflow:hidden;box-shadow:0 28px 70px rgba(15,23,42,.12)}.invite-hero .script,.invite-hero .hero-quote{color:#fff;text-shadow:0 4px 18px rgba(0,0,0,.45)}.rich-card{overflow:hidden}.couple-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.person-card{background:linear-gradient(180deg,#fff,#fff7ed);border:1px solid #f1e4d6;border-radius:28px;padding:16px;overflow:hidden}.avatar{width:140px;height:140px;margin:0 auto 12px;border-radius:50%;background:radial-gradient(circle,#fff 0,#fef3c7 100%);border:8px solid #fff;box-shadow:0 14px 32px rgba(15,23,42,.16);display:flex;align-items:center;justify-content:center;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover;object-position:center top}.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery-grid img{width:100%;height:190px;object-fit:cover;object-position:center;border-radius:22px;border:6px solid #fff;box-shadow:0 12px 30px rgba(15,23,42,.13)}.mini-theme-wedding .couple-mini img,.mini-theme-gold .couple-mini img{border-radius:50%;object-position:center top}.mini-theme-dark{background:#111827;color:#f8fafc}.mini-theme-dark .script{color:#fbbf24}.mini-theme-soft{background:linear-gradient(#fff1f2,#fff)}.mini-theme-gold{background:linear-gradient(#fffbeb,#fff)}.couple-mini{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}.couple-mini img{width:86px;height:86px;object-fit:cover;object-position:center top;border-radius:22px;margin:0 auto 6px}.invite-theme-dark{background:#0f172a}.invite-theme-dark .invite-card{background:#111827;color:#f8fafc}.invite-theme-dark .person-card{background:#1f2937;border-color:#374151}.invite-theme-soft{background:linear-gradient(180deg,#fff1f2,#f8fafc)}.invite-theme-gold{background:linear-gradient(180deg,#fffbeb,#fff)}
@media(max-width:700px){.invite-public{padding:10px}.invite-hero{min-height:620px;border-radius:28px}.couple-grid{grid-template-columns:1fr}.gallery-grid{grid-template-columns:1fr}.gallery-grid img{height:240px}}

/* HARD FIX: media undangan selalu masuk ke frame template, tidak boleh memanjang mengikuti rasio asli */
.editor .mobile-preview .phone{width:285px!important;height:560px!important;min-height:560px!important;max-height:560px!important;overflow:hidden!important;border-radius:42px!important;padding:12px!important;background:#111!important;position:sticky;top:92px;}
.editor .mobile-preview .phone-screen{height:536px!important;min-height:536px!important;max-height:536px!important;overflow-y:auto!important;overflow-x:hidden!important;border-radius:32px!important;padding:26px!important;}
.editor .preview-cover{height:170px!important;max-height:170px!important;min-height:170px!important;margin:-26px -26px 18px!important;overflow:hidden!important;border-radius:32px 32px 22px 22px!important;display:block!important;}
.editor .preview-cover img{width:100%!important;height:100%!important;max-height:170px!important;object-fit:cover!important;object-position:center!important;display:block!important;}
.editor .couple-mini img{width:86px!important;height:86px!important;max-width:86px!important;max-height:86px!important;object-fit:cover!important;object-position:center top!important;display:block!important;}
.editor .upload-preview img{width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important;object-fit:cover!important;border-radius:14px!important;}
.editor .upload-preview.cover img{width:140px!important;height:72px!important;max-width:140px!important;max-height:72px!important;object-fit:cover!important;}
.invite-public .invite-hero{background-size:cover!important;background-position:center!important;overflow:hidden!important;}
.invite-public .avatar{width:150px!important;height:150px!important;max-width:150px!important;max-height:150px!important;overflow:hidden!important;}
.invite-public .avatar img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center top!important;display:block!important;}
.invite-public .gallery-grid img{width:100%!important;height:190px!important;max-height:190px!important;object-fit:cover!important;object-position:center!important;display:block!important;}
@media(max-width:700px){.invite-public .gallery-grid img{height:240px!important}.invite-public .avatar{width:130px!important;height:130px!important}}

/* FINAL phone-template image fit fix */
.editor .mobile-preview .phone{width:285px!important;height:560px!important;min-height:560px!important;max-height:560px!important;overflow:hidden!important;}
.editor .mobile-preview .phone-screen{height:536px!important;min-height:536px!important;max-height:536px!important;overflow-y:auto!important;overflow-x:hidden!important;}
.editor .mobile-preview .preview-cover{height:170px!important;min-height:170px!important;max-height:170px!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;}
.editor .mobile-preview .phone-screen img{max-width:100%!important;height:auto!important;object-fit:cover!important;}
.editor .mobile-preview .mini-photo{width:86px!important;height:86px!important;min-width:86px!important;min-height:86px!important;max-width:86px!important;max-height:86px!important;background-size:cover!important;background-position:center top!important;overflow:hidden!important;}

/* Premium phone template editor like modern invitation builders */
.premium-preview{align-items:flex-start}.iphone-frame{width:360px;height:760px;background:#111;border-radius:54px;padding:14px;box-shadow:0 30px 80px rgba(15,23,42,.32);position:sticky;top:92px;margin:auto;overflow:hidden}.iphone-notch{position:absolute;top:20px;left:50%;transform:translateX(-50%);width:92px;height:26px;background:#090909;border-radius:0 0 18px 18px;z-index:3}.premium-phone-screen{height:732px;border-radius:42px;background:#fff8f0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;text-align:center;position:relative;padding-bottom:92px}.premium-phone-screen::-webkit-scrollbar{display:none}.premium-cover{min-height:640px;padding:86px 34px 34px;background:linear-gradient(180deg,#fffaf4,#fff);background-size:cover;background-position:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;position:relative}.premium-cover:before,.premium-cover:after{content:"";position:absolute;width:125px;height:125px;background:radial-gradient(circle,#e9caa6 0,#d1a477 36%,transparent 68%);opacity:.35;filter:blur(2px)}.premium-cover:before{top:16px;left:-28px}.premium-cover:after{bottom:30px;right:-38px}.editable-box{position:relative;z-index:1;width:100%;border:2px dashed rgba(217,164,65,.75);border-radius:6px;padding:10px;background:rgba(255,255,255,.35)}.photo-frame{width:210px;height:170px;border:0;padding:0;background:transparent}.oval-frame{border-radius:50%;display:flex;align-items:center;justify-content:center}.couple-portrait{width:168px;height:168px;border-radius:50%;border:5px solid #d8b783;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 12px 32px rgba(15,23,42,.16)}.couple-portrait span{display:block;width:58%;height:100%;background-size:cover;background-position:center top;background-repeat:no-repeat}.couple-portrait span+span{margin-left:-16%;border-left:3px solid rgba(255,255,255,.8)}.couple-placeholder{width:168px;height:168px;border-radius:50%;border:5px solid #d8b783;background:#fff;display:flex;align-items:center;justify-content:center;color:#9b6b43;font-size:13px;padding:18px}.title-box h1{font-size:30px;line-height:1.2;margin:0;color:#a87751}.quote-box p{font-size:14px;line-height:1.6;margin:0;color:#475569}.premium-countdown{width:100%;grid-template-columns:repeat(4,1fr);gap:8px;z-index:1}.premium-countdown div{padding:10px 6px;border-radius:12px;background:#b08968;color:#fff;font-weight:800}.premium-countdown small{display:block;font-size:10px;font-weight:700;margin-top:3px}.premium-section{padding:28px 26px}.premium-section h2{font-size:25px;margin:0 0 8px;color:#a87751}.mini-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}.mini-gallery span{height:74px;border-radius:16px;background-size:cover;background-position:center;box-shadow:0 6px 18px rgba(15,23,42,.12)}.phone-bottom-actions{position:absolute;left:26px;right:26px;bottom:18px;height:70px;background:rgba(255,255,255,.95);backdrop-filter:blur(12px);border-radius:34px;box-shadow:0 -8px 28px rgba(15,23,42,.13);display:grid;grid-template-columns:repeat(5,1fr);align-items:center;z-index:5;border:1px solid rgba(226,232,240,.9);overflow:hidden}.phone-bottom-actions button,.phone-bottom-actions a{background:transparent!important;color:#111827!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:8px 2px!important;font-size:19px;font-weight:800;display:flex;flex-direction:column;align-items:center;gap:3px}.phone-bottom-actions small{font-size:10px;color:#334155;font-weight:700}.phone-bottom-actions a:nth-child(4){color:#dc2626!important}.front-bottom-actions{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:60;width:min(430px,92vw);height:68px;background:rgba(255,255,255,.95);backdrop-filter:blur(14px);border-radius:34px;box-shadow:0 -8px 28px rgba(15,23,42,.16);display:grid;grid-template-columns:repeat(5,1fr);border:1px solid #e2e8f0}.front-bottom-actions a{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:19px;font-weight:800}.front-bottom-actions small{font-size:10px;margin-top:3px;color:#334155}.invite-public{padding-bottom:96px!important}@media(max-width:900px){.iphone-frame{position:relative;top:0;transform:scale(.9);transform-origin:top center}.premium-preview{min-height:710px}}

/* PERFECT PHONE UX FIX - final override */
.editor{grid-template-columns:320px minmax(420px,1fr) 300px!important;align-items:flex-start!important}.premium-preview{display:flex!important;justify-content:center!important;align-items:flex-start!important;min-height:900px!important}.premium-preview .iphone-frame{width:390px!important;height:844px!important;min-width:390px!important;max-width:390px!important;min-height:844px!important;max-height:844px!important;background:#111!important;border-radius:58px!important;padding:12px!important;position:sticky!important;top:90px!important;margin:0 auto!important;overflow:hidden!important;box-shadow:0 34px 90px rgba(15,23,42,.35)!important;border:6px solid #111!important}.premium-preview .iphone-frame:before{content:""!important;position:absolute!important;inset:3px!important;border-radius:54px!important;border:2px solid rgba(255,255,255,.18)!important;z-index:4!important;pointer-events:none!important}.premium-preview .iphone-notch{position:absolute!important;top:18px!important;left:50%!important;transform:translateX(-50%)!important;width:118px!important;height:32px!important;background:#070707!important;border-radius:0 0 20px 20px!important;z-index:8!important}.premium-preview .premium-phone-screen{width:100%!important;height:100%!important;max-height:100%!important;border-radius:46px!important;background:#fffaf5!important;overflow-y:auto!important;overflow-x:hidden!important;scroll-behavior:smooth!important;padding:0 0 92px 0!important;text-align:center!important;position:relative!important}.premium-preview .premium-cover{width:100%!important;height:748px!important;min-height:748px!important;max-height:748px!important;padding:80px 28px 44px!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:16px!important;position:relative!important}.premium-preview .premium-cover:after{content:""!important;position:absolute!important;inset:0!important;background:linear-gradient(180deg,rgba(255,250,245,.35),rgba(255,250,245,.72) 55%,rgba(255,250,245,.95))!important;z-index:0!important}.premium-preview .premium-cover>*{position:relative!important;z-index:1!important}.premium-preview .editable-box{width:100%!important;max-width:318px!important;border:1.5px dashed rgba(217,164,65,.65)!important;background:rgba(255,255,255,.48)!important;border-radius:14px!important;padding:12px!important}.premium-preview .photo-frame{width:210px!important;height:210px!important;min-height:210px!important;border:0!important;background:transparent!important;padding:0!important;max-width:210px!important}.premium-preview .couple-portrait,.premium-preview .couple-placeholder{width:190px!important;height:190px!important;min-width:190px!important;min-height:190px!important;max-width:190px!important;max-height:190px!important;border-radius:999px!important;overflow:hidden!important;border:6px solid #fff!important;box-shadow:0 16px 38px rgba(15,23,42,.22)!important;background:#fff!important}.premium-preview .couple-portrait span{height:100%!important;min-height:100%!important;background-size:cover!important;background-position:center top!important;background-repeat:no-repeat!important;display:block!important}.premium-preview .title-box h1{font-size:30px!important;line-height:1.18!important;margin:0!important;color:#9b6b43!important;text-shadow:0 2px 12px rgba(255,255,255,.9)!important}.premium-preview .quote-box p{font-size:13px!important;line-height:1.55!important;margin:0!important;color:#334155!important}.premium-preview .premium-countdown{display:grid!important;grid-template-columns:repeat(4,1fr)!important;width:100%!important;max-width:318px!important;gap:8px!important}.premium-preview .premium-countdown div{min-width:0!important;padding:10px 4px!important;border-radius:14px!important;background:#b08968!important;color:#fff!important;font-size:18px!important}.premium-preview .premium-section{padding:28px 26px 120px!important;min-height:360px!important;background:#fffaf5!important}.premium-preview .mini-gallery{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:9px!important}.premium-preview .mini-gallery span{height:96px!important;max-height:96px!important;border-radius:16px!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;border:4px solid #fff!important;box-shadow:0 8px 20px rgba(15,23,42,.16)!important}.premium-preview .phone-bottom-actions{position:absolute!important;left:18px!important;right:18px!important;bottom:16px!important;height:72px!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(16px)!important;border-radius:999px!important;box-shadow:0 -10px 36px rgba(15,23,42,.20)!important;display:grid!important;grid-template-columns:repeat(5,1fr)!important;align-items:center!important;z-index:10!important;border:1px solid #e2e8f0!important;overflow:hidden!important}.premium-preview .phone-bottom-actions button,.premium-preview .phone-bottom-actions a{height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:3px!important;background:transparent!important;color:#111827!important;border:0!important;box-shadow:none!important;padding:0!important;font-size:21px!important}.premium-preview .phone-bottom-actions small{font-size:10px!important;color:#334155!important;font-weight:800!important}.premium-preview .phone-bottom-actions a:nth-child(4){color:#dc2626!important}.premium-preview .premium-phone-screen img{max-width:100%!important;height:auto!important;object-fit:cover!important}.premium-preview .premium-phone-screen *{box-sizing:border-box!important}@media(max-width:1100px){.editor{grid-template-columns:1fr!important}.editor .panel.form{max-height:none!important}.premium-preview .iphone-frame{position:relative!important;top:0!important;transform:scale(.86)!important;transform-origin:top center!important}.premium-preview{min-height:760px!important}}

/* Public invitation full mobile canvas */
.invite-public{max-width:430px!important;margin:0 auto!important;min-height:100vh!important;background:#fffaf5!important;box-shadow:0 0 0 1px #eee,0 24px 80px rgba(15,23,42,.12)!important;padding:0 0 96px!important;overflow:hidden!important}.invite-public .invite-hero{width:100%!important;min-height:760px!important;border-radius:0!important;margin:0!important;padding:82px 28px 44px!important;background-size:cover!important;background-position:center!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;overflow:hidden!important}.invite-public .invite-card{width:100%!important;max-width:none!important;border-radius:0!important;margin:0!important;box-shadow:none!important}.invite-public .avatar img,.invite-public .gallery-grid img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}.invite-public .avatar{overflow:hidden!important}.front-bottom-actions{max-width:410px!important}

/* Frontend-style visual editor like premium mobile invitation builder */
.pro-editor-shell{min-height:calc(100vh - 76px);background:#fff;position:relative;margin:-30px -20px 0;overflow:hidden;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}.pro-editor-topbar{position:sticky;top:0;height:58px;background:rgba(70,70,70,.62);backdrop-filter:blur(8px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;z-index:50;color:#fff;padding:0 22px}.top-back{color:#fff!important;font-weight:800;font-size:16px}.top-title{font-weight:800;opacity:.8}.top-save{justify-self:end;background:#2454f4!important;color:#fff!important;border:0!important;border-radius:4px!important;padding:12px 28px!important;font-weight:800!important;box-shadow:none!important}.pro-editor-stage{height:calc(100vh - 58px);overflow:auto;background:linear-gradient(90deg,#fff 0,#fff 35%,#faf7f1 35%,#faf7f1 65%,#fff 65%,#fff 100%);display:flex;justify-content:center;align-items:flex-start;padding:0 0 120px}.pro-phone-canvas{width:430px;min-height:1180px;background:#fff8f0;position:relative;padding:150px 34px 130px;box-shadow:0 0 0 1px rgba(0,0,0,.04);background-image:radial-gradient(circle at 50% 32%,rgba(244,196,196,.26),transparent 28%),linear-gradient(180deg,#fffaf7,#fff3ea)}.canvas-bg-decoration{position:absolute;width:150px;height:150px;top:0;background:radial-gradient(circle,#d6b28b 0 18%,transparent 20%),linear-gradient(135deg,rgba(160,109,71,.55),rgba(255,255,255,0));opacity:.45;filter:blur(.3px);border-radius:28px}.canvas-bg-decoration.top-left{left:0;transform:rotate(18deg) translate(-30px,-38px)}.canvas-bg-decoration.top-right{right:0;transform:rotate(-18deg) translate(30px,-38px)}.editable-block{display:block;width:100%;border:2px dashed #eab308!important;background:rgba(255,255,255,.35)!important;border-radius:0!important;box-shadow:none!important;color:#334155!important;margin:0 auto 20px!important;padding:14px!important;text-align:center!important;cursor:pointer;position:relative}.editable-block:hover{background:rgba(255,247,214,.58)!important}.dash-label{position:absolute;left:10px;top:8px;font-size:11px;color:#b45309;opacity:.8}.photo-edit{height:230px;display:flex!important;align-items:center;justify-content:center}.portrait-ring{width:176px;height:176px;border-radius:999px;border:5px solid #d9bd87;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 10px 30px rgba(99,63,38,.12)}.portrait-ring i{display:block;width:58%;height:100%;background-size:cover;background-position:center top}.portrait-ring i+i{margin-left:-16%;border-left:4px solid rgba(255,255,255,.78)}.portrait-ring b{font-size:42px;color:#b08968}.portrait-ring small{display:block;margin-left:5px;color:#b08968}.title-edit{min-height:90px;display:flex!important;align-items:center;justify-content:center}.script-title{font-family:Georgia,serif;font-style:italic;font-size:35px;line-height:1.15;color:#9b6b43;white-space:normal}.quote-edit{font-size:15px;line-height:1.7;min-height:84px}.count-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.count-row span{background:#b99678;color:#fff;border-radius:12px;padding:13px 4px;font-size:24px;font-weight:900;text-transform:uppercase}.count-row small{display:block;font-size:10px;margin-top:5px}.info-edit h3{margin:0 0 6px;color:#9b6b43;font-family:Georgia,serif;font-size:26px}.info-edit p{margin:0;line-height:1.5}.gallery-edit{display:grid!important;grid-template-columns:repeat(2,1fr);gap:10px;min-height:170px}.gallery-edit i{height:130px;background-size:cover;background-position:center;border-radius:16px;border:4px solid #fff;box-shadow:0 6px 18px rgba(0,0,0,.12)}.gallery-edit span{grid-column:1/-1;align-self:center;color:#b45309;font-weight:800}.editor-bottom-nav{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);width:min(430px,calc(100vw - 32px));height:72px;background:rgba(255,255,255,.97);border-radius:999px;box-shadow:0 -10px 30px rgba(15,23,42,.18);display:grid;grid-template-columns:repeat(5,1fr);z-index:60;border:1px solid #e5e7eb;overflow:hidden}.editor-bottom-nav button,.editor-bottom-nav a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;border:0!important;background:transparent!important;color:#111827!important;font-size:22px!important;font-weight:900!important;box-shadow:none!important;padding:0!important}.editor-bottom-nav small{font-size:11px;color:#111827;margin-top:3px;font-weight:700}.editor-bottom-nav a:nth-child(4){color:#b91c1c!important}.editor-sheet{position:fixed;left:50%;bottom:0;transform:translate(-50%,105%);width:min(430px,100vw);max-height:72vh;background:#fff;border-radius:22px 22px 0 0;z-index:80;box-shadow:0 -20px 60px rgba(15,23,42,.28);transition:.25s ease;display:flex;flex-direction:column}.editor-sheet.open{transform:translate(-50%,0)}.sheet-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:70;display:none}.sheet-backdrop.open{display:block}.sheet-head{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #e5e7eb}.sheet-head b{font-size:17px}.sheet-head button{background:transparent!important;color:#111827!important;border:0!important;box-shadow:none!important;font-size:34px!important;padding:0!important}.sheet-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:0 18px;border-bottom:1px solid #e5e7eb}.sheet-tabs button{background:transparent!important;color:#64748b!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:16px 0 12px!important;font-size:16px!important}.sheet-tabs button.active{color:#111827!important;border-bottom:3px solid #3b82f6!important}.sheet-body{display:none;overflow:auto;padding:18px;gap:10px}.sheet-body.active{display:block}.sheet-body label{display:block;margin:13px 0 6px;font-size:13px;font-weight:700;color:#1f2937}.sheet-body input,.sheet-body select,.sheet-body textarea{width:100%;border:1px solid #d7dee8;border-radius:8px;padding:12px;font-size:15px;background:#fff}.sheet-body input[type=file]{border-style:dashed}.sheet-actions{padding:12px 18px 18px;border-top:1px solid #e5e7eb}.sheet-save{width:100%;background:#ff2f34!important;color:#fff!important;border:0!important;border-radius:4px!important;padding:15px!important;font-weight:900!important;box-shadow:none!important}.upload-preview{display:flex;align-items:center;gap:10px;margin:6px 0 8px}.upload-preview img{width:72px;height:72px;object-fit:cover;border-radius:12px}.upload-preview.cover img{width:130px}.gallery-admin{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.gallery-admin img{width:100%;height:84px;object-fit:cover;border-radius:10px}.checkline{display:flex!important;align-items:center;gap:8px;font-size:12px;color:#475569}.checkline input{width:auto!important}.theme-dark .pro-phone-canvas{background:#111827;color:#fff;background-image:linear-gradient(180deg,#162033,#0f172a)}.theme-dark .editable-block{background:rgba(15,23,42,.5)!important;color:#fff!important}.theme-gold .pro-phone-canvas{background:#fff8e7}.theme-soft .pro-phone-canvas{background:#fff1f6}@media(max-width:700px){.pro-editor-shell{margin:-20px -10px 0}.pro-editor-topbar{grid-template-columns:1fr 1fr;padding:0 12px}.top-title{display:none}.top-save{padding:10px 18px!important}.pro-editor-stage{background:#fff;padding-bottom:110px}.pro-phone-canvas{width:100%;max-width:430px;min-height:1050px}.editor-bottom-nav{bottom:10px}}

/* Mistercard dashboard theme for administrator & user area */
:root{--mc-blue:#3157f5;--mc-purple:#7c3aed;--mc-pink:#e43aa5;--mc-gold:#f4b431;--mc-ink:#101827;--mc-soft:#f4f7ff;--mc-panel:#ffffff;--mc-line:#e8ecf7}
body{background:radial-gradient(circle at 8% 0%,rgba(244,180,49,.16),transparent 26%),radial-gradient(circle at 92% 3%,rgba(124,58,237,.18),transparent 28%),linear-gradient(180deg,#f5f7ff 0%,#ffffff 42%,#f7faff 100%);color:var(--mc-ink)}
.topnav{height:76px;margin:14px auto 0;width:min(1180px,92%);border:1px solid rgba(226,232,240,.9);border-radius:20px;background:rgba(255,255,255,.88);box-shadow:0 18px 50px rgba(49,87,245,.12);padding:0 22px}.topnav a{font-weight:800;color:#24304a}.topnav .brand{color:#111827}.btn,button{background:linear-gradient(135deg,var(--mc-blue),var(--mc-purple),var(--mc-pink));border-radius:14px;box-shadow:0 14px 30px rgba(49,87,245,.24)}.btn.light{background:#fff;color:var(--mc-blue);border:1px solid var(--mc-line);box-shadow:0 8px 20px rgba(15,23,42,.05)}.btn.green{background:linear-gradient(135deg,#22c55e,#14b8a6)}.btn.red{background:linear-gradient(135deg,#ef4444,#e43aa5)}.dash{width:min(1180px,92%);margin:24px auto 0;grid-template-columns:280px 1fr;gap:22px;min-height:calc(100vh - 124px)}.sidebar{top:100px;height:calc(100vh - 124px);border-radius:28px;background:linear-gradient(180deg,#111827 0%,#181c3f 58%,#21164d 100%);box-shadow:0 24px 70px rgba(17,24,39,.24);border:1px solid rgba(255,255,255,.12);overflow:hidden}.sidebar:before{content:"";display:block;height:8px;margin:-28px -28px 20px;background:linear-gradient(90deg,var(--mc-gold),var(--mc-blue),var(--mc-purple),var(--mc-pink))}.sidebar h3{margin:0 0 18px;color:#fff;font-size:22px;letter-spacing:-.03em}.sidebar h3:before{content:"M";display:inline-grid;place-items:center;width:34px;height:34px;margin-right:9px;border-radius:10px;background:linear-gradient(135deg,var(--mc-gold),#ffd86b);color:#111827;font-weight:900;box-shadow:0 10px 22px rgba(244,180,49,.28)}.sidebar a{display:flex;align-items:center;gap:10px;color:#cbd5e1;border:1px solid transparent;margin:8px 0;padding:13px 14px;border-radius:16px;font-weight:800}.sidebar a:hover,.sidebar .active{background:linear-gradient(135deg,rgba(49,87,245,.95),rgba(124,58,237,.9),rgba(228,58,165,.86));color:#fff;border-color:rgba(255,255,255,.18);box-shadow:0 12px 26px rgba(49,87,245,.28)}.main{padding:4px 0 40px}.main>h1,.main .card h1{font-size:34px;letter-spacing:-.04em;margin-top:0}.main>p.muted{font-size:15px}.card,.panel{border:1px solid rgba(232,236,247,.95);border-radius:26px;background:rgba(255,255,255,.92);box-shadow:0 18px 54px rgba(15,23,42,.08);backdrop-filter:blur(12px)}.stat{min-height:128px;position:relative;overflow:hidden}.stat:after{content:"";position:absolute;right:-28px;top:-28px;width:96px;height:96px;border-radius:999px;background:linear-gradient(135deg,rgba(244,180,49,.22),rgba(124,58,237,.16))}.stat span{color:#64748b;font-weight:800}.stat b{color:#111827;letter-spacing:-.04em}.table{border:1px solid var(--mc-line);border-radius:24px;box-shadow:0 18px 54px rgba(15,23,42,.07);overflow:hidden}.table th{background:linear-gradient(180deg,#f8faff,#f1f5ff);color:#28344f;font-weight:900}.table td{background:rgba(255,255,255,.96)}.badge{background:linear-gradient(135deg,rgba(49,87,245,.12),rgba(228,58,165,.12));color:var(--mc-blue);border:1px solid rgba(49,87,245,.18)}.form input,.form select,.form textarea,.sheet-body input,.sheet-body select,.sheet-body textarea{border-color:var(--mc-line);background:#fbfcff;border-radius:14px}.form input:focus,.form select:focus,.form textarea:focus{outline:2px solid rgba(49,87,245,.18);border-color:var(--mc-blue)}.price{color:var(--mc-blue)}.footer{color:#94a3b8}.editor .panel{background:linear-gradient(180deg,#fff,#f8faff)}
@media(max-width:900px){.topnav{width:calc(100% - 22px);margin-top:10px;border-radius:18px}.dash{width:calc(100% - 22px);grid-template-columns:1fr}.sidebar{position:relative;top:0;height:auto;border-radius:24px}.main{padding-bottom:26px}}

/* UndanganPro frontend-aligned admin & user theme override */
:root{
  --blue:#2563eb;
  --sky:#2563eb;
  --primary:#2563eb;
  --accent:#7c3aed;
  --purple:#7c3aed;
  --dark:#0f172a;
  --muted:#64748b;
  --soft:#f8fafc;
  --line:#e2e8f0;
}
body{
  background:linear-gradient(135deg,#eff6ff 0%,#ffffff 48%,#faf5ff 100%) !important;
  color:#0f172a;
}
.topnav{
  height:72px !important;
  width:100% !important;
  margin:0 !important;
  border-radius:0 !important;
  border:0 !important;
  border-bottom:1px solid #e2e8f0 !important;
  background:#fff !important;
  box-shadow:none !important;
  padding:0 8% !important;
}
.topnav .brand{color:#2563eb !important;font-weight:900 !important;font-size:24px !important;letter-spacing:-.03em}
.topnav a{color:#0f172a !important;font-weight:800}
.topnav .btn,.topnav button,.btn,button{
  background:linear-gradient(135deg,#2563eb,#7c3aed) !important;
  color:#fff !important;
  border:0 !important;
  box-shadow:0 14px 30px rgba(37,99,235,.22) !important;
}
.btn.light{background:#fff !important;color:#2563eb !important;border:1px solid #e2e8f0 !important;box-shadow:none !important}
.dash{
  width:min(1180px,92%) !important;
  margin:34px auto 0 !important;
  grid-template-columns:280px 1fr !important;
  gap:24px !important;
  min-height:calc(100vh - 106px) !important;
}
.sidebar{
  top:96px !important;
  height:calc(100vh - 120px) !important;
  border-radius:28px !important;
  padding:28px !important;
  background:linear-gradient(180deg,#0f172a 0%,#1e3a8a 48%,#2563eb 100%) !important;
  color:#dbeafe !important;
  border:1px solid rgba(255,255,255,.12) !important;
  box-shadow:0 24px 70px rgba(30,58,138,.22) !important;
}
.sidebar:before{display:none !important}
.sidebar h3{color:#fff !important;font-size:22px !important;font-weight:900 !important;letter-spacing:-.03em;margin:0 0 18px !important}
.sidebar h3:before{display:none !important}
.sidebar a{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  color:#dbeafe !important;
  border-radius:16px !important;
  padding:13px 14px !important;
  margin:7px 0 !important;
  font-weight:800 !important;
  border:1px solid transparent !important;
  box-shadow:none !important;
}
.sidebar a:hover,.sidebar .active{
  background:rgba(255,255,255,.14) !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.18) !important;
  backdrop-filter:blur(8px);
}
.main{padding:4px 0 40px !important;background:transparent !important}
.main>h1,.main .card h1{font-size:34px !important;line-height:1.15;letter-spacing:-.04em;margin-top:0;color:#0f172a}
.card,.panel,.table{
  background:#fff !important;
  border:1px solid #e2e8f0 !important;
  border-radius:24px !important;
  box-shadow:0 20px 60px rgba(15,23,42,.08) !important;
}
.stat{min-height:124px;overflow:hidden;position:relative}
.stat:after{content:"";position:absolute;right:-34px;top:-34px;width:104px;height:104px;border-radius:999px;background:linear-gradient(135deg,rgba(37,99,235,.15),rgba(124,58,237,.14))}
.stat span{color:#64748b;font-weight:800}.stat b{color:#0f172a;font-size:32px;letter-spacing:-.04em}.table{overflow:hidden;border-collapse:separate;border-spacing:0}.table th{background:#f8fafc !important;color:#475569 !important;font-weight:900}.table td{background:#fff !important}.badge{background:#dbeafe !important;color:#1d4ed8 !important;border:1px solid #bfdbfe}.price{color:#2563eb !important}.progress span{background:linear-gradient(90deg,#2563eb,#7c3aed) !important}.form input,.form select,.form textarea,input,select,textarea{border-color:#e2e8f0}.form input:focus,.form select:focus,.form textarea:focus,input:focus,select:focus,textarea:focus{outline:3px solid rgba(37,99,235,.12);border-color:#2563eb}.editor .panel{background:#fff !important}.footer{color:#64748b}
@media(max-width:900px){.topnav{padding:0 4% !important}.dash{width:calc(100% - 22px) !important;grid-template-columns:1fr !important;margin-top:18px !important}.sidebar{position:relative !important;top:0 !important;height:auto !important;border-radius:24px !important}.main{padding-bottom:26px !important}}

/* Admin template manager uses the same dashboard/sidebar shell */
.admin-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:26px}.admin-page-head h1{font-size:38px;line-height:1.12;letter-spacing:-.045em;margin:0 0 8px;color:#0f172a}.muted{color:#64748b}.template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px}.template-card{background:#fff;border:1px solid #e2e8f0;border-radius:28px;overflow:hidden;box-shadow:0 20px 60px rgba(15,23,42,.08);transition:.25s}.template-card:hover{transform:translateY(-4px);box-shadow:0 28px 70px rgba(15,23,42,.12)}.template-card img,.template-empty{width:100%;height:230px;object-fit:cover;background:#e2e8f0;display:flex;align-items:center;justify-content:center;color:#64748b;font-weight:800}.template-body{padding:24px}.template-body h3{font-size:22px;line-height:1.16;margin:14px 0 10px;color:#0f172a;letter-spacing:-.035em}.template-body p{color:#64748b;line-height:1.55;min-height:48px;margin:0}.template-actions{display:flex;justify-content:space-between;gap:16px;margin-top:20px;padding-top:16px;border-top:1px solid #e2e8f0}.template-actions a{font-weight:900}.template-actions .toggle{color:#2563eb}.template-actions .delete{color:#dc2626}.upload-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:24px}.pro-form,.guide-card{padding:28px}.pro-form{display:grid;gap:14px}.pro-form label{font-weight:900;color:#0f172a}.pro-form input,.pro-form select,.pro-form textarea{width:100%;border:1px solid #e2e8f0;border-radius:16px;padding:14px 15px;font-size:15px;background:#fbfcff}.pro-form textarea{min-height:110px}.pro-form small,.guide-card p{color:#64748b;line-height:1.6}.btn-primary{background:linear-gradient(135deg,#2563eb,#7c3aed)!important;color:#fff!important;border:0!important;border-radius:16px!important;padding:15px 22px!important;font-weight:900!important;cursor:pointer!important}.guide-card h2{margin:0 0 12px;color:#0f172a;letter-spacing:-.03em}.guide-card h2+pre,.guide-card pre{background:#0f172a;color:#e2e8f0;border-radius:20px;padding:18px;overflow:auto;line-height:1.65}.alert.err{background:#fee2e2;color:#991b1b;padding:14px 18px;border-radius:16px;margin-bottom:20px;font-weight:800}.toast.ok{background:#dcfce7;color:#166534;padding:14px 18px;border-radius:16px;margin-bottom:20px;font-weight:800}@media(max-width:900px){.admin-page-head{display:block}.admin-page-head .btn,.admin-page-head .btn.light{display:inline-flex;margin-top:14px}.template-grid{grid-template-columns:1fr}.upload-layout{grid-template-columns:1fr}.template-card img,.template-empty{height:210px}}
