/* =====================================================================
   TEMPLATE VIEWPORT — Scoped styles for interactive template previews
   ===================================================================== */

.tpl-viewport {
    --tpl-pri: #2563eb;
    --tpl-pri-l: #3b82f6;
    --tpl-acc: #f59e0b;
    --tpl-bg: #ffffff;
    --tpl-bg-a: #f8fafc;
    --tpl-bg-d: #0f172a;
    --tpl-txt: #1e293b;
    --tpl-txt-l: #f8fafc;
    --tpl-mut: #64748b;
    --tpl-srf: #f1f5f9;
    --tpl-bdr: #e2e8f0;
    --tpl-grad: linear-gradient(135deg, var(--tpl-pri) 0%, var(--tpl-acc) 100%);
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--tpl-txt);
    background: var(--tpl-bg);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    border-radius: 0 0 16px 16px;
}

.tpl-viewport *, .tpl-viewport *::before, .tpl-viewport *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.tpl-viewport img { max-width: 100%; display: block; }
.tpl-viewport a { color: inherit; text-decoration: none; }

/* ---- Page transition ---- */
.tpl-page { animation: tplFadeIn 0.32s ease both; }
@keyframes tplFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===================== NAVBAR ===================== */
.tpl-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--tpl-bdr);
}
.tpl-nav-dark .tpl-nav {
    background: rgba(15,23,42,0.92);
    border-bottom-color: rgba(255,255,255,0.08);
}
.tpl-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 54px;
    gap: 16px;
}
.tpl-nav-brand {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: var(--tpl-txt);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.tpl-nav-dark .tpl-nav-brand { color: var(--tpl-txt-l); }
.tpl-nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
}
.tpl-nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--tpl-mut);
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
    position: relative;
}
.tpl-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tpl-pri);
    transition: width 0.25s ease;
    border-radius: 2px;
}
.tpl-nav-links a:hover,
.tpl-nav-links a.is-active { color: var(--tpl-pri); }
.tpl-nav-links a.is-active::after { width: 100%; }
.tpl-nav-dark .tpl-nav-links a { color: rgba(255,255,255,0.55); }
.tpl-nav-dark .tpl-nav-links a:hover,
.tpl-nav-dark .tpl-nav-links a.is-active { color: #fff; }
.tpl-nav-cta {
    font-size: 12px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    background: var(--tpl-pri);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
.tpl-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.tpl-nav-hamburger {
    display: none;
    font-size: 20px;
    background: none;
    border: none;
    color: var(--tpl-txt);
    cursor: pointer;
}
.tpl-nav-dark .tpl-nav-hamburger { color: #fff; }

/* ===================== HERO ===================== */
.tpl-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 60px 24px;
}
.tpl-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--tpl-grad);
}
.tpl-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
}
.tpl-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.18) 100%);
}
.tpl-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    color: var(--tpl-txt-l);
}
.tpl-hero-eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 14px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
}
.tpl-hero-title {
    font-size: clamp(24px, 4.5vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}
.tpl-hero-sub {
    font-size: 15px;
    opacity: 0.82;
    max-width: 440px;
    margin: 0 auto 24px;
    line-height: 1.6;
}
.tpl-btn-hero {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    background: #fff;
    color: var(--tpl-bg-d);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tpl-btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ===================== SECTIONS ===================== */
.tpl-section {
    padding: 56px 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.tpl-section-full {
    max-width: none;
    padding: 56px 0;
}
.tpl-section-dark {
    background: var(--tpl-bg-d);
    color: var(--tpl-txt-l);
    max-width: none;
    padding: 48px 24px;
}
.tpl-section-alt {
    background: var(--tpl-bg-a);
    max-width: none;
    padding: 56px 24px;
}
.tpl-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.tpl-section-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tpl-pri);
    margin-bottom: 8px;
}
.tpl-section-title {
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.2;
}
.tpl-section-sub {
    font-size: 14px;
    color: var(--tpl-mut);
    max-width: 540px;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ===================== FEATURES ===================== */
.tpl-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.tpl-feature-card {
    background: var(--tpl-srf);
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--tpl-bdr);
}
.tpl-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.tpl-feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
    line-height: 1;
}
.tpl-feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}
.tpl-feature-card p {
    font-size: 13px;
    color: var(--tpl-mut);
    line-height: 1.5;
}

/* ===================== MENU / PRODUCT GRID ===================== */
.tpl-menu-group { margin-bottom: 36px; }
.tpl-menu-group-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tpl-pri);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tpl-bdr);
}
.tpl-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--tpl-bdr);
    gap: 16px;
}
.tpl-menu-item:last-child { border-bottom: none; }
.tpl-menu-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}
.tpl-menu-desc {
    font-size: 12px;
    color: var(--tpl-mut);
}
.tpl-menu-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--tpl-pri);
    white-space: nowrap;
    flex-shrink: 0;
}
.tpl-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.tpl-product-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--tpl-bdr);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
}
.tpl-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.tpl-product-img {
    height: 160px;
    background: var(--tpl-grad);
    opacity: 0.7;
    position: relative;
}
.tpl-product-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15) 0%, transparent 70%);
}
.tpl-product-info {
    padding: 16px;
}
.tpl-product-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.tpl-product-info span {
    font-size: 14px;
    font-weight: 700;
    color: var(--tpl-pri);
}
.tpl-product-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--tpl-pri);
    color: #fff;
    position: absolute;
    top: 10px;
    left: 10px;
}

/* ===================== GALLERY ===================== */
.tpl-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.tpl-gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--tpl-grad);
    opacity: 0.85;
}
.tpl-gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 60%, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.tpl-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
}
.tpl-gallery-item span {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    z-index: 1;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.tpl-gallery-item:hover { opacity: 1; transform: scale(1.02); }

/* ===================== TESTIMONIAL ===================== */
.tpl-testimonial {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}
.tpl-testimonial blockquote {
    font-size: clamp(17px, 2.5vw, 22px);
    font-weight: 600;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 14px;
    color: inherit;
}
.tpl-testimonial cite {
    font-size: 13px;
    font-style: normal;
    opacity: 0.65;
}

/* ===================== STATS ===================== */
.tpl-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 24px 0;
}
.tpl-stat {
    text-align: center;
}
.tpl-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--tpl-pri);
    line-height: 1.1;
}
.tpl-stat-label {
    font-size: 12px;
    color: var(--tpl-mut);
    font-weight: 500;
    margin-top: 4px;
}

/* ===================== CTA BANNER ===================== */
.tpl-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 32px;
    border-radius: 18px;
    background: var(--tpl-grad);
    color: var(--tpl-txt-l);
    flex-wrap: wrap;
}
.tpl-cta-banner h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}
.tpl-cta-banner p {
    font-size: 13px;
    opacity: 0.8;
}
.tpl-cta-btn {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 10px;
    background: #fff;
    color: var(--tpl-bg-d);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.tpl-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

/* ===================== CONTACT / FORM ===================== */
.tpl-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.tpl-contact-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.tpl-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--tpl-mut);
}
.tpl-contact-row strong {
    color: var(--tpl-txt);
    font-weight: 600;
}
.tpl-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tpl-input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--tpl-bdr);
    border-radius: 10px;
    background: var(--tpl-srf);
    color: var(--tpl-txt);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tpl-input:focus {
    border-color: var(--tpl-pri);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.tpl-textarea {
    min-height: 100px;
    resize: vertical;
}
.tpl-btn-submit {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    background: var(--tpl-pri);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    align-self: flex-start;
}
.tpl-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ===================== FOOTER ===================== */
.tpl-footer {
    background: var(--tpl-bg-d);
    color: rgba(255,255,255,0.7);
    padding: 40px 24px 20px;
    margin-top: 32px;
}
.tpl-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tpl-footer-brand strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.tpl-footer-brand p {
    font-size: 13px;
    line-height: 1.5;
}
.tpl-footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tpl-footer-links a {
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}
.tpl-footer-links a:hover { color: #fff; }
.tpl-footer-hours {
    font-size: 13px;
    line-height: 1.6;
}
.tpl-footer-bottom {
    max-width: 1100px;
    margin: 14px auto 0;
    font-size: 12px;
    opacity: 0.45;
}

/* ===================== BOOKING SECTION ===================== */
.tpl-booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.tpl-booking-card {
    text-align: center;
    padding: 20px 14px;
    background: var(--tpl-srf);
    border-radius: 12px;
    border: 1px solid var(--tpl-bdr);
}
.tpl-booking-card strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--tpl-pri);
    margin-bottom: 4px;
}
.tpl-booking-card span {
    font-size: 12px;
    color: var(--tpl-mut);
}

/* ===================== EVENTS ===================== */
.tpl-events { display: flex; flex-direction: column; gap: 14px; }
.tpl-event-card {
    display: flex;
    gap: 16px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--tpl-bdr);
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tpl-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.tpl-event-date {
    text-align: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--tpl-pri);
    color: #fff;
    flex-shrink: 0;
    min-width: 56px;
}
.tpl-event-date strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
}
.tpl-event-date span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tpl-event-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
}
.tpl-event-info p {
    font-size: 12px;
    color: var(--tpl-mut);
}

/* ===================== RESPONSIVE (within viewport) ===================== */
@media (max-width: 640px) {
    .tpl-nav-links { display: none; }
    .tpl-nav-cta { display: none; }
    .tpl-nav-hamburger { display: block; }
    .tpl-hero { min-height: 280px; padding: 40px 18px; }
    .tpl-hero-title { font-size: 22px; }
    .tpl-section { padding: 36px 18px; }
    .tpl-features { grid-template-columns: 1fr; }
    .tpl-contact-grid { grid-template-columns: 1fr; }
    .tpl-footer-inner { grid-template-columns: 1fr; gap: 18px; }
    .tpl-cta-banner { padding: 24px 20px; flex-direction: column; text-align: center; }
    .tpl-product-grid { grid-template-columns: repeat(2, 1fr); }
    .tpl-gallery { grid-template-columns: repeat(2, 1fr); }
    .tpl-stats { gap: 24px; }
    .tpl-booking-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Mobile viewport mode (forced by modal toggle) ---- */
.template-preview-modal.is-mobile .tpl-viewport {
    max-width: 375px;
    margin: 0 auto;
    border-radius: 24px;
    border: 3px solid #334155;
    min-height: 667px;
    box-shadow: 0 0 0 6px #1e293b, 0 20px 60px rgba(0,0,0,0.4);
}
.template-preview-modal.is-mobile .tpl-nav-links { display: none; }
.template-preview-modal.is-mobile .tpl-nav-cta { display: none; }
.template-preview-modal.is-mobile .tpl-nav-hamburger { display: block; }
.template-preview-modal.is-mobile .tpl-hero { min-height: 260px; padding: 36px 16px; }
.template-preview-modal.is-mobile .tpl-hero-title { font-size: 20px; }
.template-preview-modal.is-mobile .tpl-section { padding: 32px 16px; }
.template-preview-modal.is-mobile .tpl-features { grid-template-columns: 1fr; }
.template-preview-modal.is-mobile .tpl-contact-grid { grid-template-columns: 1fr; }
.template-preview-modal.is-mobile .tpl-footer-inner { grid-template-columns: 1fr; gap: 16px; }
.template-preview-modal.is-mobile .tpl-cta-banner { flex-direction: column; text-align: center; padding: 24px 18px; }
.template-preview-modal.is-mobile .tpl-product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.template-preview-modal.is-mobile .tpl-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
.template-preview-modal.is-mobile .tpl-stats { gap: 20px; }
.template-preview-modal.is-mobile .tpl-booking-grid { grid-template-columns: 1fr 1fr; }

/* ---- Zoom shell override ---- */
.template-preview-zoom-shell {
    transform-origin: top center;
}
.template-preview-zoom-shell .tpl-viewport {
    width: 100%;
}

/* =====================================================================
   LAYOUT VARIANTS — Dark theme, split hero, editorial, glassmorphism
   ===================================================================== */

/* ===================== DARK THEME ===================== */
.tpl-dark {
    --tpl-bg: var(--tpl-bg-d);
    --tpl-bg-a: #10141e;
    --tpl-txt: #e8ecf4;
    --tpl-txt-l: #f0f4fa;
    --tpl-mut: rgba(255,255,255,0.48);
    --tpl-srf: rgba(255,255,255,0.05);
    --tpl-bdr: rgba(255,255,255,0.07);
    background: var(--tpl-bg-d);
    color: #e8ecf4;
}
.tpl-dark .tpl-nav {
    background: rgba(8,10,20,0.88);
    border-bottom-color: rgba(255,255,255,0.06);
}
.tpl-dark .tpl-nav-brand { color: #fff; }
.tpl-dark .tpl-nav-links a { color: rgba(255,255,255,0.45); }
.tpl-dark .tpl-nav-links a:hover,
.tpl-dark .tpl-nav-links a.is-active { color: #fff; }
.tpl-dark .tpl-nav-links a.is-active::after { background: var(--tpl-acc, var(--tpl-pri)); }
.tpl-dark .tpl-nav-hamburger { color: #fff; }
.tpl-dark .tpl-feature-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.07);
    color: #d8dce8;
}
.tpl-dark .tpl-feature-card h3 { color: #fff; }
.tpl-dark .tpl-feature-card:hover {
    background: rgba(255,255,255,0.07);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.tpl-dark .tpl-section-eyebrow { color: var(--tpl-acc, var(--tpl-pri)); }
.tpl-dark .tpl-section-title { color: #fff; }
.tpl-dark .tpl-section-sub { color: rgba(255,255,255,0.5); }
.tpl-dark .tpl-section-dark {
    background: rgba(0,0,0,0.25);
}
.tpl-dark .tpl-section-alt {
    background: rgba(255,255,255,0.03);
}
.tpl-dark .tpl-menu-group-title { color: var(--tpl-acc, var(--tpl-pri)); border-bottom-color: rgba(255,255,255,0.08); }
.tpl-dark .tpl-menu-item { border-bottom-color: rgba(255,255,255,0.06); }
.tpl-dark .tpl-menu-name { color: #fff; }
.tpl-dark .tpl-menu-desc { color: rgba(255,255,255,0.4); }
.tpl-dark .tpl-menu-price { color: var(--tpl-acc, var(--tpl-pri)); }
.tpl-dark .tpl-product-card { border-color: rgba(255,255,255,0.07); background: rgba(255,255,255,0.03); }
.tpl-dark .tpl-product-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.tpl-dark .tpl-product-info h4 { color: #fff; }
.tpl-dark .tpl-product-info span { color: var(--tpl-acc, var(--tpl-pri)); }
.tpl-dark .tpl-gallery-item { opacity: 0.75; }
.tpl-dark .tpl-gallery-item:hover { opacity: 0.95; }
.tpl-dark .tpl-footer {
    background: rgba(0,0,0,0.35);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.tpl-dark .tpl-input {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: #e8ecf4;
}
.tpl-dark .tpl-input::placeholder { color: rgba(255,255,255,0.3); }
.tpl-dark .tpl-input:focus {
    border-color: var(--tpl-acc, var(--tpl-pri));
    box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}
.tpl-dark .tpl-contact-row { color: rgba(255,255,255,0.5); }
.tpl-dark .tpl-contact-row strong { color: #fff; }
.tpl-dark .tpl-contact-info h3 { color: #fff; }
.tpl-dark .tpl-booking-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.07); }
.tpl-dark .tpl-booking-card span { color: rgba(255,255,255,0.45); }
.tpl-dark .tpl-event-card { border-color: rgba(255,255,255,0.07); background: rgba(255,255,255,0.03); }
.tpl-dark .tpl-event-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
.tpl-dark .tpl-event-info h4 { color: #fff; }
.tpl-dark .tpl-event-info p { color: rgba(255,255,255,0.4); }

/* ===================== SPLIT HERO ===================== */
.tpl-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    min-height: 420px;
    padding: 0;
    gap: 0;
}
.tpl-hero-split .tpl-hero-bg { display: none; }
.tpl-hero-split .tpl-hero-content {
    padding: 56px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--tpl-txt);
    max-width: none;
}
.tpl-hero-split .tpl-hero-sub { margin: 0 0 24px; max-width: 400px; color: var(--tpl-mut); opacity: 1; }
.tpl-hero-split .tpl-hero-eyebrow { background: var(--tpl-srf); color: var(--tpl-pri); opacity: 1; }
.tpl-hero-split .tpl-btn-hero { background: var(--tpl-pri); color: #fff; }
.tpl-hero-split .tpl-hero-visual {
    position: relative;
    background: var(--tpl-grad);
    overflow: hidden;
    min-height: 380px;
}
.tpl-hero-split .tpl-hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.06) 0%, transparent 50%);
}
.tpl-hero-split .tpl-hero-visual-label {
    position: absolute;
    bottom: 24px;
    left: 24px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.tpl-dark .tpl-hero-split .tpl-hero-content { color: var(--tpl-txt-l); }
.tpl-dark .tpl-hero-split .tpl-hero-sub { color: rgba(255,255,255,0.55); }
.tpl-dark .tpl-hero-split .tpl-hero-eyebrow { background: rgba(255,255,255,0.08); color: var(--tpl-acc); }

/* ===================== MINIMAL HERO ===================== */
.tpl-hero-minimal {
    min-height: auto;
    padding: 64px 24px 40px;
    background: transparent;
}
.tpl-hero-minimal .tpl-hero-bg { display: none; }
.tpl-hero-minimal .tpl-hero-content {
    color: var(--tpl-txt);
    max-width: 720px;
}
.tpl-hero-minimal .tpl-hero-title {
    font-size: clamp(30px, 5.5vw, 56px);
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 18px;
}
.tpl-hero-minimal .tpl-hero-sub {
    color: var(--tpl-mut);
    opacity: 1;
    font-size: 16px;
    max-width: 500px;
}
.tpl-hero-minimal .tpl-hero-eyebrow { background: var(--tpl-srf); color: var(--tpl-pri); opacity: 1; }
.tpl-hero-minimal .tpl-btn-hero { background: var(--tpl-pri); color: #fff; }
.tpl-hero-minimal .tpl-hero-accent {
    display: block;
    width: 48px;
    height: 3px;
    background: var(--tpl-pri);
    border-radius: 2px;
    margin: 24px auto 0;
}
.tpl-dark .tpl-hero-minimal .tpl-hero-content { color: #fff; }
.tpl-dark .tpl-hero-minimal .tpl-hero-sub { color: rgba(255,255,255,0.5); }

/* ===================== GLASSMORPHISM CARDS ===================== */
.tpl-card-glass {
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.tpl-card-glass:hover {
    background: rgba(255,255,255,0.08) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25) !important;
    border-color: rgba(255,255,255,0.16) !important;
}
.tpl-card-glass .tpl-feature-icon { filter: brightness(1.2); }

/* ===================== ACCENT BORDERED CARDS ===================== */
.tpl-card-accent {
    border-left: 3px solid var(--tpl-pri) !important;
    border-radius: 0 12px 12px 0 !important;
    text-align: left !important;
}

/* ===================== IMAGE PLACEHOLDER (gradient visual) ===================== */
.tpl-img-placeholder {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--tpl-grad);
    min-height: 200px;
}
.tpl-img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 75%, rgba(255,255,255,0.12) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(255,255,255,0.06) 0%, transparent 50%);
}
.tpl-img-placeholder-label {
    position: absolute;
    bottom: 14px;
    left: 16px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===================== BENTO GRID ===================== */
.tpl-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
    gap: 14px;
}
.tpl-bento-item {
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--tpl-bdr);
    background: var(--tpl-srf);
    transition: transform 0.25s, box-shadow 0.25s;
}
.tpl-bento-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.tpl-bento-item.tpl-bento-wide { grid-column: span 2; }
.tpl-bento-item.tpl-bento-tall { grid-row: span 2; }
.tpl-bento-item.tpl-bento-featured {
    background: var(--tpl-grad);
    color: #fff;
    border-color: transparent;
}
.tpl-bento-item.tpl-bento-featured .tpl-bento-title { color: #fff; }
.tpl-bento-item.tpl-bento-featured .tpl-bento-desc { color: rgba(255,255,255,0.7); }
.tpl-bento-icon { font-size: 28px; margin-bottom: 10px; }
.tpl-bento-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.tpl-bento-desc { font-size: 12px; color: var(--tpl-mut); line-height: 1.4; }
.tpl-bento-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--tpl-pri);
    line-height: 1;
    margin-bottom: 4px;
}
.tpl-bento-item.tpl-bento-featured .tpl-bento-value { color: #fff; }
.tpl-dark .tpl-bento-item { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.07); }
.tpl-dark .tpl-bento-item:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.tpl-dark .tpl-bento-title { color: #fff; }

/* ===================== MARQUEE TICKER ===================== */
.tpl-marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 14px 0;
    border-top: 1px solid var(--tpl-bdr);
    border-bottom: 1px solid var(--tpl-bdr);
    font-size: 13px;
    font-weight: 600;
    color: var(--tpl-mut);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.tpl-marquee-inner {
    display: inline-block;
    animation: tplMarquee 20s linear infinite;
}
@keyframes tplMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.tpl-marquee-sep {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tpl-pri);
    margin: 0 20px;
    vertical-align: middle;
    opacity: 0.5;
}

/* ===================== DECORATIVE ORBS ===================== */
.tpl-orb-wrap { position: relative; overflow: hidden; }
.tpl-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}
.tpl-orb-1 { width: 300px; height: 300px; background: var(--tpl-pri); top: -80px; right: -60px; }
.tpl-orb-2 { width: 250px; height: 250px; background: var(--tpl-acc); bottom: -60px; left: -40px; }
.tpl-orb-wrap > *:not(.tpl-orb) { position: relative; z-index: 1; }

/* ===================== PRICING TABLE ===================== */
.tpl-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
}
.tpl-price-card {
    border-radius: 18px;
    padding: 28px 22px;
    border: 1px solid var(--tpl-bdr);
    background: var(--tpl-srf);
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
}
.tpl-price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.tpl-price-card.tpl-price-popular {
    border-color: var(--tpl-pri);
    box-shadow: 0 0 0 1px var(--tpl-pri);
    background: var(--tpl-bg);
}
.tpl-price-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 10px;
    background: var(--tpl-pri);
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tpl-price-name { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.tpl-price-amount { font-size: 32px; font-weight: 800; color: var(--tpl-pri); margin-bottom: 4px; }
.tpl-price-period { font-size: 12px; color: var(--tpl-mut); margin-bottom: 16px; }
.tpl-price-features { list-style: none; text-align: left; margin-bottom: 20px; }
.tpl-price-features li {
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid var(--tpl-bdr);
    color: var(--tpl-mut);
}
.tpl-price-features li::before { content: '✓ '; color: var(--tpl-pri); font-weight: 700; }
.tpl-price-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    border: 2px solid var(--tpl-pri);
    background: transparent;
    color: var(--tpl-pri);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.tpl-price-btn:hover { background: var(--tpl-pri); color: #fff; }
.tpl-price-popular .tpl-price-btn { background: var(--tpl-pri); color: #fff; }
.tpl-dark .tpl-price-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.tpl-dark .tpl-price-card.tpl-price-popular { background: rgba(255,255,255,0.06); }
.tpl-dark .tpl-price-name { color: #fff; }
.tpl-dark .tpl-price-features li { border-bottom-color: rgba(255,255,255,0.06); }

/* ===================== ACCENT DIVIDER ===================== */
.tpl-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.tpl-divider::before, .tpl-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tpl-bdr);
}
.tpl-divider span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tpl-mut);
    white-space: nowrap;
}

/* ===================== TWO-COLUMN SPLIT SECTION ===================== */
.tpl-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.tpl-split-reverse { direction: rtl; }
.tpl-split-reverse > * { direction: ltr; }
.tpl-split-text h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.tpl-split-text p { font-size: 14px; color: var(--tpl-mut); line-height: 1.7; margin-bottom: 16px; }

/* ===================== HORIZONTAL SCROLL CARDS ===================== */
.tpl-hscroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}
.tpl-hscroll::-webkit-scrollbar { height: 4px; }
.tpl-hscroll::-webkit-scrollbar-track { background: transparent; }
.tpl-hscroll::-webkit-scrollbar-thumb { background: var(--tpl-bdr); border-radius: 4px; }
.tpl-hscroll-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--tpl-bdr);
    transition: transform 0.25s;
}
.tpl-hscroll-card:hover { transform: translateY(-3px); }
.tpl-hscroll-card-img {
    height: 140px;
    background: var(--tpl-grad);
    position: relative;
}
.tpl-hscroll-card-body { padding: 16px; }
.tpl-hscroll-card-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.tpl-hscroll-card-body p { font-size: 12px; color: var(--tpl-mut); }
.tpl-dark .tpl-hscroll-card { border-color: rgba(255,255,255,0.07); background: rgba(255,255,255,0.03); }
.tpl-dark .tpl-hscroll-card-body h4 { color: #fff; }

/* ===================== ADDITIONAL RESPONSIVE FOR NEW LAYOUTS ===================== */
@media (max-width: 640px) {
    .tpl-hero-split { grid-template-columns: 1fr; }
    .tpl-hero-split .tpl-hero-visual { min-height: 200px; }
    .tpl-hero-split .tpl-hero-content { padding: 36px 18px; }
    .tpl-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
    .tpl-bento-item.tpl-bento-wide { grid-column: span 2; }
    .tpl-bento-item.tpl-bento-tall { grid-row: span 1; }
    .tpl-split { grid-template-columns: 1fr; gap: 24px; }
    .tpl-pricing { grid-template-columns: 1fr; }
    .tpl-hscroll-card { flex: 0 0 220px; }
    .tpl-hero-minimal .tpl-hero-title { font-size: 26px; }
}
.template-preview-modal.is-mobile .tpl-hero-split { grid-template-columns: 1fr; }
.template-preview-modal.is-mobile .tpl-hero-split .tpl-hero-visual { min-height: 180px; }
.template-preview-modal.is-mobile .tpl-hero-split .tpl-hero-content { padding: 28px 16px; }
.template-preview-modal.is-mobile .tpl-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
.template-preview-modal.is-mobile .tpl-split { grid-template-columns: 1fr; gap: 20px; }
.template-preview-modal.is-mobile .tpl-pricing { grid-template-columns: 1fr; }
.template-preview-modal.is-mobile .tpl-hero-minimal .tpl-hero-title { font-size: 24px; }
