/* ==========================================================================
   LOGO MAKER BETA — Premium Design System
   Matches Secura Web Hosting visual language
   ========================================================================== */

/* ── Page Layout ── */
.lm-page {
    min-height: 100vh;
    background: #f8fafc;
    padding-top: 0;
}

.lm-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: calc(100vh - 80px);
}

/* ═══════════════════════════════════════
   LEFT SIDEBAR
   ═══════════════════════════════════════ */
.lm-sidebar {
    background: #ffffff;
    border-right: 1px solid #e8ecf1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.lm-sidebar::-webkit-scrollbar {
    width: 5px;
}
.lm-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.lm-sidebar-header {
    padding: 28px 24px 8px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}

.lm-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.lm-title-group h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.lm-beta-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 20px;
    line-height: 1;
}

.lm-subtitle {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
    padding-bottom: 16px;
}

/* ── Field Groups ── */
.lm-field-group {
    padding: 14px 24px 0;
}

.lm-label {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #0ea5e9;
    text-transform: capitalize;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.lm-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

.lm-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

/* ── Tabs ── */
.lm-tabs {
    display: flex;
    padding: 16px 24px 0;
    gap: 0;
    border-bottom: 1px solid #f1f5f9;
}

.lm-tab {
    flex: 1;
    padding: 11px 0;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.lm-tab:first-child {
    border-radius: 10px 0 0 10px;
    border-right: none;
}

.lm-tab:last-child {
    border-radius: 0 10px 10px 0;
}

.lm-tab.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.lm-tab i {
    font-size: 16px;
}

/* ── Tab Content ── */
.lm-tab-content {
    display: none;
    padding-bottom: 32px;
    animation: lmFadeIn 0.25s ease;
}

.lm-tab-content.active {
    display: block;
}

@keyframes lmFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Search ── */
.lm-search-wrap {
    position: relative;
    padding: 16px 24px 0;
}

.lm-search-icon {
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-16%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

.lm-search {
    width: 100%;
    padding: 10px 36px 10px 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: all 0.2s;
}

.lm-search:focus {
    border-color: #0ea5e9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.08);
}

.lm-search-clear {
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-16%);
    width: 22px;
    height: 22px;
    border: none;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    color: #64748b;
    transition: all 0.15s;
}

.lm-search-clear:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* ── Category Chips ── */
.lm-category-chips {
    display: flex;
    gap: 6px;
    padding: 14px 24px 4px;
    flex-wrap: wrap;
}

.lm-chip {
    padding: 5px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}

.lm-chip:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.lm-chip.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

/* ── Icon Grid ── */
.lm-icon-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 12px 24px;
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.lm-icon-grid::-webkit-scrollbar {
    width: 4px;
}
.lm-icon-grid::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.lm-icon-btn {
    width: 100%;
    aspect-ratio: 1;
    border: 1.5px solid transparent;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
    font-size: 22px;
    color: #475569;
}

.lm-icon-btn:hover {
    background: #e0f2fe;
    border-color: #0ea5e9;
    color: #0284c7;
    transform: scale(1.08);
}

.lm-icon-btn.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15,23,42,0.2);
    transform: scale(1.05);
}

.lm-icon-count {
    padding: 6px 24px 8px;
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── Color Picker ── */
.lm-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lm-color-picker {
    width: 40px;
    height: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 2px;
    cursor: pointer;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}

.lm-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.lm-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.lm-color-picker::-moz-color-swatch {
    border: none;
    border-radius: 6px;
}

.lm-color-hex {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Roboto Mono', monospace;
    font-size: 13.5px;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    transition: all 0.2s;
}

.lm-color-hex:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.08);
}

/* ── Color Presets ── */
.lm-presets-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lm-preset-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.18s;
}

.lm-preset-btn:hover {
    transform: scale(1.15);
    border-color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* ── Select ── */
.lm-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    background: #fff;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8.5L1.5 4h9L6 8.5z' fill='%2394a3b8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    transition: all 0.2s;
}

.lm-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.08);
}

/* ── Slider ── */
.lm-slider-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lm-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.lm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #0f172a;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.15s;
}

.lm-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.lm-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #0f172a;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.lm-slider-val {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    min-width: 36px;
    text-align: right;
}

/* ── Layout Options ── */
.lm-layout-options {
    display: flex;
    gap: 8px;
}

.lm-layout-btn {
    flex: 1;
    padding: 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.lm-layout-btn i {
    font-size: 16px;
}

.lm-layout-btn:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.lm-layout-btn.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

/* ── Background Options ── */
.lm-bg-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lm-bg-btn {
    padding: 9px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.18s;
    display: flex;
    align-items: center;
    gap: 7px;
}

.lm-bg-btn:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.lm-bg-btn.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.lm-bg-swatch {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    flex-shrink: 0;
}

.transparent-swatch {
    background-image:
        linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

.lm-custom-bg-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}


/* ═══════════════════════════════════════
   RIGHT CANVAS AREA
   ═══════════════════════════════════════ */
.lm-canvas-area {
    display: flex;
    flex-direction: column;
    background: #f1f5f9;
}

/* ── Toolbar ── */
.lm-canvas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
}

.lm-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lm-canvas-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lm-canvas-label i {
    font-size: 16px;
    color: #22c55e;
}

.lm-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lm-toolbar-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    color: #64748b;
    transition: all 0.15s;
}

.lm-toolbar-btn:hover {
    background: #f8fafc;
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.lm-zoom-val {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    min-width: 42px;
    text-align: center;
}

/* ── Canvas Viewport ── */
.lm-canvas-viewport {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    overflow: auto;
}

.lm-canvas-checkerboard {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 500px;
    min-height: 320px;
    border-radius: 16px;
    padding: 64px;
    /* Default: checkerboard for transparent */
    background-image:
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
        linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #fff;
    box-shadow: 0 8px 32px rgba(15,23,42,0.06);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.lm-canvas-checkerboard.bg-transparent {
    background-image:
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
        linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #fff;
}

.lm-canvas-checkerboard.bg-white {
    background-image: none;
    background-color: #fff;
}

.lm-canvas-checkerboard.bg-dark {
    background-image: none;
    background-color: #0f172a;
}

.lm-canvas-checkerboard.bg-custom {
    background-image: none;
    background-color: var(--custom-bg, #f0f4f8);
}

/* ── Logo Preview ── */
.lm-logo-preview {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: center center;
}

.lm-logo-preview.layout-horizontal {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: center;
    justify-items: start;
    width: auto;
    height: auto;
}
.lm-logo-preview.layout-horizontal #previewIconWrap {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lm-logo-preview.layout-horizontal #previewTextWrap {
    grid-column: 2;
    grid-row: 1;
}
.lm-logo-preview.layout-horizontal #previewTaglineWrap {
    grid-column: 2;
    grid-row: 2;
}

.lm-logo-preview.layout-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
}

.lm-logo-preview.layout-freeform {
    display: block;
    width: 600px;
    height: 400px;
    max-width: 100%;
    aspect-ratio: 6/4;
}

.lm-logo-preview.layout-freeform .lm-draggable {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: move;
    user-select: none;
    padding: 8px;
    border: 1.5px dashed transparent;
    border-radius: 6px;
    transition: border-color 0.15s, background-color 0.15s;
}

.lm-logo-preview.layout-freeform .lm-draggable:hover {
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(14, 165, 233, 0.02);
}

.lm-logo-preview.layout-freeform .lm-draggable.dragging,
.lm-logo-preview.layout-freeform .lm-draggable.active-select {
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.05);
}

.lm-logo-preview.layout-freeform .lm-draggable.dragging::after,
.lm-logo-preview.layout-freeform .lm-draggable.active-select::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #0ea5e9;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    bottom: -4px;
    right: -4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    z-index: 10;
}
.lm-logo-preview.layout-freeform .lm-draggable.dragging::before,
.lm-logo-preview.layout-freeform .lm-draggable.active-select::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #0ea5e9;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    top: -4px;
    left: -4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    z-index: 10;
}

.lm-preview-icon {
    font-size: 80px;
    color: #3025a0;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.2s;
}

.lm-preview-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.1;
    white-space: nowrap;
    transition: all 0.2s;
}

/* ── Download Bar ── */
.lm-download-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border-top: 1px solid #e8ecf1;
}

.lm-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 16px rgba(15,23,42,0.2);
}

.lm-download-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,23,42,0.3);
}

.lm-download-btn:active {
    transform: translateY(0);
}

.lm-download-btn i {
    font-size: 18px;
}

.lm-download-options {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
}

.lm-dl-opt {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}

.lm-dl-opt.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.lm-dl-opt:hover:not(.active) {
    color: #0f172a;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1080px) {
    .lm-layout {
        grid-template-columns: 340px 1fr;
    }
    .lm-icon-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 860px) {
    .lm-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .lm-sidebar {
        border-right: none;
        border-bottom: 1px solid #e8ecf1;
        max-height: 55vh;
    }

    .lm-canvas-viewport {
        min-height: 50vh;
        padding: 32px 16px;
    }

    .lm-canvas-checkerboard {
        min-width: auto;
        min-height: 200px;
        padding: 40px 24px;
    }

    .lm-preview-text {
        font-size: 42px !important;
    }

    .lm-preview-icon {
        font-size: 48px !important;
    }
}

@media (max-width: 560px) {
    .lm-sidebar-header {
        padding: 20px 16px 6px;
    }

    .lm-field-group {
        padding: 12px 16px 0;
    }

    .lm-tabs {
        padding: 14px 16px 0;
    }

    .lm-search-wrap {
        padding: 14px 16px 0;
    }

    .lm-category-chips {
        padding: 12px 16px 4px;
    }

    .lm-icon-grid {
        padding: 10px 16px;
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
        max-height: 280px;
    }

    .lm-icon-count {
        padding: 4px 16px 6px;
    }

    .lm-canvas-toolbar {
        padding: 10px 16px;
    }

    .lm-download-bar {
        padding: 16px;
        flex-direction: column;
        gap: 10px;
    }

    .lm-download-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
    }

    .lm-title-group h1 {
        font-size: 19px;
    }

    .lm-canvas-checkerboard {
        padding: 28px 16px;
    }

    .lm-preview-text {
        font-size: 32px !important;
    }

    .lm-preview-icon {
        font-size: 36px !important;
    }
}

/* ==========================================================================
   MOCKUP PREVIEWS SYSTEM
   ========================================================================== */
.lm-mockups-section {
    padding: 32px 40px;
    background: #ffffff;
    border-top: 1px solid #e8ecf1;
}

.lm-mockups-header {
    margin-bottom: 24px;
}

.lm-mockups-header h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lm-mockups-header h3 i {
    color: #0ea5e9;
}

.lm-mockups-hint {
    font-size: 13.5px;
    color: #94a3b8;
    font-weight: 500;
}

.lm-mockups-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.lm-mockup-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lm-mockup-frame {
    width: 100%;
    aspect-ratio: 1.65;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    border: 1.5px solid #e2e8f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.lm-mockup-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    border-color: #0ea5e9;
}

/* Business Card Mockup */
.lm-mockup-bcard {
    background: #ffffff;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px;
}

.lm-mockup-bcard .lm-mockup-logo {
    align-self: center;
    margin-top: 12px;
}

.lm-mockup-bcard-lines {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lm-line {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
}

.lm-line.w60 { width: 50%; }
.lm-line.w40 { width: 30%; }

/* App Icon Mockup */
.lm-mockup-appicon {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.lm-mockup-appicon .lm-mockup-logo {
    background: #ffffff;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Website Header Mockup */
.lm-mockup-webheader {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-top: 8px solid #f1f5f9;
}

.lm-mockup-nav-dots {
    display: flex;
    gap: 8px;
}

.lm-nav-dot {
    width: 24px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 2.5px;
}

/* Social Avatar Mockup */
.lm-mockup-avatar {
    background: #f1f5f9;
    flex-direction: column;
}

.lm-mockup-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.lm-mockup-avatar .lm-mockup-logo {
    position: relative;
    z-index: 2;
    background: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2.5px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
}

.lm-mockup-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
}

/* responsive */
@media (max-width: 860px) {
    .lm-mockups-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .lm-mockups-section {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .lm-mockups-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   STYLE BAR ACCORDIONS, DYNAMIC TOGGLES, AND PANELS STYLES
   ========================================================================== */

/* Collapsible Accordion Sections */
.lm-style-section {
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.25s ease;
}

.lm-section-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.lm-section-header:hover {
    background: #f8fafc;
}

.lm-section-header span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lm-section-header span i {
    font-size: 18px;
    color: #0ea5e9;
}

.lm-section-arrow {
    font-size: 14px;
    color: #64748b;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lm-section-body {
    padding: 0 0 20px 0;
    transition: all 0.25s ease;
}

/* Collapsible behavior */
.lm-style-section:not(.open) .lm-section-body {
    display: none;
}

.lm-style-section.open .lm-section-arrow {
    transform: rotate(180deg);
}

/* Dynamic Segmented Toggles (Transform & Style) */
.lm-toggle-row {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.lm-toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lm-toggle-btn:hover:not(.active) {
    color: #0f172a;
}

.lm-toggle-btn.active, 
.lm-toggle-btn[data-active="true"] {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Variant Selector Row */
.lm-icon-variant-row {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    margin: 14px 24px 8px;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for clean segmented control */
}

.lm-icon-variant-row::-webkit-scrollbar {
    display: none;
}

.lm-variant-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 7px 2px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.lm-variant-btn:hover:not(.active) {
    color: #0f172a;
}

.lm-variant-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Color Harmony Swatches */
.lm-harmony-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.lm-harmony-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.lm-harmony-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-color: #0ea5e9;
}

/* Brand Kit Panel Card */
.lm-brand-kit {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1.5px dashed #cbd5e1;
    border-radius: 14px;
    padding: 18px;
    margin: 24px 24px 8px;
}

.lm-kit-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lm-kit-title i {
    font-size: 14px;
    color: #0ea5e9;
}

.lm-kit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.lm-kit-item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}

.lm-kit-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 9.5px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.lm-kit-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
