@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');
:root{--ink:#f1f2f4;--muted:#9b9eaa;--bg:#0d0f13;--panel:#15181f;--panel2:#1b1f28;--line:#2b303b;--gold:#d8bd82;--gold2:#f2dfb0;--red:#ff817e}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% -20%,#282a31 0,#0d0f13 55%);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;min-height:100vh}.topbar{height:68px;border-bottom:1px solid #ffffff12;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1240px)/2));background:#0d0f13d9}.brand{font-size:14px;letter-spacing:2px;color:var(--gold2);text-decoration:none;font-weight:700}.top-note,.eyebrow{font-size:10px;letter-spacing:2px;color:var(--gold);font-weight:700}.top-note{color:#8d909a}.shell{max-width:1240px;margin:auto;padding:44px 24px 24px}.hero{display:flex;justify-content:space-between;align-items:center;padding:16px 0 42px}.hero h1{font-size:clamp(36px,5vw,60px);line-height:1.07;letter-spacing:-2px;margin:14px 0 18px}.hero h1 em{font-family:'Playfair Display',serif;color:var(--gold2);font-weight:500}.sub{color:#a9acb6;max-width:590px;line-height:1.7}.hero-mark{font-size:90px;color:#d8bd8224;padding-right:50px}.panel{background:linear-gradient(145deg,#191c23,#14171d);border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:0 18px 60px #0002}.login-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.login-panel h2,.section-heading h2,.panel h2{margin:4px 0 8px;font-size:21px}.muted{color:var(--muted);font-size:13px}.inline-form{display:flex;gap:8px;flex-wrap:wrap}.inline-form input{width:250px}.input, input, select{font:inherit}input,select{background:#0d1016;border:1px solid #363b47;border-radius:9px;color:#f3f3f5;padding:12px 13px;outline:none;min-width:0}input:focus,select:focus{border-color:var(--gold)}button{font:inherit;cursor:pointer;border:0;border-radius:9px;padding:12px 16px;font-weight:700;transition:.15s}button:disabled{opacity:.38;cursor:not-allowed}.primary{background:var(--gold);color:#17140d}.primary:hover{background:var(--gold2)}.secondary{background:#282d37;color:#e8e9ec;border:1px solid #3a404c}.dark{background:#f0f0f0;color:#121212}.full{width:100%}.text-button{background:transparent;color:var(--gold);padding:7px}.steps{display:flex;gap:10px;margin:26px 0 18px}.step{font-size:12px;color:#6d717d;border:1px solid var(--line);border-radius:30px;padding:10px 16px}.step b{margin-left:8px;color:#b9bbc3}.step.active{border-color:#7a6845;background:#d8bd820e;color:var(--gold)}.workspace{display:grid;grid-template-columns:minmax(280px,.82fr) minmax(0,1.4fr);gap:18px;align-items:start}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.tag{border:1px solid #393e49;border-radius:5px;padding:5px 8px;font-size:9px;letter-spacing:1px;color:#a5a8b1;white-space:nowrap}.upload-form{display:grid;gap:14px}.field-label{display:grid;gap:8px;color:#c9cbd2;font-size:12px;font-weight:600}.dropzone{border:1px dashed #54505a;border-radius:12px;background:#101218;min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;padding:18px;cursor:pointer}.dropzone input{display:none}.dropzone b{font-size:13px}.dropzone small{color:#898d98;font-size:11px}.upload-icon{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#d8bd821a;color:var(--gold);font-size:22px}.file-name{font-size:11px;color:var(--gold);max-width:100%;overflow-wrap:anywhere}.status,.error{font-size:12px;color:var(--gold);min-height:16px}.error{color:var(--red)}.library-head{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:25px;padding-top:16px}.library-head h3{font-size:14px;margin:0}.video-library,.project-library{display:grid;gap:8px;margin-top:10px}.video-item,.project-item{padding:12px;background:#101218;border:1px solid #282d37;border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:12px}.video-item strong,.project-item strong{display:block;font-size:12px;overflow-wrap:anywhere}.video-item small,.project-item small{display:block;color:#8d919d;margin-top:5px;font-size:10px}.video-item button,.project-item button{padding:8px 10px;font-size:11px;white-space:nowrap}.preview{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:10px;background:#050609;border:1px solid #343945}.preview video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:none}.preview.has-video video{display:block}.preview-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#8a8e99}.preview-empty span{font-size:30px;color:var(--gold)}.preview.has-video .preview-empty{display:none}.preview-empty b{font-size:13px}.preview-empty small{font-size:10px}.text-overlay{position:absolute;inset:0;pointer-events:none;overflow:hidden}.overlay-text{position:absolute;white-space:pre-wrap;max-width:90%;transform:translate(-50%,-50%);text-shadow:0 2px 8px #000c;line-height:1.2;overflow-wrap:anywhere}.preview-label{position:absolute;top:10px;left:10px;background:#0008;color:#ddd;padding:5px 7px;border-radius:3px;font-size:8px;letter-spacing:1px}.editor-controls{display:grid;gap:14px;margin-top:18px}.layer-card{border:1px solid #333844;background:#11141a;border-radius:10px;padding:14px;display:grid;gap:11px}.layer-top{display:flex;justify-content:space-between;align-items:center}.layer-top b{font-size:12px}.remove-layer{padding:3px 7px;background:#2d2023;color:#ffaaa7}.layer-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.layer-grid .wide{grid-column:1/-1}.layer-grid input[type=color]{padding:3px;height:38px;width:100%}.range-line{display:grid;grid-template-columns:1fr 1fr;gap:10px}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.result{background:#101b17;border:1px solid #294e3b;border-radius:9px;padding:13px;overflow-wrap:anywhere;font-size:12px}.result a{color:#a7e6c0}.result button{margin-top:8px}.footnote{font-size:10px;color:#888d98;line-height:1.6}.project-panel{margin-top:18px}.project-library{grid-template-columns:repeat(2,minmax(0,1fr))}footer{display:flex;justify-content:space-between;gap:12px;padding:28px 0 8px;color:#696d78;font-size:9px;letter-spacing:1px}footer span{letter-spacing:0}.presentation-body{background:#000;overflow:hidden}.presentation{position:fixed;inset:0;background:#000}.presentation video{width:100%;height:100%;object-fit:contain}.presentation .text-overlay{inset:0}.presentation-message{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#ddd;font-size:14px;background:#0009;padding:15px;border-radius:8px}.fullscreen-button,.exit-link{position:absolute;bottom:18px;background:#0008;color:#fff;border:1px solid #ffffff33;font-size:12px;padding:10px 14px;text-decoration:none}.fullscreen-button{right:18px}.exit-link{left:18px}.presentation:hover .fullscreen-button,.presentation:hover .exit-link{opacity:1}@media(max-width:850px){.workspace{grid-template-columns:1fr}.hero-mark{display:none}.project-library{grid-template-columns:1fr}.shell{padding:25px 14px}.panel{padding:17px}.hero{padding-bottom:28px}.hero h1{letter-spacing:-1px}.steps{overflow:auto}.step{white-space:nowrap}.top-note{display:none}}@media(min-width:851px){.upload-panel{position:sticky;top:16px}}
.preview,.presentation{container-type:inline-size}

/* Subtle watermark discourages casual capture; browser playback cannot be made impossible to record. */
.preview-watermark{position:absolute;right:2.5%;bottom:3%;z-index:5;color:rgba(255,255,255,.38);font-size:clamp(10px,1.1vw,20px);letter-spacing:.12em;pointer-events:none;text-shadow:0 1px 4px #000;}

/* Customer storefront */
.customer-body{background:#0a0d15;color:#f4f2ed}.customer-topbar{height:76px;padding:0 clamp(20px,5vw,80px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12;background:#0a0d15ee;position:sticky;top:0;z-index:20;backdrop-filter:blur(18px)}.customer-topbar nav{display:flex;gap:28px;align-items:center}.customer-topbar nav a,.customer-footer>a:not(.brand){color:#c0c2cc;text-decoration:none;font-size:13px}.customer-topbar nav a:hover,.customer-footer a:hover{color:#f2dfb0}.nav-admin{padding:10px 14px;border:1px solid #ffffff25;border-radius:999px}.customer-shell{max-width:1440px;margin:auto;padding:0 clamp(20px,5vw,80px)}.customer-hero{min-height:520px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:50px;padding:60px 0 78px}.customer-hero h1{font-size:clamp(40px,5vw,68px);letter-spacing:-2.8px;line-height:1.08;margin:14px 0 20px}.customer-hero h1 em{font-family:Georgia,serif;color:#d8bd83;font-weight:400}.customer-lead{max-width:590px;color:#a9adba;font-size:16px;line-height:1.8}.hero-cta{display:inline-flex;align-items:center;gap:30px;text-decoration:none;margin-top:16px;padding:14px 20px}.trust-row{display:flex;flex-wrap:wrap;gap:18px;margin-top:30px;color:#a6aab6;font-size:11px;letter-spacing:.03em}.hero-art{min-height:350px;display:grid;place-items:center;position:relative}.hero-art-glow{position:absolute;width:85%;height:80%;background:#b98e4830;filter:blur(75px);border-radius:50%}.hero-screen{width:min(100%,540px);aspect-ratio:16/10;border:1px solid #d7bd7d66;border-radius:12px;box-shadow:0 25px 100px #000a;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:radial-gradient(ellipse at 50% 100%,#b68c4a38,transparent 45%),linear-gradient(140deg,#05060a,#171b2b 60%,#08090f)}.hero-screen:before{content:"";position:absolute;inset:0;background-image:radial-gradient(#f6e7c9 1px,transparent 1.5px);background-size:37px 31px;opacity:.3}.hero-screen .stars,.hero-screen small,.hero-screen strong,.hero-screen .screen-tag{position:relative}.hero-screen .stars{color:#e6d7b1;line-height:1.5;letter-spacing:9px;text-align:center;opacity:.8}.hero-screen small{font-size:9px;letter-spacing:.3em;color:#d6c8a5}.hero-screen strong{font-family:Georgia,serif;font-size:clamp(22px,3vw,38px);font-weight:400;color:#f5e7c5;text-align:center}.hero-screen strong i{font-size:.6em;color:#d4a76b}.screen-tag{position:absolute!important;bottom:12px;right:12px;background:#0008;padding:6px 8px;border-radius:4px;font-size:8px!important;letter-spacing:.14em!important}.catalog-section{padding:45px 0 80px;border-top:1px solid #ffffff12}.customer-section-heading{align-items:end;margin-bottom:25px}.customer-section-heading h2,.how-section h2{font-size:clamp(28px,3vw,42px);letter-spacing:-1.4px;margin:8px 0}.customer-section-heading .muted{margin:8px 0 0}.catalog-tools{display:flex;gap:10px}.catalog-tools input,.catalog-tools select{background:#121723;border:1px solid #ffffff20;color:#f4f2ed;border-radius:9px;padding:11px 13px;min-width:155px}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.template-card{border:1px solid #ffffff15;background:#111520;border-radius:14px;overflow:hidden;transition:transform .2s,border-color .2s}.template-card:hover{transform:translateY(-4px);border-color:#d5b77875}.template-cover{aspect-ratio:16/9;position:relative;overflow:hidden;display:grid;place-items:center}.template-cover video{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;opacity:.8}.cover-shine{position:absolute;inset:0;background:linear-gradient(130deg,#0003,transparent 45%,#d8bd8320);pointer-events:none}.template-badge{position:absolute;top:12px;left:12px;padding:6px 8px;border:1px solid #ffffff30;background:#080b13aa;border-radius:4px;font-size:9px;letter-spacing:.13em}.template-card-body{padding:18px}.template-card-body h3{font-size:18px;margin:0 0 7px}.template-card-body p{font-size:12px;line-height:1.7;color:#a5a9b6;min-height:42px}.template-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:17px}.template-card-bottom strong{font-size:13px;color:#e2c990}.template-card-bottom button{font-size:11px;padding:10px 12px;white-space:nowrap}.catalog-message{margin-top:18px}.loading-card,.empty-catalog{grid-column:1/-1;text-align:center;padding:45px 20px;border:1px dashed #ffffff22;border-radius:12px;color:#a5a9b6}.empty-catalog span{font-size:30px;color:#e2c990}.how-section{border-top:1px solid #ffffff12;padding:65px 0 85px;display:grid;grid-template-columns:.7fr 1.3fr;gap:55px}.how-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:30px}.how-grid article{border-top:1px solid #d8bd8355;padding-top:15px}.how-grid article span{color:#d8bd83;font-size:11px;letter-spacing:.2em}.how-grid h3{margin:12px 0 7px;font-size:17px}.how-grid p{color:#a5a9b6;font-size:12px;line-height:1.8;margin:0}.customer-footer{border-top:1px solid #ffffff18;display:flex;align-items:center;justify-content:space-between;padding:25px 0;color:#8c909e;font-size:11px}.customer-footer .brand{font-size:13px}.modal-open{overflow:hidden}.modal-backdrop{position:fixed;inset:0;z-index:100;background:#03050bd9;backdrop-filter:blur(8px);overflow:auto;padding:28px 14px;display:flex;justify-content:center;align-items:flex-start}.modal-backdrop[hidden]{display:none}.editor-modal{width:min(1180px,100%);background:#10141f;border:1px solid #ffffff20;border-radius:16px;padding:24px;box-shadow:0 30px 100px #0009}.modal-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ffffff12;padding-bottom:16px;margin-bottom:20px}.modal-header h2{margin:5px 0 0}.icon-button{border:1px solid #ffffff25;background:#171d2a;color:#fff;border-radius:9px;width:38px;height:38px;cursor:pointer}.customer-editor-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:24px}.customer-preview-wrap{position:sticky;top:15px;align-self:start}.customer-preview{position:relative;aspect-ratio:16/9;width:100%;container-type:inline-size;background:#080b13;border-radius:10px;overflow:hidden}.customer-preview video{width:100%;height:100%;object-fit:contain}.customer-preview .text-overlay{position:absolute;inset:0;pointer-events:none}.preview-watermark{position:absolute;right:10px;bottom:8px;font-size:9px;letter-spacing:.16em;color:#ffffffc9;text-shadow:0 1px 4px #000;background:#0007;padding:5px 7px;border-radius:3px}.preview-loading{position:absolute;inset:0;display:grid;place-items:center;color:#e2c990;background:#080b13a8;font-size:12px}.preview-disclaimer{font-size:10px;color:#969baa;line-height:1.6}.customer-form-column{min-width:0}.customer-form-column>.field-label{margin-bottom:14px}.customer-form-column .layer-card{background:#151a27}.checkout-area{border-top:1px solid #ffffff18;margin-top:25px;padding-top:25px}.checkout-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.checkout-title h3{margin:5px 0}.price-tag{font-size:20px;color:#e2c990;font-weight:700}.checkout-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:22px}.qr-panel,.payment-details{background:#151a27;border:1px solid #ffffff13;border-radius:12px;padding:18px}.qr-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:240px}.qr-panel img{width:min(250px,100%);background:#fff;padding:10px;border-radius:10px}.qr-placeholder{color:#9da2b1;font-size:12px;line-height:1.7}.qr-panel p{font-size:11px}.payment-code-row{display:flex;gap:8px;align-items:center}.payment-code-row code{background:#090c13;color:#e2c990;border:1px solid #ffffff15;border-radius:8px;padding:12px;flex:1;overflow-wrap:anywhere}.payment-pending,.payment-paid{font-size:12px;padding:10px;border-radius:8px;background:#302719;color:#e2c990}.payment-paid{background:#123126;color:#a4e7c7}.payment-details .full{margin-top:8px}.delivery-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.delivery-links h4,.delivery-links p{width:100%;margin:0}.delivery-links p{font-size:11px;color:#a5a9b6}.delivery-button{display:inline-flex;align-items:center;justify-content:center;padding:11px 13px;border-radius:8px;text-decoration:none;font-size:11px}.delivery-button.secondary{border:1px solid #ffffff25;color:#eee}.customer-footer .brand{text-decoration:none;color:#f4f2ed}
@media(max-width:900px){.customer-hero{grid-template-columns:1fr;gap:20px;padding-top:50px}.hero-art{min-height:280px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.how-section{grid-template-columns:1fr;gap:25px}.customer-editor-grid{grid-template-columns:1fr}.customer-preview-wrap{position:static}.checkout-grid{grid-template-columns:1fr}.customer-topbar nav{gap:14px}.customer-topbar nav a{font-size:11px}}
@media(max-width:600px){.customer-topbar{padding:0 16px;height:65px}.customer-topbar nav a:not(.nav-admin){display:none}.customer-shell{padding:0 16px}.customer-hero h1{font-size:39px;letter-spacing:-1.7px}.hero-art{min-height:220px}.catalog-grid{grid-template-columns:1fr}.customer-section-heading{align-items:stretch;flex-direction:column}.catalog-tools{flex-direction:column}.catalog-tools input,.catalog-tools select{width:100%}.how-grid{gap:18px}.customer-footer{align-items:flex-start;gap:12px;flex-direction:column}.editor-modal{padding:15px}.modal-backdrop{padding:10px 6px}.checkout-title{align-items:flex-start;gap:12px}.price-tag{font-size:16px}}
.video-item-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.video-item-actions .text-button{font-size:10px}
.admin-top-actions{display:flex;align-items:center;gap:14px}.admin-top-actions button{font-size:11px;padding:8px 11px}

/* Consolidated customer editor controls */
.layer-top>div{display:flex;gap:6px;align-items:center}.collapse-layer{font-size:10px;padding:5px 8px}.layer-grid[hidden]{display:none!important}.customer-preview .preview-watermark{position:absolute;right:10px;bottom:8px;z-index:8;pointer-events:none;user-select:none;font-size:clamp(9px,1vw,14px);letter-spacing:.12em;color:#ffffffb8;text-shadow:0 1px 4px #000;background:#0007;padding:5px 7px;border-radius:3px}

.home-slide{position:relative}.home-slide video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.72}.home-slide strong,.home-slide small,.home-slide .stars{z-index:1;text-shadow:0 2px 8px #000}.home-slide:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0009,transparent 70%);pointer-events:none}

/* FIX: bo lop nen lam toi video xem truoc */
.customer-preview .preview-loading {
  background: transparent !important;
}

/* FIX: watermark khong co hop nen toi */
.customer-preview .preview-watermark {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
  user-select: none !important;
}

/* Khong lam mo video bang hieu ung CSS */
.customer-preview,
.customer-preview video {
  filter: none !important;
}

/* FIX PREVIEW: watermark khong co nen toi */
.customer-preview .preview-watermark {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Khong phu nen len video */
.customer-preview .preview-loading {
  background: transparent !important;
}

/* An dong thong bao cu neu con ton tai */
.preview-disclaimer {
  display: none !important;
}

/* Fix preview loading */
#previewLoading[hidden] {
  display: none !important;
}

/* Watermark chi hien thi mot lop, khong co nen */
.customer-preview .preview-watermark {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Tranh hien thi lop phu toi */
.customer-preview .preview-loading {
  background: transparent !important;
}

/* FINAL FIX: preview loading va watermark */
#previewLoading {
  display: none !important;
}

.customer-preview .preview-watermark {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: 0 1px 3px #000 !important;
}

/* Chi giu watermark trong khung preview */
.customer-preview > .preview-watermark {
  display: block !important;
}

.customer-preview .preview-loading {
  background: transparent !important;
}

.preview-disclaimer {
  display: none !important;
}

/* FIX: tam an watermark giao dien de kiem tra watermark trong video */
.customer-preview > .preview-watermark {
  display: none !important;
}


/* LOCAL_CUSTOM_FONTS_V1 */
@font-face{font-family:'Alex Brush';src:url('/fonts/AlexBrush-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Allura';src:url('/fonts/Allura-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Be Vietnam Pro';src:url('/fonts/BeVietnamPro-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Corinthia';src:url('/fonts/Corinthia-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Cormorant Garamond';src:url('/fonts/CormorantGaramond-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Dancing Script';src:url('/fonts/DancingScript-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'EB Garamond';src:url('/fonts/EBGaramond-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Ephesis';src:url('/fonts/Ephesis-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Great Vibes';src:url('/fonts/GreatVibes-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Imperial Script';src:url('/fonts/ImperialScript-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Josefin Sans';src:url('/fonts/JosefinSans-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Lora';src:url('/fonts/Lora-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Manrope';src:url('/fonts/Manrope-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Montserrat';src:url('/fonts/Montserrat-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Noto Serif Display';src:url('/fonts/NotoSerifDisplay-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Pinyon Script';src:url('/fonts/PinyonScript-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Playfair Display';src:url('/fonts/PlayfairDisplay-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Prata';src:url('/fonts/Prata-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Quicksand';src:url('/fonts/Quicksand-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:'Raleway';src:url('/fonts/Raleway-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap;}


/* Category-first catalog and floating contact links */
.catalog-category-section{margin:24px 0 38px}.catalog-category-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 15px}.catalog-category-heading h3{font-size:clamp(20px,2.5vw,27px);margin:0;color:var(--text,#f6f3ee)}.category-grid{margin-top:0}.contact-floats{position:fixed;z-index:90;right:18px;bottom:22px;display:flex;flex-direction:column;gap:10px}.contact-float{display:flex;align-items:center;justify-content:center;min-width:86px;padding:11px 14px;border-radius:999px;color:#fff;text-decoration:none;font-size:12px;font-weight:800;box-shadow:0 8px 24px #0003;transition:transform .18s ease}.contact-float:hover{transform:translateY(-2px)}.contact-float.zalo{background:#087cf0}.contact-float.viber{background:#7360f2}.contact-float.facebook{background:#1877f2}@media(max-width:600px){.contact-floats{right:10px;bottom:12px;gap:7px}.contact-float{min-width:70px;padding:9px 10px;font-size:11px}.catalog-category-heading{align-items:flex-start}}


/* Separate PowerPoint preview/original upload fields and purchase dialog */
#powerPointFields[hidden], #regularVideoFields[hidden] { display: none !important; }
#powerPointFields { display: grid; gap: 14px; }
.ppt-purchase-dialog { width: min(920px, calc(100vw - 28px)); max-height: 92vh; overflow: auto; }
.ppt-purchase-dialog .checkout-area { display: block; }
.ppt-purchase-dialog #pptPurchaseQr { display: block; width: min(320px, 100%); height: auto; margin: 0 auto; border-radius: 12px; }
.ppt-purchase-dialog .payment-details { min-width: 0; }
.ppt-purchase-dialog .payment-code-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ppt-purchase-dialog .payment-code-row code { overflow-wrap: anywhere; }

/* FIX CATALOG LAYOUT - 2026-10-25 */
#catalogGrid.catalog-grid {
  display: block !important;
  width: 100%;
  min-width: 0;
}

#catalogGrid > .catalog-category-section {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 38px;
}

#catalogGrid > .catalog-category-section > .catalog-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0 0 18px;
}

#catalogGrid > .catalog-category-section > .category-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  min-width: 0;
  margin: 0;
  align-items: start;
}

#catalogGrid .template-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#catalogGrid .template-card-body {
  min-width: 0;
}

#catalogGrid .template-card-body h3 {
  overflow-wrap: anywhere;
}

#catalogGrid .template-card-bottom {
  flex-wrap: wrap;
  align-items: center;
}

#catalogGrid .template-card-bottom button {
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 900px) {
  #catalogGrid > .catalog-category-section > .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #catalogGrid > .catalog-category-section > .category-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ==========================================================
   LIGHT MARKETPLACE THEME — inspired by modern template shops
   ========================================================== */
:root{--ink:#292a2c;--muted:#77766f;--bg:#f7f5f0;--panel:#fff;--panel2:#f1eee7;--line:#e7e1d6;--gold:#b68a42;--gold2:#8f682b;--red:#bd4545;--text:#292a2c}
body.customer-body{background:#fbfaf7;color:#292a2c;font-family:Arial,Helvetica,sans-serif}
.customer-topbar{height:auto;min-height:76px;padding:14px clamp(18px,5vw,76px);background:#fff;border-bottom:1px solid #eae5dc;backdrop-filter:none;box-shadow:0 2px 12px #292a2c05}
.customer-topbar .brand{display:flex;align-items:center;gap:10px;color:#252522;letter-spacing:0;text-decoration:none}
.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#f2e6cf;color:#9b722f;font-size:23px}
.brand-name{font-size:15px;letter-spacing:1.5px;font-weight:800;display:flex;flex-direction:column;gap:3px}
.brand-name small{font-size:8px;letter-spacing:1.4px;color:#8c8579;font-weight:600}
.customer-topbar nav{gap:clamp(12px,2vw,30px)}
.customer-topbar nav a,.customer-footer>a:not(.brand){color:#5e5a52;font-size:13px;text-decoration:none}
.customer-topbar nav a:hover{color:#a67a34}
.customer-topbar .nav-admin{border:1px solid #e4d6bb;color:#805d27;padding:9px 13px;border-radius:8px}
.customer-shell{max-width:1440px;padding:0 clamp(18px,4.8vw,72px)}
.customer-hero{position:relative;min-height:420px;margin:28px 0 14px;padding:52px clamp(24px,4vw,58px);grid-template-columns:1.05fr .95fr;gap:35px;border:1px solid #eee3d0;border-radius:22px;background:linear-gradient(110deg,#fff 0%,#fffdf8 53%,#f3e8d5 100%);box-shadow:0 16px 45px #4e3b1b0a;overflow:hidden}
.customer-hero h1{color:#292820;font-size:clamp(38px,4.4vw,60px);letter-spacing:-2.2px;line-height:1.08;margin:14px 0 18px}
.customer-hero h1 em{color:#a77932;font-family:Georgia,serif}
.eyebrow{color:#a77932;font-size:10px;letter-spacing:1.8px}
.customer-lead{color:#6f6b62;max-width:560px;font-size:15px;line-height:1.85}
.hero-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.hero-cta{margin-top:14px;padding:14px 19px;border-radius:9px;gap:16px;text-decoration:none;background:#b58a45;color:#fff}
.hero-cta:hover{background:#9e7435}
.hero-secondary{margin-top:14px;color:#655744;font-size:13px;font-weight:700;text-decoration:none;border-bottom:1px solid #d9c7a8;padding:10px 0}
.trust-row{color:#777166;gap:18px;margin-top:25px;letter-spacing:0;font-size:11px}
.hero-art{min-height:280px;isolation:isolate}
.hero-art-glow{background:#d4b87b30;filter:blur(55px)}
.hero-screen{width:min(100%,560px);aspect-ratio:16/10;border:7px solid #fff;border-radius:15px;background:#ede5d6;box-shadow:0 22px 55px #3a2d1c24;overflow:hidden}
.hero-screen:before{background-image:none}
.hero-screen video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-screen strong,.hero-screen small,.hero-screen .stars{z-index:1;text-shadow:0 2px 12px #0009;color:#fff}
.hero-screen strong{font-family:Georgia,serif;font-size:clamp(22px,2.7vw,34px)}
.hero-floating-note{position:absolute;z-index:2;left:0;bottom:10px;display:flex;align-items:center;gap:10px;padding:12px 16px;border:1px solid #ffffffb0;border-radius:12px;background:#ffffffed;box-shadow:0 12px 30px #47371d18;color:#373229}
.hero-floating-note>span{font-size:23px;color:#b58a45}.hero-floating-note b,.hero-floating-note small{display:block}.hero-floating-note b{font-size:12px}.hero-floating-note small{font-size:10px;color:#81786b;margin-top:4px}
.catalog-section{padding:48px 0 72px;border-top:0}
.customer-section-heading{align-items:end;margin-bottom:25px;gap:20px}
.customer-section-heading h2,.how-section h2{font-size:clamp(27px,3vw,38px);letter-spacing:-1px;color:#292820;margin:7px 0}
.customer-section-heading .muted{color:#7d786f}
.catalog-tools input,.catalog-tools select{background:#fff;border:1px solid #e2ddd3;color:#3c3933;border-radius:9px;padding:12px 13px;box-shadow:0 2px 6px #00000004}
.catalog-tools input::placeholder{color:#999187}
#catalogGrid.catalog-grid{display:block!important;width:100%;min-width:0}
#catalogGrid>.catalog-category-section{display:block;width:100%;min-width:0;margin:30px 0 44px}
.catalog-category-heading{align-items:center;margin-bottom:18px}
.catalog-category-heading h3{font-size:23px;color:#2e2b25;font-weight:800;letter-spacing:-.4px}
.catalog-category-heading .text-button{color:#9b712e;font-size:12px;font-weight:700}
#catalogGrid>.catalog-category-section>.category-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;width:100%;align-items:stretch}
.template-card{background:#fff;border:1px solid #e9e4db;border-radius:12px;overflow:hidden;box-shadow:0 5px 20px #342b1a08;transition:transform .2s,box-shadow .2s,border-color .2s;min-width:0}
.template-card:hover{transform:translateY(-3px);border-color:#d5bd91;box-shadow:0 12px 28px #342b1a12}
.template-cover{aspect-ratio:16/10;background:#eae3d7!important}
.template-cover video{opacity:1;object-fit:cover}
.cover-shine{background:linear-gradient(180deg,#00000008,transparent 60%,#00000010)}
.template-badge{top:10px;left:10px;padding:5px 7px;background:#ffffffed;border:1px solid #ffffff;color:#6c5128;font-size:8px;letter-spacing:.08em;border-radius:5px}
.template-card-body{padding:15px 16px 16px}
.template-card-body h3{font-size:15px;line-height:1.45;color:#292820;margin:0 0 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:43px}
.template-card-body p{font-size:11px;line-height:1.65;color:#777268;min-height:36px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}
.template-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:15px}
.template-card-bottom strong{font-size:13px;color:#9b712e;line-height:1.4}
.template-card-bottom button{font-size:10px;padding:9px 10px;white-space:normal;border-radius:7px;background:#b58a45;color:#fff;flex-shrink:0}
.template-card-bottom button:hover{background:#9e7435}
.loading-card,.empty-catalog{border:1px dashed #d8d0c2;color:#797267;background:#fff;border-radius:12px}
.catalog-message{color:#777268}
.how-section{border-top:1px solid #e9e3d8;padding:58px 0 70px;grid-template-columns:.7fr 1.3fr;gap:50px}
.how-section h2{color:#292820}
.how-grid article{border-top:1px solid #d8bd83;padding-top:16px}
.how-grid article span{color:#a77932}
.how-grid h3{color:#333027}.how-grid p{color:#777268}
.customer-footer{border-top:1px solid #e9e3d8;color:#817a6f;padding:25px 0;font-size:11px}
.customer-footer .brand{color:#38342d;text-decoration:none}
.customer-footer a{color:#8d682d}
.contact-float{box-shadow:0 8px 24px #0002}
/* Keep dialogs readable with the light storefront while preserving contrast */
@media(min-width:901px){#catalogGrid>.catalog-category-section>.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){#catalogGrid>.catalog-category-section>.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-hero{padding:40px 30px}}
@media(max-width:900px){.customer-hero{grid-template-columns:1fr;padding:35px 25px}.hero-art{min-height:260px}.hero-screen{margin:auto}.hero-floating-note{left:4%;bottom:0}#catalogGrid>.catalog-category-section>.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-topbar nav{gap:12px}}
@media(max-width:600px){.customer-topbar{padding:12px 16px;align-items:center;gap:12px}.brand-mark{width:34px;height:34px}.brand-name{font-size:12px}.brand-name small{font-size:7px}.customer-topbar nav a:not(.nav-admin){display:none}.customer-shell{padding:0 16px}.customer-hero{margin-top:16px;padding:27px 20px;border-radius:15px;gap:20px}.customer-hero h1{font-size:38px;letter-spacing:-1.4px}.customer-lead{font-size:13px}.trust-row{gap:10px;line-height:1.6}.hero-art{min-height:200px}.hero-screen{width:100%;border-width:5px}.hero-floating-note{left:0;bottom:-8px;padding:9px 12px}.customer-section-heading{align-items:stretch;flex-direction:column}.catalog-tools{flex-direction:column}.catalog-tools input,.catalog-tools select{width:100%}#catalogGrid>.catalog-category-section>.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.template-card-body{padding:11px}.template-card-body h3{font-size:13px;min-height:38px}.template-card-body p{font-size:10px;min-height:31px}.template-card-bottom{align-items:flex-start;flex-direction:column;gap:9px}.template-card-bottom button{width:100%}.catalog-category-heading h3{font-size:20px}.how-section{grid-template-columns:1fr;gap:22px}.how-grid{gap:18px}.customer-footer{align-items:flex-start;flex-direction:column}.contact-floats{right:8px;bottom:10px}}

/* Product pricing */
.price-old{font-size:11px!important;color:#8b8f9b!important;text-decoration:line-through;margin-right:5px}.price-current{color:#b17b28!important;font-size:14px!important;font-weight:800}
.video-item-actions{flex-wrap:wrap}


/* Admin panel refresh: consistent light storefront palette */
:root{--admin-ink:#29251f;--admin-muted:#777166;--admin-paper:#fbf9f4;--admin-line:#e8e0d2;--admin-gold:#a87b35}
body:has(#loginPanel),body:has(#appPanel){background:#f7f4ee!important;color:var(--admin-ink)!important}
#loginPanel,#appPanel .panel,#appPanel .project-panel{background:#fffdf9!important;color:var(--admin-ink)!important;border:1px solid var(--admin-line)!important;box-shadow:0 8px 28px #473a2010!important;border-radius:16px!important}
#appPanel h1,#appPanel h2,#appPanel h3,#loginPanel h1,#loginPanel h2{color:#29251f!important}
#appPanel .muted,#appPanel small,#loginPanel .muted{color:var(--admin-muted)!important}
#appPanel input,#appPanel select,#appPanel textarea,#loginPanel input{background:#fff!important;color:#29251f!important;border:1px solid #dcd3c4!important;border-radius:9px!important}
#appPanel button.primary,#loginPanel button.primary{background:#b18a4c!important;color:#fff!important;border:1px solid #b18a4c!important}
#appPanel button.secondary,#appPanel .text-button{background:#f7f2e8!important;color:#5c4728!important;border:1px solid #e3d5bc!important}
#appPanel .video-library-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch}
#appPanel .video-library-grid .video-item{display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-width:0;background:#fffdf9;border:1px solid var(--admin-line);border-radius:12px;padding:14px;overflow-wrap:anywhere}
#appPanel .video-library-grid .video-item[hidden]{display:none!important}
#appPanel .video-library-grid .video-item>div:first-child{min-width:0}
#appPanel .video-library-grid .video-item-actions{display:flex;flex-wrap:wrap;gap:6px}
#appPanel .video-library-grid .video-item-actions button{flex:1 1 auto;min-height:34px}
#appPanel .pagination-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:18px 0 28px}
#appPanel .pagination-summary{color:var(--admin-muted);font-size:12px;margin-right:8px}
#appPanel .pagination-controls button{min-width:38px;padding:8px 11px}
#appPanel .pagination-controls button.active-page{background:#b18a4c!important;color:#fff!important;border-color:#b18a4c!important}
@media(max-width:1100px){#appPanel .video-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){#appPanel .video-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){#appPanel .video-library-grid{grid-template-columns:1fr}}


/* FINAL ADMIN CLEANUP: single-column library, no live-preview editor, consistent light theme */
:root{--admin-ink:#29251f;--admin-muted:#777166;--admin-paper:#fbf9f4;--admin-line:#e8e0d2;--admin-gold:#a87b35}
body:has(#loginPanel),body:has(#appPanel){background:#f7f4ee!important;color:var(--admin-ink)!important}
body:has(#appPanel) .hero{padding-bottom:24px}
body:has(#appPanel) .hero h1{color:#29251f!important}
body:has(#appPanel) .hero .sub{color:#777166!important}
body:has(#appPanel) .steps{display:none!important}
body:has(#appPanel) .workspace{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
body:has(#appPanel) .editor-panel{display:none!important}
#loginPanel,#appPanel .panel,#appPanel .project-panel{background:#fffdf9!important;color:var(--admin-ink)!important;border:1px solid var(--admin-line)!important;box-shadow:0 8px 28px #473a2010!important;border-radius:16px!important}
#appPanel h1,#appPanel h2,#appPanel h3,#loginPanel h1,#loginPanel h2{color:#29251f!important}
#appPanel .muted,#appPanel small,#loginPanel .muted{color:var(--admin-muted)!important}
#appPanel input,#appPanel select,#appPanel textarea,#loginPanel input{background:#fff!important;color:#29251f!important;border:1px solid #dcd3c4!important;border-radius:9px!important}
#appPanel button.primary,#loginPanel button.primary{background:#b18a4c!important;color:#fff!important;border:1px solid #b18a4c!important}
#appPanel button.secondary,#appPanel .text-button{background:#f7f2e8!important;color:#5c4728!important;border:1px solid #e3d5bc!important}
#appPanel .dropzone{background:#faf7f0!important;border:1px dashed #d8c9ae!important;color:#383229!important}
#appPanel .dropzone small{color:#777166!important}
#appPanel .upload-icon{background:#f1e7d5!important;color:#a87b35!important}
#appPanel .file-name,#appPanel .status{color:#98702f!important}
#appPanel .library-head{border-color:#e8e0d2!important}
#appPanel .video-library-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;align-items:stretch!important;width:100%!important}
#appPanel .video-library-grid .video-item{display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:12px!important;min-width:0!important;background:#fffdf9!important;border:1px solid var(--admin-line)!important;border-radius:12px!important;padding:14px!important;overflow-wrap:anywhere!important;color:#29251f!important}
#appPanel .video-library-grid .video-item[hidden]{display:none!important}
#appPanel .video-library-grid .video-item>div:first-child{min-width:0!important;width:100%!important}
#appPanel .video-library-grid .video-item strong{color:#29251f!important;font-size:13px!important;line-height:1.45!important}
#appPanel .video-library-grid .video-item small{color:#777166!important;line-height:1.5!important;overflow-wrap:anywhere!important}
#appPanel .video-library-grid .video-item-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;width:100%!important}
#appPanel .video-library-grid .video-item-actions button{flex:1 1 calc(50% - 6px)!important;min-width:0!important;min-height:34px!important;white-space:normal!important;font-size:11px!important;padding:8px 7px!important}
#appPanel .video-library-grid .video-item-actions input{width:58px!important;min-width:58px!important;flex:0 0 58px!important;padding:7px!important}
#appPanel .pagination-controls{display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;gap:8px!important;margin:18px 0 28px!important}
#appPanel .pagination-summary{color:var(--admin-muted)!important;font-size:12px!important;margin-right:8px!important}
#appPanel .pagination-controls button{min-width:38px!important;padding:8px 11px!important}
#appPanel .pagination-controls button.active-page{background:#b18a4c!important;color:#fff!important;border-color:#b18a4c!important}
#appPanel .project-library{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
#appPanel .project-item{background:#fffdf9!important;border:1px solid #e8e0d2!important;color:#29251f!important;min-width:0!important}
#appPanel .project-item strong{color:#29251f!important}
#appPanel .tag{background:#faf7f0!important;border-color:#e3d5bc!important;color:#6b5635!important}
#appPanel .result{background:#f8f5ee!important;border-color:#e8e0d2!important;color:#29251f!important}
#appPanel .result a{color:#8c6425!important}
#appPanel .error{color:#b42318!important}
@media(max-width:1100px){#appPanel .video-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){#appPanel .video-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#appPanel .project-library{grid-template-columns:1fr!important}}
@media(max-width:460px){#appPanel .video-library-grid{grid-template-columns:1fr!important}}

/* Light storefront dialogs and form controls; keep video preview canvases black for accurate video display */
.modal-backdrop{background:#e9e2d7dd!important;backdrop-filter:blur(8px)!important}
.editor-modal{background:#fffdf9!important;border:1px solid #e8e0d2!important;color:#29251f!important;box-shadow:0 30px 100px #493a201c!important}
.modal-header{border-color:#e8e0d2!important}
.modal-header h2,.editor-modal h2,.editor-modal h3{color:#29251f!important}
.editor-modal .field-label{color:#5f574b!important}
.editor-modal input,.editor-modal select,.editor-modal textarea{background:#fff!important;color:#29251f!important;border:1px solid #dcd3c4!important}
.editor-modal .layer-card,.editor-modal .qr-panel,.editor-modal .payment-details{background:#faf7f0!important;border-color:#e8e0d2!important;color:#29251f!important}
.editor-modal .muted,.editor-modal .preview-disclaimer,.editor-modal .delivery-links p{color:#777166!important}
.editor-modal .icon-button{background:#f7f2e8!important;color:#5c4728!important;border-color:#e3d5bc!important}
.editor-modal .payment-code-row code{background:#f4eee3!important;color:#77551f!important;border-color:#e3d5bc!important}
.editor-modal .payment-pending{background:#f7eedb!important;color:#78571f!important}
.editor-modal .delivery-button.secondary{border-color:#e3d5bc!important;color:#5c4728!important}
@media(min-width:761px){body:has(#appPanel) .upload-panel{position:static!important}}


/* RESTORE PATCH: unified light storefront + admin palette, without touching payment markup */
:root{--ink:#29251f;--muted:#82796c;--bg:#f7f4ee;--panel:#fffdf9;--panel2:#f6f0e5;--line:#e7dccb;--gold:#b18a4c;--gold2:#d7b777;--red:#b84c45;--admin-line:#e7dccb}
body{background:#f7f4ee!important;color:#29251f!important}
.topbar{background:rgba(255,253,249,.96)!important;border-bottom:1px solid #e7dccb!important}
.panel,.login-panel,.project-panel,.upload-panel,.editor-panel{background:#fffdf9!important;border-color:#e7dccb!important;color:#29251f!important;box-shadow:0 12px 35px rgba(77,56,28,.06)!important}
input,select,textarea{background:#fff!important;color:#29251f!important;border-color:#dfd0ba!important}
input::placeholder,textarea::placeholder{color:#a59a8a!important}
.secondary,.text-button{background:#f7f1e7!important;color:#604a2b!important;border:1px solid #e5d2b2!important}
.primary{background:#b18a4c!important;color:#fff!important}.primary:hover{background:#9e773d!important}
.dropzone{background:#fbf7f0!important;border-color:#dfc9a8!important;color:#29251f!important}
.video-library,.project-library{color:#29251f!important}
.video-admin-thumb{width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:8px;background:#f1e9dc;border:1px solid #e6d8c4;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#9b7b47;flex-shrink:0}
.video-admin-thumb video{width:100%;height:100%;object-fit:cover;display:block;background:#f1e9dc}
.video-admin-thumb span{font-size:25px}.video-admin-thumb small{font-size:10px;color:#897b66;text-align:center;padding:0 5px}
#appPanel .video-library-grid .video-item{display:grid!important;grid-template-columns:1fr!important;align-content:start!important;background:#fffdf9!important;color:#29251f!important}
#appPanel .video-library-grid .video-admin-info{width:100%;min-width:0}
#appPanel .video-library-grid .video-item-actions{width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important}
#appPanel .video-library-grid .video-item-actions input{width:100%!important;min-width:0!important;grid-column:1/-1}
#appPanel .video-library-grid .video-item-actions button{min-width:0!important;white-space:normal!important;font-size:11px!important}
.library-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.library-tools select{max-width:180px;padding:9px 10px;font-size:12px}
/* Customer storefront cards, dialogs and payment surfaces stay readable and light */
.customer-topbar{background:rgba(255,253,249,.96)!important;border-color:#e7dccb!important;color:#29251f!important}
.customer-hero,.catalog-section,.how-section,.customer-footer{color:#29251f!important}
.template-card,.editor-modal,.ppt-purchase-dialog,.checkout-area,.checkout-grid,.qr-panel,.payment-details{background:#fffdf9!important;color:#29251f!important;border-color:#e7dccb!important}
.template-card{border:1px solid #e7dccb!important;box-shadow:0 8px 24px rgba(77,56,28,.05)!important}
.template-card p,.muted,.customer-lead,.how-grid p{color:#82796c!important}
.template-cover{background-color:#f1e9dc!important}
.modal-backdrop{background:rgba(53,43,30,.46)!important}
.layer-card,.checkout-area,.payment-code-row,.qr-placeholder{background:#fbf7f0!important;border-color:#e7dccb!important;color:#29251f!important}
.payment-pending{color:#8b6a2e!important}.payment-paid{color:#28784e!important}
.price-old{color:#9b9286!important;text-decoration:line-through;margin-right:6px}.price-current{color:#a47731!important;font-weight:800}
@media(max-width:760px){#appPanel .video-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:460px){#appPanel .video-library-grid{grid-template-columns:1fr!important}}
/* Studio Video: hien thi video slide trang chu dung mau goc, khong lam mo/toi */
.home-slide video {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}
.home-slide::after,
.home-slide:after {
  content: none !important;
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}
/* Khong ap dung lop loc len slide */
.home-slide {
  filter: none !important;
  isolation: isolate;
}
/* Giu chu tren video doc duoc ma khong phu lop toi len video */
.home-slide > strong,
.home-slide > small {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
/* Catalog trang chu: anh JPG tinh hien truoc, video chi hien khi hover */
.template-cover {
  overflow: hidden;
}
.template-cover .template-poster {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity .15s ease;
}
.template-cover .template-hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.template-cover:has(.template-hover-video) .template-poster {
  opacity: 0;
}
/* Smooth home hero slideshow: cross-fade instead of clearing/rebuilding the stage. */
.home-slide.home-slide-smooth{isolation:isolate;overflow:hidden;position:relative;background:#08090d}
.home-slide-smooth .home-slide-media{position:absolute;inset:0;overflow:hidden;border-radius:inherit}
.home-slide-smooth .home-slide-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.025);transition:opacity 1.15s ease-in-out,transform 7s ease-out;will-change:opacity,transform;z-index:0}
.home-slide-smooth .home-slide-video.is-entering{opacity:0}
.home-slide-smooth .home-slide-video.is-active{opacity:1;transform:scale(1);z-index:1}
.home-slide-smooth .home-slide-video.is-leaving{opacity:0;transform:scale(1);z-index:0}
.home-slide-smooth .home-slide-copy{position:absolute;z-index:3;left:clamp(16px,4%,32px);right:clamp(16px,4%,32px);bottom:clamp(16px,5%,34px);display:flex;flex-direction:column;gap:8px;opacity:0;transform:translateY(8px);transition:opacity .55s ease,transform .55s ease;pointer-events:none;text-align:left}
.home-slide-smooth .home-slide-copy.is-visible{opacity:1;transform:translateY(0)}
.home-slide-smooth .home-slide-copy strong{font-size:clamp(18px,2.3vw,28px);line-height:1.2;color:#fff;text-shadow:0 2px 14px #000a}
.home-slide-smooth .home-slide-copy small{font-size:clamp(10px,1vw,13px);line-height:1.45;color:#fff;text-shadow:0 1px 10px #000b}
.home-slide-smooth:after{content:none!important}
@media(prefers-reduced-motion:reduce){.home-slide-smooth .home-slide-video,.home-slide-smooth .home-slide-copy{transition:none!important;transform:none!important}}
/* Smooth video slideshow: opacity crossfade only. No zoom transform that can look jittery. */
.home-slide.home-slide-smooth {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  background: #08090d;
}
.home-slide-smooth .home-slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #08090d;
}
.home-slide-smooth .home-slide-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: none !important;
  transition: opacity 1.3s ease-in-out;
  backface-visibility: hidden;
  z-index: 0;
}
.home-slide-smooth .home-slide-video.is-preparing { opacity: 0; }
.home-slide-smooth .home-slide-video.is-active { opacity: 1; z-index: 2; }
.home-slide-smooth .home-slide-video.is-leaving { opacity: 0; z-index: 1; }
.home-slide-smooth .home-slide-copy {
  position: absolute;
  z-index: 3;
  left: clamp(16px, 4%, 32px);
  right: clamp(16px, 4%, 32px);
  bottom: clamp(16px, 5%, 34px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
  text-align: left;
}
.home-slide-smooth .home-slide-copy.is-visible { opacity: 1; transform: translateY(0); }
.home-slide-smooth .home-slide-copy strong {
  font-size: clamp(18px, 2.3vw, 28px);
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 14px #000a;
}
.home-slide-smooth .home-slide-copy small {
  font-size: clamp(10px, 1vw, 13px);
  line-height: 1.45;
  color: #fff;
  text-shadow: 0 1px 10px #000b;
}
.home-slide-smooth:after { content: none !important; }
@media (prefers-reduced-motion: reduce) {
  .home-slide-smooth .home-slide-video,
  .home-slide-smooth .home-slide-copy { transition: none !important; transform: none !important; }
}


/* SEO service content: readable, responsive, and useful to visitors */
.seo-services{padding:56px 0 64px;border-top:1px solid #e9e3d8;color:#29251f}.seo-services h2{font-size:clamp(26px,3vw,38px);line-height:1.25;letter-spacing:-.8px;max-width:900px;margin:8px 0 16px}.seo-intro{max-width:950px;color:#716b61;font-size:14px;line-height:1.85}.seo-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:28px 0}.seo-service-grid article{background:#fff;border:1px solid #e9e4db;border-radius:12px;padding:20px}.seo-service-grid h3{font-size:16px;margin:0 0 8px;color:#3b3327}.seo-service-grid p{font-size:13px;line-height:1.8;color:#777268;margin:0}.seo-process-heading{font-size:19px;margin:30px 0 8px}.seo-tags{font-size:13px;color:#9b712e;word-spacing:5px;margin:20px 0}.seo-contact{display:inline-flex;text-decoration:none;margin-top:4px;padding:12px 18px;border-radius:8px}@media(max-width:600px){.seo-services{padding:38px 0}.seo-service-grid{grid-template-columns:1fr}.seo-service-grid article{padding:16px}.seo-services h2{font-size:26px}.seo-intro{font-size:13px}}


/* ==========================================================
   HERO REFRESH — cleaner typography, Vietnamese-safe font,
   refined video frame and responsive layout
   ========================================================== */
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/fonts/BeVietnamPro-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
body.customer-body {
  font-family: "Be Vietnam Pro", Arial, Helvetica, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.customer-hero {
  min-height: 0 !important;
  margin: 24px 0 8px !important;
  padding: clamp(34px, 4.2vw, 62px) clamp(24px, 4.2vw, 64px) !important;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr) !important;
  gap: clamp(28px, 4vw, 62px) !important;
  border: 1px solid #eee4d3 !important;
  border-radius: 22px !important;
  background:
    radial-gradient(ellipse at 88% 45%, rgba(198, 162, 96, .12), transparent 38%),
    linear-gradient(115deg, #fffefa 0%, #fbf7ef 100%) !important;
  box-shadow: 0 18px 50px rgba(67, 48, 17, .055) !important;
  overflow: hidden;
}
.customer-hero .hero-copy { min-width: 0; max-width: 660px; position: relative; z-index: 2; }
.customer-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #9b712e !important;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.6;
}
.customer-hero h1 {
  max-width: 720px;
  margin: 0 0 20px !important;
  color: #292820 !important;
  font-family: "Be Vietnam Pro", Arial, Helvetica, sans-serif !important;
  font-size: clamp(38px, 4.25vw, 62px) !important;
  font-weight: 700 !important;
  letter-spacing: -.052em !important;
  line-height: 1.08 !important;
  overflow-wrap: normal;
  word-break: normal;
}
.customer-hero h1 em {
  display: block;
  margin-top: 9px;
  color: #a77932 !important;
  font-family: "Be Vietnam Pro", Arial, Helvetica, sans-serif !important;
  font-size: .66em !important;
  font-style: normal !important;
  font-weight: 500 !important;
  letter-spacing: -.035em !important;
  line-height: 1.25 !important;
}
.customer-hero .customer-lead {
  max-width: 540px;
  margin: 0;
  color: #706b61 !important;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 14px !important;
  line-height: 1.85 !important;
}
.customer-hero .hero-actions { gap: 12px; margin-top: 24px; }
.customer-hero .hero-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 !important;
  padding: 13px 18px !important;
  border-radius: 8px !important;
  background: #a97c37 !important;
  color: #fff !important;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 7px 18px rgba(169, 124, 55, .17);
}
.customer-hero .hero-cta:hover { background: #8f672c !important; transform: translateY(-1px); }
.customer-hero .hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #e3d7c2 !important;
  border-radius: 8px;
  color: #5d5140 !important;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.customer-hero .hero-secondary:hover { background: #f5eddf; }
.customer-hero .trust-row {
  display: flex;
  gap: 18px;
  margin-top: 23px !important;
  color: #7d7669 !important;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 10px !important;
  line-height: 1.6;
}
.customer-hero .trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.customer-hero .trust-row b { color: #a77932; font-weight: 700; }
.customer-hero .hero-art {
  min-width: 0;
  min-height: 0 !important;
  padding: 0 0 22px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.customer-hero .hero-art-glow {
  width: 75%;
  height: 68%;
  background: rgba(186, 145, 73, .18) !important;
  filter: blur(62px) !important;
}
.customer-hero .hero-screen {
  width: 100% !important;
  max-width: 620px;
  aspect-ratio: 16 / 9 !important;
  border: 5px solid #fff !important;
  border-radius: 13px !important;
  background: #08090d !important;
  box-shadow: 0 24px 60px rgba(37, 29, 17, .18) !important;
  gap: 12px !important;
}
.customer-hero .hero-screen:before { display: none !important; }
.customer-hero .hero-screen video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.customer-hero .hero-screen:after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.05) 42%, rgba(0,0,0,.52));
  pointer-events: none;
}
.customer-hero .hero-screen .stars,
.customer-hero .hero-screen small,
.customer-hero .hero-screen strong,
.customer-hero .hero-screen .screen-tag {
  position: relative;
  z-index: 1;
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.customer-hero .hero-screen .stars { font-size: 16px; letter-spacing: 7px; }
.customer-hero .hero-screen small {
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
}
.customer-hero .hero-screen strong {
  font-family: "Be Vietnam Pro", Arial, sans-serif !important;
  font-size: clamp(23px, 2.6vw, 38px) !important;
  font-weight: 600 !important;
  letter-spacing: -.035em;
}
.customer-hero .hero-screen .screen-tag {
  position: absolute !important;
  right: 13px;
  bottom: 12px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px;
  background: rgba(0,0,0,.28);
  font-size: 8px !important;
  letter-spacing: .12em !important;
}
.customer-hero .hero-caption {
  position: absolute;
  left: 3%;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: #373229;
}
.customer-hero .hero-caption-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a97c37;
  box-shadow: 0 0 0 4px rgba(169,124,55,.12);
}
.customer-hero .hero-caption b,
.customer-hero .hero-caption small { display: block; }
.customer-hero .hero-caption b { font-size: 11px; font-weight: 700; }
.customer-hero .hero-caption small { margin-top: 3px; color: #82796b; font-size: 9px; }
@media (max-width: 900px) {
  .customer-hero { grid-template-columns: minmax(0,1fr) !important; gap: 28px !important; padding: 34px 28px !important; }
  .customer-hero .hero-copy { max-width: 760px; }
  .customer-hero .hero-art { width: 100%; max-width: 760px; margin: 0 auto; }
  .customer-hero .hero-screen { max-width: none; }
  .customer-hero h1 { font-size: clamp(38px, 7vw, 56px) !important; }
}
@media (max-width: 600px) {
  .customer-hero { margin-top: 14px !important; padding: 26px 20px 28px !important; gap: 23px !important; border-radius: 15px !important; }
  .customer-hero .eyebrow { margin-bottom: 13px; font-size: 9px; letter-spacing: .12em; }
  .customer-hero h1 { font-size: clamp(34px, 9vw, 43px) !important; letter-spacing: -.045em !important; line-height: 1.1 !important; }
  .customer-hero h1 em { font-size: .72em !important; margin-top: 7px; }
  .customer-hero .customer-lead { font-size: 13px !important; line-height: 1.75 !important; }
  .customer-hero .hero-actions { align-items: stretch; flex-direction: column; gap: 10px; margin-top: 20px; }
  .customer-hero .hero-cta, .customer-hero .hero-secondary { width: 100%; justify-content: center; }
  .customer-hero .trust-row { gap: 8px 14px; margin-top: 17px !important; font-size: 9px !important; }
  .customer-hero .hero-art { padding-bottom: 20px; }
  .customer-hero .hero-screen { border-width: 4px !important; border-radius: 10px !important; }
  .customer-hero .hero-screen .stars { font-size: 12px; letter-spacing: 4px; }
  .customer-hero .hero-screen small { font-size: 7px; }
  .customer-hero .hero-screen strong { font-size: clamp(19px, 6vw, 28px) !important; }
  .customer-hero .hero-screen .screen-tag { right: 8px; bottom: 7px; font-size: 6px !important; }
  .customer-hero .hero-caption { left: 2%; bottom: 0; }
  .customer-hero .hero-caption b { font-size: 10px; }
  .customer-hero .hero-caption small { font-size: 8px; }
}


/* Background Tet secure purchase dialog */
#digitalPurchaseModal[hidden]{display:none!important}


/* FIX: hide Background Tet title/description fields despite .field-label display rules */
#videoTitleField[hidden], #videoDescriptionField[hidden] { display: none !important; }


/* Background Tet purchase modal: large video preview */
.digital-purchase-preview-wrap{margin:0 0 22px;padding:16px;background:#0b0e16;border:1px solid #ffffff1c;border-radius:12px}
.digital-purchase-preview-wrap[hidden]{display:none!important}
.digital-purchase-preview-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.digital-purchase-preview-heading .eyebrow{margin:0;color:#d8bd83;font-size:10px;letter-spacing:.16em}
.digital-purchase-preview-note{font-size:11px;color:#a5a9b6}
.digital-purchase-preview{display:block;width:100%;max-height:min(62vh,680px);aspect-ratio:16/9;object-fit:contain;background:#03050a;border-radius:9px}
.digital-purchase-preview-message{margin:10px 0 0;font-size:12px}
.ppt-purchase-dialog{width:min(1080px,calc(100vw - 28px))}
@media(max-width:700px){.digital-purchase-preview-wrap{padding:10px}.digital-purchase-preview{max-height:42vh}.digital-purchase-preview-heading{align-items:flex-start;flex-direction:column}}


/* FIX 2026-10-26: stop catalog videos flashing/autoplaying on homepage */
#catalogGrid .template-cover .template-hover-video {
  opacity: 0 !important;
  visibility: hidden;
  transition: opacity .18s ease;
  pointer-events: auto;
}
#catalogGrid .template-cover:hover .template-hover-video,
#catalogGrid .template-cover .template-hover-video:focus-visible {
  opacity: 1 !important;
  visibility: visible;
}
@media (hover: none) {
  #catalogGrid .template-cover .template-hover-video { opacity: 0 !important; visibility: visible; }
}

/* Background Tet checkout preview: about half the dialog width, centered */
#digitalPurchaseModal .digital-purchase-preview-wrap .digital-purchase-preview {
  display: block !important;
  width: 50% !important;
  max-width: 500px !important;
  max-height: 34vh !important;
  margin: 0 auto !important;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
#digitalPurchaseModal .digital-purchase-preview-wrap { padding: 12px !important; }
@media (max-width: 700px) {
  #digitalPurchaseModal .digital-purchase-preview-wrap .digital-purchase-preview {
    width: 85% !important;
    max-height: 26vh !important;
  }
}

/* Catalog cards: static thumbnail/placeholder by default, video appears only while hovering/tapping. */
#catalogGrid .template-cover { position: relative; overflow: hidden; cursor: pointer; }
#catalogGrid .template-cover .template-poster {
  position:absolute; inset:0; z-index:1; display:flex; align-items:center; justify-content:center;
  width:100%; height:100%; opacity:1; visibility:visible; transition:opacity .18s ease;
  background:linear-gradient(135deg,#101827,#253a52 58%,#8c7148);
}
#catalogGrid .template-cover .template-poster img { display:block; width:100%; height:100%; object-fit:cover; }
#catalogGrid .template-cover .template-poster-placeholder { flex-direction:column; gap:9px; color:#fff; text-shadow:0 2px 8px #0008; }
#catalogGrid .template-cover .template-poster-play { display:grid; place-items:center; width:48px; height:48px; border:1px solid #ffffffa8; border-radius:50%; background:#0005; font-size:17px; padding-left:3px; }
#catalogGrid .template-cover .template-poster-placeholder small { font-size:11px; letter-spacing:.04em; }
#catalogGrid .template-cover .template-hover-video {
  position:absolute; inset:0; z-index:2; width:100%; height:100%; object-fit:cover;
  opacity:0; visibility:hidden; pointer-events:none; transition:opacity .18s ease; background:transparent;
}
#catalogGrid .template-cover.is-preview-playing .template-hover-video { opacity:1; visibility:visible; }
#catalogGrid .template-cover.is-preview-playing .template-poster { opacity:0; }
@media (hover:none) {
  #catalogGrid .template-cover .template-poster { opacity:1; }
  #catalogGrid .template-cover .template-hover-video { opacity:0; visibility:hidden; }
  #catalogGrid .template-cover.is-preview-playing .template-hover-video { opacity:1; visibility:visible; }
}


/* CATALOG THUMBNAILS FIX 2026-10-26e: every card has a static poster; video only overlays while actively previewing. */
#catalogGrid .template-cover { position: relative; overflow: hidden; }
#catalogGrid .template-cover .template-poster { opacity: 1 !important; visibility: visible !important; z-index: 2 !important; pointer-events: none; }
#catalogGrid .template-cover .template-poster img { width:100%; height:100%; object-fit:cover; display:block; }
#catalogGrid .template-cover .template-hover-video { opacity:0 !important; visibility:hidden !important; z-index:3 !important; pointer-events:none; }
#catalogGrid .template-cover.is-preview-playing .template-hover-video { opacity:1 !important; visibility:visible !important; }
#catalogGrid .template-cover.is-preview-playing .template-poster { opacity:0 !important; visibility:hidden !important; }


/* FIX 2026-10-26: category and search results must remain a responsive product grid. */
#catalogGrid > .catalog-results-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}
@media (max-width: 900px) {
  #catalogGrid > .catalog-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 600px) {
  #catalogGrid > .catalog-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}


/* HOME CATEGORY STRIP 2026-10-26: compact, single-row category navigation */
.home-category-strip{margin:8px 0 24px;padding:12px 0 0;}
.home-category-strip-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0 2px;}
.home-category-strip-heading .eyebrow{margin:0;color:#8c6a35;font-size:10px;font-weight:800;letter-spacing:.16em;}
.home-category-hint{color:#858078;font-size:12px;}
.home-category-links{display:flex;align-items:stretch;gap:12px;width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:2px 2px 10px;}
.home-category-card{appearance:none;display:flex;align-items:center;gap:12px;flex:1 0 190px;min-width:0;max-width:280px;min-height:76px;padding:12px 14px;border:1px solid #eee9e1;border-radius:16px;background:linear-gradient(135deg,#fff 0%,#fffdf9 100%);box-shadow:0 5px 18px #2b21100d;color:#302d27;text-align:left;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;}
.home-category-card:hover,.home-category-card:focus-visible{transform:translateY(-2px);border-color:#d7bd8c;box-shadow:0 8px 22px #2b211014;outline:none;}
.home-category-card.is-active{border-color:#b88b48;box-shadow:0 0 0 2px #b88b481a,0 5px 18px #2b21100d;}
.home-category-thumb{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;overflow:hidden;border-radius:11px;background:#f5f0e7;color:#8b672e;font-size:23px;}
.home-category-thumb img{display:block;width:100%;height:100%;object-fit:cover;}
.home-category-thumb.has-icon{background:linear-gradient(135deg,#f9f4e9,#efe4d0);}
.home-category-copy{display:flex;flex-direction:column;gap:4px;min-width:0;}
.home-category-copy strong{font-size:13px;font-weight:750;line-height:1.3;overflow-wrap:anywhere;}
.home-category-copy small{font-size:11px;color:#8a8479;}
.home-category-loading{padding:18px;color:#8a8479;font-size:12px;}
@media(max-width:700px){.home-category-strip{margin:2px 0 18px;padding:8px 0 0;}.home-category-strip-heading{margin-bottom:9px;}.home-category-hint{font-size:11px;}.home-category-links{gap:9px;margin-right:-16px;padding-right:16px;}.home-category-card{flex:0 0 208px;max-width:208px;min-height:68px;padding:10px 12px;border-radius:13px;gap:10px;}.home-category-thumb{flex-basis:38px;width:38px;height:38px;border-radius:9px;}.home-category-copy strong{font-size:12px;}}


/* Four fixed homepage category shortcuts: PowerPoint, wedding, Tet, events. */
.home-category-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;overflow-x:auto;}
.home-category-card{width:100%;max-width:none;min-width:0;flex:none;}
@media(max-width:760px){.home-category-links{display:flex;overflow-x:auto;scroll-snap-type:x proximity;} .home-category-card{flex:0 0 208px;scroll-snap-align:start;}}

/* HOTFIX 2026-10-27: restore the compact homepage quick-category layout even if older generic image/grid rules exist. */
.home-category-strip {
  display: block !important;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 20px 0 28px !important;
  padding: 0 !important;
  clear: both;
}
.home-category-strip-heading {
  display: flex !important;
  flex-flow: row wrap;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100%;
  margin: 0 0 12px !important;
  padding: 0 !important;
}
.home-category-strip-heading .eyebrow {
  display: inline-block !important;
  margin: 0 !important;
  line-height: 1.5;
}
.home-category-hint {
  display: inline-block !important;
  margin: 0 !important;
  line-height: 1.5;
}
#homeCategoryLinks.home-category-links {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 0 4px !important;
  box-sizing: border-box;
}
#homeCategoryLinks .home-category-card {
  appearance: none;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 76px !important;
  height: auto !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
  overflow: hidden;
  border: 1px solid #eee5d7;
  border-radius: 14px;
  background: #fffdfa;
  color: #302d27;
  text-align: left;
  box-shadow: 0 5px 18px rgba(43,33,16,.06);
}
#homeCategoryLinks .home-category-thumb {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 10px;
  background: #f5f0e7;
  font-size: 22px;
  box-sizing: border-box !important;
}
#homeCategoryLinks .home-category-thumb img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
}
#homeCategoryLinks .home-category-copy {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
  overflow: hidden;
}
#homeCategoryLinks .home-category-copy strong {
  display: block !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: #302d27 !important;
  overflow-wrap: anywhere;
}
#homeCategoryLinks .home-category-copy small {
  display: block !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  color: #898174 !important;
}
@media (max-width: 900px) {
  #homeCategoryLinks.home-category-links { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
  /* Mobile: show all four category cards as a compact 2x2 grid (two rows). */
  #homeCategoryLinks.home-category-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 10px !important;
    overflow: visible !important;
    overscroll-behavior-x: auto;
    padding: 0 0 4px !important;
  }
  #homeCategoryLinks .home-category-card {
    flex: initial !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 66px !important;
    padding: 9px 10px !important;
    gap: 9px !important;
  }
  #homeCategoryLinks .home-category-thumb {
    flex-basis: 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }
  #homeCategoryLinks .home-category-copy strong { font-size: 12px !important; }
  #homeCategoryLinks .home-category-copy small { font-size: 10px !important; }
  .home-category-strip { margin: 16px 0 22px !important; }
}

/* Dedicated category landing pages */
.category-landing{padding:30px 0 12px;border-bottom:1px solid #ffffff12;margin-bottom:8px}
.category-landing[hidden],[hidden]{display:none!important}
.category-back-link{display:inline-block;color:#d8bd83;text-decoration:none;font-size:13px;margin-bottom:22px}
.category-back-link:hover{color:#f2dfb0}
.category-landing h1{font-size:clamp(30px,4vw,48px);letter-spacing:-1.4px;margin:8px 0 12px}
.category-landing-description{max-width:820px;color:#a9adba;line-height:1.8;margin:0 0 22px}
.category-page-mode .customer-shell{padding-top:12px}
.category-page-mode .catalog-section{border-top:0;padding-top:20px}
.category-page-mode .customer-section-heading{align-items:center;flex-wrap:wrap}
.category-page-mode .customer-section-heading h2{margin-top:4px}
.category-page-mode .customer-topbar nav a[href="#mau-video"],.category-page-mode .customer-topbar nav a[href="#danh-muc"]{display:none}
@media(max-width:650px){.category-landing{padding-top:22px}.category-landing h1{font-size:30px}.category-landing-description{font-size:14px}.category-page-mode .catalog-tools{width:100%;display:grid;grid-template-columns:1fr}.category-page-mode .catalog-tools input,.category-page-mode .catalog-tools select{width:100%}}

/* Wedding editor controls: scoped to Tiệc cưới only */
.wedding-editor{border:1px solid #d8bd8340;background:#111724;border-radius:12px;padding:16px;margin:14px 0;display:grid;gap:12px}.wedding-editor[hidden]{display:none}.wedding-editor h3{font-size:14px;margin:8px 0 0;color:#e6d2a3}.wedding-editor .muted{line-height:1.6}.wedding-editor input[type=range]{padding:0;width:100%;accent-color:#d8bd82}.wedding-editor audio{width:100%;margin-top:8px}.wedding-preview-logo{position:absolute;z-index:3;top:7%;left:50%;transform:translateX(-50%);width:12%;height:auto;max-height:18%;object-fit:contain}

/* Wedding symbol picker, scoped only to the wedding editor */
.wedding-symbol-panel{border:1px solid #514044;border-radius:14px;padding:14px;background:rgba(20,16,19,.45);display:grid;gap:10px}.wedding-symbol-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.wedding-symbol-heading h3{flex:1;margin:0!important}.wedding-symbol-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.wedding-symbol-option{min-width:0;min-height:78px;border:1px solid #46393c;border-radius:12px;background:#2b2326;color:#d7cbd0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px 3px;cursor:pointer;font:inherit}.wedding-symbol-option>span{font-family:"DejaVu Sans",serif;font-size:27px;line-height:1.2;color:var(--accent,#d9c3c7);filter:drop-shadow(0 0 3px #c5a4bd88);font-weight:400;letter-spacing:-1px;text-shadow:0 0 1px currentColor}.wedding-symbol-option small{font-size:11px;line-height:1.25;text-align:center}.wedding-symbol-option.active{border-color:#d2a6a4;box-shadow:inset 0 0 0 1px #d2a6a455;background:#392b30}.wedding-symbol-upload{position:relative}.wedding-symbol-upload input{display:none}@media(max-width:420px){.wedding-symbol-grid{gap:6px}.wedding-symbol-option{min-height:70px}}

/* Wedding editor controls: retain the site's warm charcoal / champagne palette */
.wedding-editor{border-color:rgba(211,174,112,.32);background:linear-gradient(145deg,rgba(54,39,39,.96),rgba(35,29,30,.98));color:#f7eee8}.wedding-editor h3{color:#d9b879}.wedding-editor .field-label{color:#f1e4dc}.wedding-editor input:not([type=range]),.wedding-editor select{background:#302729;color:#fff1e6;border-color:#655052}.wedding-editor input[type=color]{min-height:40px;padding:4px;background:#302729;border:1px solid #655052;border-radius:8px}.wedding-coord-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wedding-coord-grid input{width:100%;min-width:0}.wedding-editor select:focus,.wedding-editor input:focus{border-color:#d5ad69;outline-color:#d5ad69}@media(min-width:680px){.wedding-coord-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Wedding icons are monochrome glyphs so the chosen color stays consistent in preview and export. */
.wedding-symbol-option>span{font-variant-emoji:text; font-variation-settings:normal;}

/* Wedding date-style and name-layout controls */
.wedding-feature-panel{border:1px solid #514044;border-radius:14px;padding:14px;background:rgba(20,16,19,.32);display:grid;gap:10px}.wedding-feature-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#f4e9e2}.wedding-segmented{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;border-radius:12px;background:#241e21;border:1px solid #382d31}.wedding-segmented button{min-height:38px;border:0;border-radius:8px;background:transparent;color:#b7aab0;font:inherit;cursor:pointer}.wedding-segmented button.active{background:#a79da1;color:#241c20;box-shadow:0 1px 4px #0004}.wedding-date-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.wedding-date-option{min-width:0;min-height:100px;padding:8px 5px;border:1px solid #46393c;border-radius:12px;background:#2b2326;color:#d7cbd0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:7px;cursor:pointer;font:inherit}.wedding-date-option.active{border-color:#d2a6a4;box-shadow:inset 0 0 0 1px #d2a6a455;background:#392b30}.wedding-date-option small{font-size:11px;line-height:1.25;text-align:center;color:#d2c4c8}.date-sample{width:100%;min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-family:Georgia,serif;font-size:9px;line-height:1.25;color:#c9b9bd}.date-sample b{font-size:22px;line-height:1.05}.date-sample.compact{font-size:10px;font-weight:700;letter-spacing:.3px}.date-sample.calendar{border:1px solid #81777a;padding:4px}.date-sample.calendar b{font-size:19px}.date-sample.words{font-style:italic;font-size:11px}.date-sample.stacked b{font-size:22px}.overlay-text{white-space:pre-line}
@media(max-width:420px){.wedding-date-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wedding-date-option{min-height:92px}}

/* Wedding editor refinements */
.wedding-spacing-details{margin:12px 0;padding:12px 14px;border:1px solid var(--border-color,#343039);border-radius:12px;background:rgba(255,255,255,.025)}
.wedding-spacing-details summary{cursor:pointer;list-style:none;font-weight:650;display:flex;align-items:center;gap:6px}
.wedding-spacing-details summary::-webkit-details-marker{display:none}
.wedding-spacing-details summary::before{content:'▸';display:inline-block;transition:transform .15s ease}
.wedding-spacing-details[open] summary::before{transform:rotate(90deg)}
.wedding-spacing-details .field-label{margin-top:14px}
.wedding-toggle-row{display:flex;align-items:center;gap:10px;margin:12px 0;font-weight:600}
.wedding-toggle-row input{width:18px;height:18px;accent-color:#a99aa3}
#weddingMonogramFields[hidden]{display:none!important}

/* Wedding editor refinement: match the site's warm ivory and champagne palette. */
.wedding-editor{background:linear-gradient(145deg,#fffdf9 0%,#f7f2e9 100%);border-color:#e7dccb;color:#29251f;box-shadow:0 8px 28px #5b462010}
.wedding-editor h3{color:#8f682b}
.wedding-editor .muted{color:#82796c}
.wedding-editor .field-label{color:#5f574c}
.wedding-editor input:not([type=range]),.wedding-editor select,.wedding-editor textarea{background:#fffdf9;color:#29251f;border-color:#ded2c0}
.wedding-editor input[type=color]{background:#fffdf9;border-color:#ded2c0}
.wedding-feature-panel{background:linear-gradient(135deg,#fffdf9,#f4eee3);border-color:#e5d8c5;color:#29251f}
.wedding-feature-heading,.wedding-details-summary{color:#514333}
.wedding-segmented{background:#eee6d9;border-color:#e0d2bd}
.wedding-segmented button{color:#766b5c}
.wedding-segmented button.active{background:#b18a4c;color:#fffdf9;box-shadow:0 1px 4px #72521b25}
.wedding-date-option{background:#fffdf9;border-color:#e2d6c5;color:#665847}
.wedding-date-option.active{background:#f4ead8;border-color:#b18a4c;box-shadow:inset 0 0 0 1px #b18a4c35}
.wedding-date-option small,.date-sample{color:#7b6b58}
.wedding-date-option .date-sample.calendar{border-color:#b8a78e}
.wedding-editor input[type=range]{accent-color:#b18a4c}
.wedding-details-summary{display:flex;justify-content:space-between;align-items:center;gap:8px;cursor:pointer;list-style:none;font-size:14px}
.wedding-details-summary::-webkit-details-marker{display:none}
.wedding-details-summary::before{content:'＋';color:#a87b35;font-weight:700}
.wedding-date-details[open]>.wedding-details-summary::before{content:'−'}
.wedding-date-details>.wedding-date-grid{margin-top:2px}

/* Wedding editor: consistent range controls and compact coordinate sliders */
.wedding-coord-grid .coord-range{display:flex;flex-direction:column;gap:7px;min-width:0}
.wedding-coord-grid .coord-range output,.wedding-editor output{font-variant-numeric:tabular-nums;color:#9b7844;font-weight:700}
.wedding-coord-grid input[type="range"],.wedding-editor input[type="range"]{width:100%;accent-color:#b58c4a;cursor:pointer}
#weddingDateFontWrap[hidden]{display:none!important}
.wedding-date-details{margin-top:14px}
.wedding-date-details[open]{gap:12px}


/* Wedding symbol picker: harmonize with the site's ivory/champagne form */
.wedding-symbol-grid .wedding-symbol-option {
  background: linear-gradient(145deg,#fffaf2,#f4eadb);
  border: 1px solid #e2d2bc;
  color: #6f5b4a;
  box-shadow: 0 1px 2px rgba(92,67,44,.06);
}
.wedding-symbol-grid .wedding-symbol-option > span {
  color: var(--wedding-symbol-color, #b08b58);
  filter: drop-shadow(0 1px 1px rgba(122,88,52,.12));
  text-shadow: none;
}
.wedding-symbol-grid .wedding-symbol-option small { color:#776656; }
.wedding-symbol-grid .wedding-symbol-option.active {
  background: #eee0c9;
  border-color: #b89154;
  box-shadow: inset 0 0 0 1px rgba(184,145,84,.3);
}
.wedding-symbol-grid .wedding-symbol-option:hover {
  border-color:#c3a16e;
  background:#f6ecdc;
}
.wedding-symbol-upload { color:#6f5b4a; }


/* Wedding editor layout refinement: compact name-layout selector */
.wedding-name-layout-panel{padding:10px 12px;gap:7px;margin:10px 0 12px}
.wedding-name-layout-panel .wedding-feature-heading{font-size:14px}
.wedding-name-layout-panel>p{margin:0;font-size:12px;line-height:1.35}
.wedding-name-layout-panel .wedding-segmented{padding:3px;gap:4px}
.wedding-name-layout-panel .wedding-segmented button{min-height:32px;padding:5px 8px;font-size:13px}
.wedding-date-details{margin-top:12px;margin-bottom:14px}
.wedding-date-details[open]{padding:12px}

/* Wedding layout position controls */
.wedding-position-panel{margin:14px 0;padding:14px;border:1px solid var(--line,#e4d7c4);border-radius:14px;background:rgba(255,250,241,.58)}
.wedding-position-panel h4{margin:0 0 12px;font-size:14px;color:var(--text,#3d3027)}
.wedding-position-panel .wedding-coord-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wedding-position-panel input[type=range]{width:100%;accent-color:#b58c4a}
@media(max-width:520px){.wedding-position-panel .wedding-coord-grid{grid-template-columns:1fr}}

/* Wedding editor: compact, collapsible controls consistent with the warm site palette */
.wedding-collapse,
.wedding-spacing-details,
.wedding-date-details {
  border: 1px solid rgba(150, 119, 75, .24);
  border-radius: 12px;
  background: #fffdf8;
  margin: 10px 0;
  padding: 0;
  overflow: hidden;
}
.wedding-collapse > summary,
.wedding-spacing-details > summary,
.wedding-date-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  color: #5d4932;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wedding-collapse > summary::-webkit-details-marker,
.wedding-spacing-details > summary::-webkit-details-marker,
.wedding-date-details > summary::-webkit-details-marker { display: none; }
.wedding-collapse > summary::after,
.wedding-spacing-details > summary::after,
.wedding-date-details > summary::after { content: '+'; color: #a27d45; font-size: 18px; line-height: 1; }
.wedding-collapse[open] > summary::after,
.wedding-spacing-details[open] > summary::after,
.wedding-date-details[open] > summary::after { content: '−'; }
.wedding-collapse-body,
.wedding-collapse > .wedding-position-inner,
.wedding-spacing-details > :not(summary),
.wedding-date-details > :not(summary),
.wedding-symbol-panel > :not(summary) { padding-left: 12px; padding-right: 12px; }
.wedding-collapse-body { padding-top: 8px; padding-bottom: 12px; }
.wedding-position-panel > .wedding-position-inner { padding-top: 8px; padding-bottom: 12px; }
.wedding-symbol-panel > .wedding-symbol-grid { padding-bottom: 12px; }
.wedding-symbol-panel > p { padding-top: 4px; padding-bottom: 4px; }
.wedding-editor .wedding-toggle-row { margin-top: 8px; }

/* Preserve spaces typed in bride/groom names in the live preview. */
#weddingEditor ~ .customer-preview .overlay-text, .customer-preview .overlay-text { white-space: pre-wrap; }
.wedding-name-layout-panel .wedding-spacing-details { margin-top: 8px; }
.wedding-symbol-panel .wedding-symbol-size-details { margin-top: 10px; }


/* Direct product link: open the actual editor as a full-page workspace. */
body.direct-product-mode{overflow:hidden;background:#f7f4ee!important}
body.direct-product-mode .modal-backdrop{position:fixed;inset:0;padding:0!important;align-items:stretch;justify-content:stretch;overflow:auto;background:#f7f4ee!important;backdrop-filter:none!important}
body.direct-product-mode .editor-modal{width:100%!important;max-width:none!important;min-height:100vh;border:0!important;border-radius:0!important;padding:clamp(14px,2vw,28px)!important;box-shadow:none!important}
body.direct-product-mode .modal-header{position:sticky;top:0;z-index:10;background:#fffdf9;padding-top:8px}
body.direct-product-mode .customer-editor-grid{grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:clamp(16px,2vw,30px);align-items:start}
body.direct-product-mode .customer-preview-wrap{top:82px}
body.direct-product-mode .customer-preview{width:100%;}
body.direct-product-mode #editorModal[hidden]{display:none!important}
@media(max-width:850px){body.direct-product-mode .customer-editor-grid{grid-template-columns:1fr}body.direct-product-mode .customer-preview-wrap{position:relative;top:auto}body.direct-product-mode .editor-modal{padding:12px!important}body.direct-product-mode .modal-header{position:relative}}

/* Cleaner wedding editor: grouped controls with compact, readable summaries */
.wedding-control-group{border:1px solid rgba(205,177,132,.42);border-radius:13px;background:rgba(255,255,255,.035);overflow:hidden;margin:12px 0}
.wedding-control-group>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:13px 14px;font-weight:650;color:inherit}
.wedding-control-group>summary::-webkit-details-marker{display:none}
.wedding-control-group>summary::after{content:'＋';font-size:17px;opacity:.8;flex:none}
.wedding-control-group[open]>summary::after{content:'−'}
.wedding-control-body{display:grid;gap:12px;padding:0 14px 14px}
.wedding-control-body .editor-grid{margin:0}
.wedding-date-details .editor-grid{margin:10px 0}
.wedding-date-details .field-label select{width:100%}
.wedding-editor .muted{line-height:1.45}
.wedding-editor .field-label{min-width:0}
.wedding-editor input,.wedding-editor select{max-width:100%;box-sizing:border-box}
@media(max-width:560px){.wedding-control-group>summary{align-items:flex-start}.wedding-control-group>summary .muted{font-size:11px;text-align:right}.wedding-date-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wedding-control-body{padding-left:11px;padding-right:11px}}

/* Admin: editable site content */
.site-content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.site-content-grid textarea{width:100%;min-height:72px;background:#0d1016;border:1px solid #363b47;border-radius:9px;color:#f3f3f5;padding:12px 13px;font:inherit;line-height:1.5}.site-content-grid input{width:100%}@media(max-width:700px){.site-content-grid{grid-template-columns:1fr}}


/* Real upload progress for admin video uploads */
.upload-progress{display:grid;gap:8px;margin:8px 0 12px;padding:13px 14px;border:1px solid #5a513d;background:#12151b;border-radius:10px;}
.upload-progress[hidden]{display:none!important;}
.upload-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#e9e3d4;}
.upload-progress-heading strong{color:var(--gold2);font-variant-numeric:tabular-nums;font-size:14px;}
.upload-progress-track{height:9px;border-radius:999px;overflow:hidden;background:#2b303b;border:1px solid #393e49;}
.upload-progress-fill{height:100%;width:0%;border-radius:999px;background:linear-gradient(90deg,#b69a61,#f2dfb0);transition:width .12s linear;}
.upload-progress-details{font-size:11px;line-height:1.5;color:#9b9eaa;overflow-wrap:anywhere;}
.upload-progress.is-complete{border-color:#285b43;}
.upload-progress.is-complete .upload-progress-fill{background:linear-gradient(90deg,#25845b,#70d7a0);}
.upload-progress.is-complete .upload-progress-heading strong{color:#8be0b0;}
.upload-progress.is-error{border-color:#7d3737;}
.upload-progress.is-error .upload-progress-fill{background:#ff817e;}
.upload-progress.is-error .upload-progress-heading strong{color:#ff817e;}



/* Event category: preview video + contact design, preserving the existing charcoal/champagne tone */
.event-preview-backdrop{z-index:120;align-items:center;padding:clamp(12px,3vw,34px);background:#03050bd9;backdrop-filter:blur(8px)}
.event-preview-dialog{width:min(1000px,100%);max-height:94vh;overflow:auto;background:linear-gradient(145deg,#191c23,#10141f);border:1px solid #d8bd8245;border-radius:16px;padding:clamp(14px,2.2vw,26px);box-shadow:0 30px 100px #000b}
.event-preview-header{gap:16px;align-items:flex-start}
.event-preview-header h2{font-size:clamp(20px,3vw,30px);line-height:1.25;color:#f4f2ed}
.event-preview-header .muted{max-width:720px;line-height:1.6;margin:8px 0 0}
.event-preview-screen{width:100%;aspect-ratio:16/9;background:#050609;border:1px solid #ffffff20;border-radius:11px;overflow:hidden}
.event-preview-screen video{display:block;width:100%;height:100%;object-fit:contain;background:#050609}
.event-preview-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px;padding:17px 18px;border:1px solid #d8bd8238;border-radius:12px;background:linear-gradient(110deg,#d8bd820c,#ffffff03)}
.event-preview-note{min-width:0}
.event-preview-note strong{display:block;color:#f2dfb0;font-size:14px;line-height:1.5}
.event-preview-note p{margin:5px 0 0;color:#a9adba;font-size:12px;line-height:1.7}
.event-contact-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;text-decoration:none;text-align:center;padding:13px 17px;border-radius:9px;background:var(--gold,#d8bd82);color:#17140d;font-size:12px;font-weight:800}
.event-contact-button:hover{background:var(--gold2,#f2dfb0)}
.template-card:has(.template-card-bottom strong) .template-card-bottom strong{overflow-wrap:anywhere}
@media(max-width:650px){
 .event-preview-backdrop{padding:8px;align-items:center}
 .event-preview-dialog{padding:13px;border-radius:12px;max-height:96vh}
 .event-preview-header{margin-bottom:13px;padding-bottom:12px}
 .event-preview-actions{align-items:stretch;flex-direction:column;padding:14px;gap:13px}
 .event-contact-button{width:100%;min-height:46px}
}

/* Event preview must retain its dark/champagne modal even on a direct /su-kien/slug URL. */
body.direct-product-mode .event-preview-backdrop{
 position:fixed!important;inset:0!important;padding:clamp(8px,3vw,34px)!important;
 align-items:center!important;justify-content:center!important;overflow:auto!important;
 background:#03050bd9!important;backdrop-filter:blur(8px)!important;
}
body.direct-product-mode .event-preview-dialog{
 width:min(1000px,100%)!important;max-width:1000px!important;min-height:0!important;
 border:1px solid #d8bd8245!important;border-radius:16px!important;
 padding:clamp(14px,2.2vw,26px)!important;
}
@media(max-width:850px){
 body.direct-product-mode .event-preview-dialog{padding:13px!important}
}


/* Tet category: preview first, retain the existing payment flow and charcoal/champagne styling */
.tet-preview-backdrop{z-index:121;align-items:center;padding:clamp(12px,3vw,34px);background:#03050bd9;backdrop-filter:blur(8px)}
.tet-preview-dialog{width:min(1000px,100%);max-height:94vh;overflow:auto;background:linear-gradient(145deg,#191c23,#10141f);border:1px solid #d8bd8245;border-radius:16px;padding:clamp(14px,2.2vw,26px);box-shadow:0 30px 100px #000b}
.tet-preview-header{gap:16px;align-items:flex-start}.tet-preview-header h2{font-size:clamp(20px,3vw,30px);line-height:1.25;color:#f4f2ed}.tet-preview-header .muted{max-width:720px;line-height:1.6;margin:8px 0 0}
.tet-preview-screen{width:100%;aspect-ratio:16/9;background:transparent;border:0!important;outline:0!important;box-shadow:none!important;border-radius:10px;overflow:hidden}.tet-preview-screen video{display:block;width:100%;height:100%;object-fit:contain;background:transparent;border:0!important;outline:0!important;box-shadow:none!important;border-radius:0}
.tet-preview-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px;padding:17px 18px;border:1px solid #d8bd8238;border-radius:12px;background:linear-gradient(110deg,#d8bd820c,#ffffff03)}
.tet-preview-note{min-width:0}.tet-preview-note strong{display:block;color:#f2dfb0;font-size:14px;line-height:1.5}.tet-preview-note p{margin:5px 0 0;color:#a9adba;font-size:12px;line-height:1.7}.tet-purchase-button{display:inline-flex;align-items:center;justify-content:center;flex:none;text-align:center;padding:13px 17px;border-radius:9px;font-size:12px}
@media(max-width:650px){.tet-preview-backdrop{padding:8px}.tet-preview-dialog{padding:13px;border-radius:12px;max-height:96vh}.tet-preview-header{margin-bottom:13px;padding-bottom:12px}.tet-preview-actions{align-items:stretch;flex-direction:column;padding:14px;gap:13px}.tet-purchase-button{width:100%;min-height:46px}}
body.direct-product-mode .tet-preview-backdrop{position:fixed!important;inset:0!important;padding:clamp(8px,3vw,34px)!important;align-items:center!important;justify-content:center!important;overflow:auto!important;background:#03050bd9!important;backdrop-filter:blur(8px)!important}
body.direct-product-mode .tet-preview-dialog{width:min(1000px,100%)!important;max-width:1000px!important;min-height:0!important;border:1px solid #d8bd8245!important;border-radius:16px!important;padding:clamp(14px,2.2vw,26px)!important}

/* Background Tet checkout: video on the left, QR payment on the right */
.tet-preview-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);gap:20px;align-items:start}
.tet-preview-left{min-width:0}
.tet-preview-payment{min-width:0;display:none}
.tet-preview-dialog.is-checkout .tet-preview-layout{grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr)}
.tet-preview-dialog.is-checkout .tet-preview-payment{display:block;min-width:0}
.tet-preview-dialog.is-checkout .tet-preview-screen{position:sticky;top:0}
.tet-preview-dialog.is-checkout .tet-preview-actions{margin-top:12px;display:block}
.tet-preview-dialog.is-checkout .tet-preview-actions .tet-preview-note p{font-size:11px}
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment{position:static!important;inset:auto!important;z-index:auto!important;display:block!important;overflow:visible!important;padding:0!important;margin:0!important;background:transparent!important;backdrop-filter:none!important;width:100%!important;max-height:none!important;align-items:stretch!important}
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment[hidden]{display:none!important}
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .editor-modal{width:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:16px!important;background:#151a27!important;border:1px solid #ffffff20!important;box-shadow:none!important}
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .modal-header{display:none!important}
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .checkout-area{display:block!important;margin:0!important;padding:0!important;border:0!important}
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .checkout-title{align-items:flex-start;gap:8px;flex-wrap:wrap}
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .checkout-grid{grid-template-columns:1fr;gap:12px}
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .qr-panel{min-height:0;padding:12px}
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .qr-panel img{width:min(220px,100%)}
@media(max-width:760px){.tet-preview-dialog.is-checkout .tet-preview-layout{grid-template-columns:1fr}.tet-preview-dialog.is-checkout .tet-preview-screen{position:relative}.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .checkout-grid{grid-template-columns:1fr}}

/* FIX: remove the dark outer frame around the Tet QR checkout panel (not the video frame). */
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .editor-modal{
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  padding:0!important;
  border-radius:0!important;
}
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .checkout-area{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

/* MOBILE/TABLET PRODUCT PREVIEW FIX — prevent hidden payment column from squeezing preview.
   Before checkout the preview always uses the full dialog width. On checkout, two columns
   are used only on wide screens; phones/tablets stack video then payment. */
.tet-preview-dialog {
  box-sizing: border-box !important;
  width: min(1000px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  min-width: 0 !important;
}
.tet-preview-dialog *,
.tet-preview-dialog *::before,
.tet-preview-dialog *::after { box-sizing: border-box; }
.tet-preview-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 16px !important;
}
.tet-preview-left,
.tet-preview-payment {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.tet-preview-payment { display: none; }
.tet-preview-dialog.is-checkout .tet-preview-payment { display: block !important; }
.tet-preview-dialog.is-checkout .tet-preview-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr) !important;
}
.tet-preview-screen {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  min-width: 0 !important;
}
.tet-preview-screen video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}
.tet-preview-actions {
  width: 100% !important;
  min-width: 0 !important;
}
.tet-preview-note { min-width: 0 !important; overflow-wrap: anywhere; }
.tet-preview-note p { overflow-wrap: anywhere; }
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment,
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .editor-modal,
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .checkout-area,
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .checkout-grid,
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .qr-panel,
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .payment-details {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .checkout-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
}
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .qr-panel img {
  display: block !important;
  width: min(240px, 100%) !important;
  max-width: 100% !important;
  height: auto !important;
}
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .payment-code-row {
  display: flex !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
}
.tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .payment-code-row code {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}
@media (max-width: 900px) {
  .tet-preview-backdrop {
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)) !important;
    align-items: flex-start !important;
    overflow-y: auto !important;
  }
  .tet-preview-dialog {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 14px !important;
    overflow: visible !important;
  }
  .tet-preview-header { min-width: 0 !important; }
  .tet-preview-header > div { min-width: 0 !important; width: 100% !important; }
  .tet-preview-header h2 { overflow-wrap: anywhere; }
  .tet-preview-dialog.is-checkout .tet-preview-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .tet-preview-dialog.is-checkout .tet-preview-screen { position: relative !important; top: auto !important; }
  .tet-preview-dialog.is-checkout .tet-preview-actions { display: block !important; }
  .tet-preview-dialog.is-checkout .tet-preview-actions .tet-preview-note { margin-bottom: 10px; }
}
@media (max-width: 480px) {
  .tet-preview-dialog { padding: 12px !important; }
  .tet-preview-header h2 { font-size: 21px !important; line-height: 1.25 !important; }
  .tet-preview-header .muted { font-size: 13px !important; line-height: 1.55 !important; }
  .tet-preview-screen { border-radius: 8px !important; }
  .tet-preview-actions { padding: 12px !important; }
  .tet-preview-dialog #digitalPurchaseModal.tet-inline-payment .editor-modal { padding: 12px !important; }
}
