/* ============================================================
   STAMP DESIGN TOOL — style.css  v3
   WordPress-safe: all selectors under .sdt-root
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Naskh+Arabic:wght@400;600;700&display=swap');

/* ── Reset within tool ── */
.sdt-root,
.sdt-root * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Root wrapper ── */
.sdt-root {
    --c-bg: #f1f5f9;
    --c-surface: #ffffff;
    --c-border: #e2eaf3;
    --c-border2: #c8d8ea;
    --c-text: #0d1b2a;
    --c-text2: #4a5a6a;
    --c-text3: #8fa2b5;
    --c-primary: #1a56db;
    --c-primary2: #1547c0;
    --c-prilight: #dbeafe;
    --c-green: #25d366;
    --c-green2: #1aaa52;
    --c-orange: #ea580c;
    --c-shadow: 0 4px 16px rgba(13, 27, 42, .10);
    --c-shadow2: 0 1px 3px rgba(13, 27, 42, .08);
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 22px;
    --trans: .18s cubic-bezier(.4, 0, .2, 1);

    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--c-shadow);
    border: 1px solid var(--c-border);
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

/* ═══ HEADER ═══ */
.sdt-header {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sdt-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sdt-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #1a56db 0%, #0e3eb8 60%, #0a2fa0 100%);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.30), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(26, 86, 219, 0.15);
    animation: sdt-pulse 3s infinite ease-in-out;
}

@keyframes sdt-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(26, 86, 219, 0.12);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 16px rgba(26, 86, 219, 0.18);
    }
}

.sdt-logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    transition: 0.5s;
}

.sdt-logo-icon:hover {
    transform: scale(1.1) translateY(-3px) rotate(5deg) !important;
    box-shadow: 0 12px 24px rgba(26, 86, 219, 0.25);
    border-color: rgba(26, 86, 219, 0.4);
    animation: none;
}

.sdt-logo-icon:hover::before {
    left: 100%;
}

.sdt-logo-icon svg {
    filter: drop-shadow(0 2px 3px rgba(26, 86, 219, 0.15));
    transition: transform 0.3s ease;
}

.sdt-logo-icon:hover svg {
    transform: rotate(-10deg) scale(1.1);
}

.sdt-logo-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #1e293b 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--trans);
}

.sdt-logo-title:hover {
    transform: translateX(2px);
    background: linear-gradient(135deg, #2563eb 0%, #1e293b 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.sdt-logo-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--c-text3);
    margin-top: 0px;
    letter-spacing: 0.01em;
}

/* ═══ MAIN SPLIT ═══ */
.sdt-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ════ LEFT PANEL ════ */
.sdt-left {
    width: 270px;
    flex-shrink: 0;
    background: var(--c-surface);
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sdt-left-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
}

.sdt-left-scroll::-webkit-scrollbar {
    width: 5px;
}
.sdt-left-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.sdt-left-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}
.sdt-left-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sections */
.sdt-section {
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-border);
    position: relative;
}

.sdt-section-actions {
    border-bottom: none;
    background: linear-gradient(180deg, #f8faff 0%, #f1f5f9 100%);
}

.sdt-section-heading {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    background: linear-gradient(90deg, rgba(59,130,246,.06) 0%, transparent 80%);
    border-left: 3px solid #3b82f6;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    margin-left: -16px;
    padding-left: 12px;
}

.sdt-section-num {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 7px;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.35);
}

/* Fields */
.sdt-field {
    margin-bottom: 14px;
}

.sdt-field:last-child {
    margin-bottom: 0;
}

.sdt-field-row {
    display: flex;
    gap: 10px;
}

.sdt-field-row .sdt-field {
    flex: 1;
}

/* Font size adjuster */
.sdt-fs-adjuster {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 0 2px;
}

.sdt-fs-adjuster span {
    font-size: 10px;
    font-weight: 700;
    color: var(--c-text3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 32px;
}

.sdt-fs-adjuster input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--c-border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.sdt-fs-adjuster input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--c-primary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sdt-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.sdt-ar-label {
    font-family: 'Noto Naskh Arabic', serif !important;
    font-size: 14px !important;
}

.sdt-field input[type="text"],
.sdt-field input[type="tel"] {
    width: 100%;
    padding: 6px 10px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-sm);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    color: var(--c-text);
    background: var(--c-surface);
    outline: none;
    transition: var(--trans);
}

.sdt-input-ar {
    font-family: 'Noto Naskh Arabic', serif !important;
    font-size: 15px !important;
    text-align: right;
}

.sdt-field input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, .12);
}

.sdt-tag {
    display: inline-block;
    padding: 1px 7px;
    background: var(--c-prilight);
    color: var(--c-primary);
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: .03em;
    vertical-align: middle;
    margin-left: 4px;
}

.sdt-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.sdt-field label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0; /* aligned with button */
}

.sdt-header-action {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid #dde3ed;
    color: #475569;
    font-size: 9.5px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.sdt-header-action:hover {
    background: white;
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.18);
    transform: translateY(-1px);
}

.sdt-header-action.remove {
    border-color: #fecaca;
    color: #ef4444;
    background: #fff5f5;
}

.sdt-header-action.remove:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
    transform: translateY(-1px);
}

.sdt-row {
    margin-bottom: 6px;
}

.sdt-row input {
    width: 100%;
    padding: 7px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    height: 36px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.sdt-row input:focus {
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), inset 0 1px 2px rgba(0,0,0,0.02);
}

.sdt-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
    margin-left: 6px;
    border: 1px solid #e2e8f0;
}

/* ── Color Presets (hidden — only color bar used) ── */
.sdt-color-presets {
    display: none;
}

.sdt-color {
    display: none;
}

/* ── Color Bar ── */
.sdt-color-bar-wrap {
    display: block;
    position: relative;
    cursor: pointer;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sdt-color-bar-wrap:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26);
    transform: translateY(-1px);
}

.sdt-color-bar-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.sdt-color-bar-display {
    height: 42px;
    background: #0a2463;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: white;
    transition: background 0.3s ease, color 0.2s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.sdt-color-bar-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 7px;
    opacity: 0.92;
}

.sdt-color-bar-label::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='13.5' cy='6.5' r='.5'/%3E%3Ccircle cx='17.5' cy='10.5' r='.5'/%3E%3Ccircle cx='8.5' cy='7.5' r='.5'/%3E%3Ccircle cx='6.5' cy='12.5' r='.5'/%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 011.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}

.sdt-color-bar-hex {
    font-size: 12px;
    font-weight: 800;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.25);
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: 0.05em;
}

/* Buttons */
.sdt-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    border: none;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--trans);
    outline: none;
    margin-bottom: 7px;
}

.sdt-btn:last-child {
    margin-bottom: 0;
}

.sdt-btn:active {
    transform: scale(.98);
}

.sdt-btn-preview {
    background: var(--c-primary);
    color: white;
    font-size: 13px;
    padding: 9px 14px;
    box-shadow: 0 2px 10px rgba(26, 86, 219, .28);
    border-radius: var(--r-md);
}

.sdt-btn-preview:hover {
    background: var(--c-primary2);
    box-shadow: 0 4px 16px rgba(26, 86, 219, .35);
}

.sdt-btn-secondary {
    background: var(--c-surface);
    color: var(--c-text);
    border: 1.5px solid var(--c-border);
}

.sdt-btn-secondary:hover {
    background: #f0f5fb;
    border-color: var(--c-border2);
}

.sdt-btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1aaa52 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 211, 102, .35);
    border-radius: 12px;
}

.sdt-btn-whatsapp:hover {
    background: linear-gradient(135deg, #20c45a 0%, #158f44 100%);
    box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
    transform: translateY(-1px);
}

.sdt-btn-email {
    background: white;
    color: var(--c-orange);
    border: 1.5px solid rgba(234, 88, 12, 0.35);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.08);
}

.sdt-btn-email:hover {
    background: #fff4ee;
    border-color: var(--c-orange);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.15);
    transform: translateY(-1px);
}

/* ════ RIGHT PANEL ════ */
.sdt-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: var(--c-surface);
}

.sdt-right-scrollable {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Preview Section at Top */
.sdt-preview-section {
    background: #f1f5f9;
    border-bottom: 1px solid var(--c-border);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sdt-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 8px;
    background: #f1f5f9;
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    flex-wrap: wrap;
    row-gap: 4px;
}

.sdt-toolbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 12px;
    border-right: 1px solid var(--c-border);
}

.sdt-tool-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--c-text3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.sdt-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.sdt-translate-bar {
    margin: 8px 0;
    display: flex;
    justify-content: center;
}

.sdt-btn-translate {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--trans);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.sdt-btn-translate:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.sdt-btn-translate:active {
    transform: translateY(0);
}

.sdt-btn-translate:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sdt-mini-btn {
    font-size: 10px;
    font-weight: 700;
    color: var(--c-primary);
    background: var(--c-prilight);
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    transition: var(--trans);
}

.sdt-mini-btn:hover {
    background: var(--c-primary);
    color: white;
}

.sdt-toolbar-tweaks {
    gap: 15px;
}

.sdt-tool-slider-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sdt-tool-slider-box label {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--c-primary);
    text-transform: none;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.sdt-size-badge {
    color: #2563eb;
    background: #dbeafe;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 10px;
    font-family: monospace;
}

.sdt-tool-slider-box input[type="range"] {
    width: 110px;
    height: 6px;
    cursor: pointer;
}

.sdt-toolbar-group:last-child {
    padding-right: 0;
    border-right: none;
}

.sdt-select {
    padding: 6px 12px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--c-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    outline: none;
    cursor: pointer;
    background: white;
}

.sdt-tool-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--c-border);
    background: white;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: var(--trans);
    font-family: inherit;
    font-size: 14px;
}

.sdt-tool-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.sdt-tool-btn.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: white;
}

.sdt-tool-btn#sdt-btn-reflect {
    width: auto;
    padding: 0 10px;
}

.sdt-canvas-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    padding: 16px 16px;
    background:
        radial-gradient(circle, #c5cfd8 1px, transparent 1px);
    background-size: 22px 22px;
    background-color: #e8edf3;
    border-radius: var(--r-md);
    border: 1px solid #d5dde6;
}

.sdt-preview-info {
    text-align: center;
}

.sdt-preview-template-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 3px;
    letter-spacing: 0.03em;
}

.sdt-canvas-bg {
    background: #ffffff;
    border-radius: 6px;
    border: none;
    padding: 10px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18),
        0 6px 20px rgba(0, 0, 0, 0.10),
        0 1px 4px rgba(0, 0, 0, 0.06);
    transition: var(--trans);
    max-width: 100%;
    display: inline-flex;
    position: relative;
}

#sdt-canvas {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 230px;
    user-select: none;
    -webkit-user-drag: none;
}

.sdt-canvas-protection-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    user-select: none;
}

.sdt-canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    cursor: default;
}

.sdt-canvas-note {
    font-size: 10.5px;
    color: #94a3b8;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

/* Screenshot protection attempt: invert/hide on print */
@media print {
    .sdt-canvas-area {
        display: none !important;
    }
}

/* Prevent selection in preview */
.sdt-canvas-area * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Gallery Section */
.sdt-gallery-section {
    flex: 1;
}

.sdt-right-top-bar {
    padding: 14px 18px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sdt-gallery-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text2);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Filter Bar */
.sdt-filter-row {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.sdt-filter {
    padding: 5px 14px;
    border: 1.5px solid var(--c-border);
    border-radius: 99px;
    background: var(--c-surface);
    color: var(--c-text2);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--trans);
    outline: none;
}

.sdt-filter:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.sdt-filter.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: white;
}

.sdt-templates-wrapper {
    padding: 0 16px 20px;
}

.sdt-templates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
    transition: max-height 0.4s ease-in-out;
    overflow: hidden;
}

/* Collapsed state: only show first row */
.sdt-templates.is-collapsed {
    max-height: 236px;
    /* Height of one row approx */
}

/* Template card */
.sdt-tpl-card {
    background: var(--c-surface);
    border: 2px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 10px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: var(--trans);
    position: relative;
}

.sdt-tpl-card:hover {
    border-color: var(--c-primary);
    transform: translateY(-2px);
    box-shadow: var(--c-shadow), 0 0 0 3px rgba(26, 86, 219, .1);
}

.sdt-tpl-card.selected {
    border-color: var(--c-primary);
    background: linear-gradient(145deg, #f0f7ff, #fff);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, .18);
}

.sdt-tpl-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--c-primary);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sdt-tpl-thumb {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sdt-tpl-thumb canvas {
    max-width: 130px;
    max-height: 130px;
    display: block;
}

.sdt-tpl-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text);
    text-align: center;
    margin-bottom: 3px;
}

.sdt-tpl-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    background: #f1f5f9;
    border: 1px solid var(--c-border);
    font-size: 11px;
    color: var(--c-text2);
    font-weight: 600;
}

/* View More Button */
.sdt-view-more-area {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.sdt-btn-view-more {
    background: var(--c-surface);
    color: var(--c-primary);
    border: 1.5px solid var(--c-primary);
    padding: 8px 24px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
}

.sdt-btn-view-more:hover {
    background: var(--c-prilight);
    transform: translateY(-1px);
}

.sdt-btn-view-more.is-active {
    background: var(--c-primary);
    color: white;
}

/* Toast */
.sdt-toast {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #0d1b2a;
    color: white;
    padding: 10px 22px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 100;
    box-shadow: var(--c-shadow);
}

.sdt-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.sdt-toast.ok {
    background: #059669;
}

.sdt-toast.err {
    background: #dc2626;
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .sdt-main {
        flex-direction: column;
    }

    .sdt-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--c-border);
        max-height: 40vh;
    }

    .sdt-templates {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        padding: 12px;
    }

    .sdt-right-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sdt-canvas-area {
        padding: 10px;
    }

    #sdt-canvas {
        max-height: 240px;
    }

    .sdt-toolbar {
        gap: 8px;
        padding: 8px;
    }
}

@media (max-width: 640px) {
    .sdt-header {
        padding: 0 16px;
        height: 56px;
    }

    .sdt-logo-sub {
        display: none;
    }

    .sdt-preview-section {
        padding: 10px;
        gap: 8px;
    }

    #sdt-canvas {
        max-height: 210px;
    }

    .sdt-tool-slider-box input[type="range"] {
        width: 80px;
    }
}

@media (max-width: 520px) {
    .sdt-root {
        border-radius: var(--r-lg);
    }

    .sdt-field-row {
        flex-direction: column;
    }

    .sdt-filter-row {
        flex-wrap: wrap;
    }

    .sdt-toolbar-group {
        padding-right: 8px;
        gap: 6px;
    }
}

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE STYLES — Vibrant Professional Design
═══════════════════════════════════════════════════════════ */
.lp-wrap {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1e293b;
    background: #f8fafc;
}

.lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.lp-container--narrow {
    max-width: 820px;
}

/* ── Shared section ── */
.lp-section {
    padding: 80px 0;
}

/* Badge pill */
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    color: #4F46E5;
    border: 1px solid #C7D2FE;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 18px;
}

.lp-badge--white {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-color: rgba(255,255,255,.3);
}

.lp-heading {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.lp-heading--white { color: #fff; }

.lp-subheading {
    font-size: 16px;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 44px;
    max-width: 640px;
}

.lp-subheading--white { color: rgba(255,255,255,.85); }

/* ── HOW TO USE ── */
.lp-how {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 4px solid #4F46E5;
}

.lp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 22px;
}

.lp-step {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-top: 4px solid var(--step-color, #4F46E5);
    border-radius: 16px;
    padding: 32px 22px 26px;
    position: relative;
    transition: box-shadow .25s, transform .25s;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.lp-step:nth-child(1) { --step-color: #4F46E5; }
.lp-step:nth-child(2) { --step-color: #7C3AED; }
.lp-step:nth-child(3) { --step-color: #0EA5E9; }
.lp-step:nth-child(4) { --step-color: #F97316; }
.lp-step:nth-child(5) { --step-color: #059669; }

.lp-step:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,.13);
    transform: translateY(-5px);
}

.lp-step-num {
    position: absolute;
    top: -18px;
    left: 22px;
    width: 34px;
    height: 34px;
    background: var(--step-color, #4F46E5);
    color: white;
    font-size: 13px;
    font-weight: 900;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
    border: 2px solid white;
}

.lp-step-icon {
    font-size: 32px;
    margin-bottom: 14px;
    margin-top: 8px;
}

.lp-step h3 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.lp-step p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.7;
}

.lp-step p strong { color: #334155; }

/* ── VIDEO ── */
.lp-video-section {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 30%, #1E40AF 70%, #0369A1 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lp-video-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -15%;
    width: 50%;
    height: 180%;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
    pointer-events: none;
}

.lp-video-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 45%;
    height: 160%;
    background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 70%);
    pointer-events: none;
}

.lp-video-frame {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 24px;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.5);
    background: #0a1e5e;
    border: 2px solid rgba(255,255,255,.2);
    position: relative;
    z-index: 1;
}

.lp-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 32px;
    background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%);
}

.lp-video-play {
    width: 84px;
    height: 84px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border: 3px solid rgba(255,255,255,.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 40px rgba(79,70,229,.6);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}

.lp-video-play:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 50px rgba(79,70,229,.7);
}

.lp-video-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: rgba(255,255,255,.92);
    text-align: center;
}

.lp-video-label strong { font-size: 17px; font-weight: 700; }
.lp-video-label span { font-size: 13px; color: rgba(255,255,255,.55); }

.lp-video-note {
    font-size: 14px;
    color: rgba(255,255,255,.72);
    position: relative;
    z-index: 1;
}

.lp-video-note a {
    color: #93c5fd;
    font-weight: 700;
    text-decoration: none;
}

.lp-video-note a:hover { text-decoration: underline; }

/* ── CONTENT / ABOUT ── */
.lp-content {
    background: #f1f5f9;
}

.lp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.lp-content-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 18px;
}

.lp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 36px;
}

.lp-stat {
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
}

.lp-stat:nth-child(1) {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    border: 1.5px solid #C7D2FE;
}
.lp-stat:nth-child(2) {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
    border: 1.5px solid #BBF7D0;
}
.lp-stat:nth-child(3) {
    background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
    border: 1.5px solid #FED7AA;
}
.lp-stat:nth-child(4) {
    background: linear-gradient(135deg, #FDF4FF, #FAE8FF);
    border: 1.5px solid #E9D5FF;
}

.lp-stat span {
    display: block;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 5px;
}

.lp-stat:nth-child(1) span { color: #4F46E5; }
.lp-stat:nth-child(2) span { color: #059669; }
.lp-stat:nth-child(3) span { color: #EA580C; }
.lp-stat:nth-child(4) span { color: #9333EA; }

.lp-stat small {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
}

.lp-content-features {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,.07);
    position: sticky;
    top: 20px;
}

.lp-content-features h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.lp-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #334155;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background .15s;
}

.lp-feature-list li:hover {
    background: #f8fafc;
}

.lp-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: linear-gradient(135deg, #059669, #10B981);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(5,150,105,.25);
}

/* ── STAMP TYPES ── */
.lp-types {
    background: white;
    border-top: 1px solid #e2e8f0;
}

.lp-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.lp-type-card {
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 24px 28px;
    background: #fafbfd;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}

.lp-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.lp-type-card:nth-child(1)::before { background: linear-gradient(90deg, #4F46E5, #7C3AED); }
.lp-type-card:nth-child(2)::before { background: linear-gradient(90deg, #0EA5E9, #0284C7); }
.lp-type-card:nth-child(3)::before { background: linear-gradient(90deg, #059669, #047857); }
.lp-type-card:nth-child(4)::before { background: linear-gradient(90deg, #F97316, #EA580C); }

.lp-type-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 56px rgba(0,0,0,.13);
    transform: translateY(-6px);
    background: white;
}

.lp-type-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.lp-type-card:nth-child(1) .lp-type-icon { background: linear-gradient(135deg, #EEF2FF, #E0E7FF); }
.lp-type-card:nth-child(2) .lp-type-icon { background: linear-gradient(135deg, #E0F2FE, #BAE6FD); }
.lp-type-card:nth-child(3) .lp-type-icon { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); }
.lp-type-card:nth-child(4) .lp-type-icon { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); }

.lp-type-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.lp-type-card p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 16px;
}

.lp-type-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.lp-type-card ul li {
    font-size: 13px;
    color: #475569;
    padding-left: 18px;
    position: relative;
}

.lp-type-card ul li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    font-weight: 700;
}

.lp-type-card:nth-child(1) ul li::before { color: #4F46E5; }
.lp-type-card:nth-child(2) ul li::before { color: #0EA5E9; }
.lp-type-card:nth-child(3) ul li::before { color: #059669; }
.lp-type-card:nth-child(4) ul li::before { color: #F97316; }

/* ── FAQ ── */
.lp-faq {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.lp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-faq-item {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.lp-faq-item[open] {
    border-color: #4F46E5;
    box-shadow: 0 6px 24px rgba(79,70,229,.12);
}

.lp-faq-item summary {
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    gap: 16px;
}

.lp-faq-item summary::-webkit-details-marker { display: none; }

.lp-faq-item summary::after {
    content: '+';
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #EEF2FF;
    color: #4F46E5;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, background .2s, color .2s;
    line-height: 1;
}

.lp-faq-item[open] summary::after {
    transform: rotate(45deg);
    background: #4F46E5;
    color: white;
}

.lp-faq-item p {
    padding: 16px 24px 20px;
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.75;
    border-top: 1px solid #f1f5f9;
}

/* ── REVIEWS ── */
.lp-reviews {
    background: linear-gradient(135deg, #fafbff 0%, #f5f3ff 100%);
    border-top: 1px solid #e2e8f0;
}

.lp-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.lp-review-card {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px 26px;
    transition: box-shadow .25s, transform .25s;
    box-shadow: 0 3px 14px rgba(0,0,0,.05);
    position: relative;
}

.lp-review-card::before {
    content: '\201C';
    position: absolute;
    top: 14px;
    right: 22px;
    font-size: 72px;
    line-height: 1;
    color: #EEF2FF;
    font-family: Georgia, serif;
    font-weight: 900;
    pointer-events: none;
}

.lp-review-card:hover {
    box-shadow: 0 20px 56px rgba(79,70,229,.13);
    transform: translateY(-5px);
    border-color: #C7D2FE;
}

.lp-review-stars {
    color: #F59E0B;
    font-size: 17px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.lp-review-card p {
    font-size: 14.5px;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 22px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.lp-reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-reviewer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.lp-review-card:nth-child(1) .lp-reviewer-avatar {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    box-shadow: 0 4px 12px rgba(79,70,229,.3);
}
.lp-review-card:nth-child(2) .lp-reviewer-avatar {
    background: linear-gradient(135deg, #059669, #10B981);
    box-shadow: 0 4px 12px rgba(5,150,105,.3);
}
.lp-review-card:nth-child(3) .lp-reviewer-avatar {
    background: linear-gradient(135deg, #F97316, #EF4444);
    box-shadow: 0 4px 12px rgba(249,115,22,.3);
}

.lp-reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lp-reviewer strong {
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
}

.lp-reviewer small {
    font-size: 12px;
    color: #94a3b8;
}

/* ── CTA ── */
.lp-cta {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 30%, #4F46E5 70%, #2563EB 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lp-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 55%;
    height: 220%;
    background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 65%);
    pointer-events: none;
}

.lp-cta::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -8%;
    width: 45%;
    height: 200%;
    background: radial-gradient(circle, rgba(124,58,237,.18) 0%, transparent 65%);
    pointer-events: none;
}

.lp-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.lp-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 14px;
}

.lp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    border-radius: 99px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s;
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.lp-cta-btn--primary {
    background: white;
    color: #4F46E5;
    box-shadow: 0 10px 36px rgba(0,0,0,.28);
}

.lp-cta-btn--primary:hover {
    background: #f0f4ff;
    box-shadow: 0 18px 52px rgba(0,0,0,.35);
    transform: translateY(-3px);
}

.lp-cta-btn--whatsapp {
    background: linear-gradient(135deg, #25D366, #1AAA52);
    color: white;
    box-shadow: 0 8px 28px rgba(37,211,102,.4);
}

.lp-cta-btn--whatsapp:hover {
    background: linear-gradient(135deg, #22C55E, #15803D);
    box-shadow: 0 16px 44px rgba(37,211,102,.5);
    transform: translateY(-3px);
}

/* ── Landing page responsive ── */
@media (max-width: 860px) {
    .lp-two-col { grid-template-columns: 1fr; gap: 32px; }
    .lp-stats { grid-template-columns: repeat(2, 1fr); }
    .lp-heading { font-size: 28px; }
    .lp-section { padding: 56px 0; }
    .lp-content-features { position: static; }
}

@media (max-width: 600px) {
    .lp-steps { grid-template-columns: 1fr; }
    .lp-type-grid { grid-template-columns: 1fr; }
    .lp-review-grid { grid-template-columns: 1fr; }
    .lp-heading { font-size: 24px; }
    .lp-cta-buttons { flex-direction: column; align-items: stretch; }
    .lp-cta-btn { justify-content: center; }
}
