/* Modern professional, responsive and bold styles for Brand Vault */


* {
    box-sizing: border-box
}


#brandster {
    --bg: #050816;
    --card: rgba(13, 20, 44, 0.96);
    --muted: #a5b4fc;
    --accent: #7c3aed;
    /* vibrant violet */
    --accent-600: #5b21b6;
    --success: #efd406;
        --successLight: #61f2bd;

    --danger: #f97316;
    --shadow: 0 16px 48px rgba(12, 18, 49, 0.35);
    --radius: 0.85rem;
    --container-width: 1220px;
    --gap: 1.4rem;
    --transition: 220ms ease;
    --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    font-family: var(--font-sans);
    margin: 0;
    background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 24%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 25%),
                var(--bg);
    color: #eef2ff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
}

/* Layout */
#brandster {
    max-width:100%;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(7, 12, 29, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    padding: 0;
    border-radius: 0;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);

}


.logo-placeholder {
    width: 2rem;
    height: 2rem;
    border-radius: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 18px;
    border: 1px solid #fff;
    flex-shrink: 0;
}

h1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    /* bold */
    color: #fff;
}

.subtitle {
    margin: 4px 0 0 0;
    font-size: 0.95rem;
    color: var(--muted);
}

/* Upload area */
#uploadArea {
    max-width: var(--container-width);
    margin: 0 auto;
}

.upload-area {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border-radius: calc(var(--radius) * 1.3);
    border: 1px solid rgba(124, 58, 237, 0.24);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 50px rgba(15,23,42,0.16);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: left;
    align-items: baseline;
}

.upload-area:hover {
    outline: 3px solid rgba(15, 23, 42, 0.06);
    outline-offset: 1px;
}

.upload-left {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.upload-left img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.upload-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Improved file input "Choose file" button (modern + WebKit fallback) */
.file-input input[type="file"] {
    display: inline-block;
    cursor: pointer;
    color: inherit;
    background: transparent;
    border: none;
    padding: 0;
}

/* Standard modern browsers */
.file-input input[type="file"]::file-selector-button {
    padding: 10px 14px;
    margin-right: 8px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(180deg, var(--accent), var(--accent-600));
    color: white;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.05);
    transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}

/* WebKit legacy */
.file-input input[type="file"]::-webkit-file-upload-button {
    padding: 10px 14px;
    margin-right: 8px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(180deg, var(--accent), var(--accent-600));
    color: white;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.05);
    transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}

.file-input input[type="file"]::file-selector-button:hover,
.file-input input[type="file"]::-webkit-file-upload-button:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.06);
}

.file-input input[type="file"]:focus-visible::file-selector-button,
.file-input input[type="file"]:focus-visible::-webkit-file-upload-button {
    outline: 3px solid rgba(37, 99, 235, 0.12);
    outline-offset: 2px;
}

/* Ensure small screens remain usable */
@media (max-width:640px) {

    .file-input input[type="file"]::file-selector-button,
    .file-input input[type="file"]::-webkit-file-upload-button {
        padding: 8px 12px;
        margin-right: 6px;
    }
}

.instructions {
    font-size: 0.95rem;
    color: var(--muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus {
    outline: 3px solid rgba(37, 99, 235, 0.12);
}

.btn-primary {
    background:  var(--success);
    color: #000;

    height: 48px;
width: 120px;
text-align: center;
justify-content: center;
}

.btn-primary:hover {
    filter: brightness(1.02);
}

.btn-ghost {
    background: transparent;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Results */
.results-container {
    background: var(--card);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.overall {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.overall .metrics {
    display: flex;
    gap: 12px;
    align-items: center;
}

.metric {
    text-align: center;
}

.metric .count {
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
}

.metric .label {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Progress bar */
.progress {
    height: 12px;
    background: #eef2f7;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    width: 0%;
    transition: width 400ms ease;
}

/* Palette display */
.palette {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 6px;
}

.color-box {
    width: 120px;
    height: 120px;
    margin: 0;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
    font-size: 12px;
    color: #000;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(2, 6, 23, 0.09);
    position: relative;
    flex-direction: row;
    overflow: hidden;
}

.color-box__picker {
    display: none;
}

.color-box__hex,
.colorBoxInfo {
    width: 100%;
    background-color: white;
    display: flex;
    padding: 0.3rem 0.2rem;
    justify-content: space-between;
    align-items: center;
}

.colorBoxInfo .color-box .hex {
    background: rgba(0, 0, 0, 0.18);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
}

/* Small screens */
@media (max-width:640px) {
    body {
        padding: 18px 12px;
    }

    .container {
        padding: 18px;
        margin: 12px auto;
    }

    .header {
        gap: 10px;
    }

    .logo-placeholder {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    h1 {
        font-size: 1.125rem;
    }

    .upload-area {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .upload-left {
        flex: 0 0 auto;
        order: 0;
    }

    .upload-right {
        order: 1;
    }

    .file-input {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .color-box {
        width: 52px;
        height: 52px;
        font-size: 12px;
    }

    .progress {
        height: 10px;
    }
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    margin: 14px 0;
    padding-bottom: 8px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 700;
    color: var(--muted);
    transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.tab-btn:hover,
.tab-btn:focus {
    color: var(--accent-600);
    outline: none;
}

.tab-btn.active {
    color: var(--accent-600);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.02));
    box-shadow: none;
    border-bottom: 2px solid var(--accent-600);
}



.tab-panel.active {
    display: block;
}

/* Utility */
.hidden {
    display: none;
}

.small {
    font-size: 0.85rem;
    color: var(--muted);
}

.center {
    text-align: center;
}

#brandLogoPreview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem
}

#brandColors .brandColorsElement {
    width: 120px;
    height: 120px;
}


.logoUsageRender {
    display: flex;
}

.logoUsageRender .usageLight {
    background-color: white;
    width: 100%;
    display: flex;
    padding: 10%
}

.logoUsageRender .usageDark {
    background-color: black;
    width: 100%;
    display: flex;
    padding: 10%
}

.logoUsageRender img {
    max-width: 350px !important;
    margin: 0 auto !important;
}

.logoUsageRender .logoUsageRenderColumn {
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
}

/* ─── Email Template panel ──────────────────────────────────────────────────── */

.et-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    align-items: start;
    min-height: 520px;
}

@media (max-width: 800px) {
    .et-wrap {
        grid-template-columns: 1fr;
    }
}

.et-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius);
    padding: 22px 20px;
}

.et-heading {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.et-sub {
    margin: -8px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

.et-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.et-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.et-input {
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-size: 0.9rem;
    font-family: inherit;
    color: #111827;
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}

.et-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.et-gen-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 12px;
}

.et-copy-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.et-copy-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
}

.et-hint {
    margin: 0;
    line-height: 1.5;
}

/* ─── Moved from inline JS in app.js ────────────────────────────────────────── */

.color-box__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    color: #111;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background var(--transition);
}

.color-box__remove:hover {
    background: rgba(255, 255, 255, 0.95);
}

.brandColorsElement__label {
    font-size: 11px;
    color: #000;
    padding: 2px 4px;
}

/* ─── Email Template panel ──────────────────────────────────────────────────── */

.et-wrap {
    display: grid;
    grid-template-columns: 272px 1fr;
    gap: 0;
    align-items: start;
}

@media (max-width: 800px) {
    .et-wrap {
        grid-template-columns: 1fr;
    }
}

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */

.et-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: var(--radius);
    padding: 20px 18px;
    position: sticky;
    top: 20px;
}

.et-heading {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.et-sub {
    margin: -6px 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}

.et-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.et-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.et-input {
    padding: 8px 11px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-size: 0.88rem;
    font-family: inherit;
    color: #111827;
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}

.et-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.et-gen-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 11px;
}

.et-divider {
    height: 1px;
    background: rgba(15, 23, 42, 0.06);
    margin: 2px 0;
}

.et-copy-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.et-copy-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.83rem;
}

.et-hint {
    margin: 0;
    line-height: 1.5;
    color: var(--muted);
}

/* ── Preview area shell ──────────────────────────────────────────────────────── */

.et-preview-area {
    background: #f3f4f6;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: var(--radius);
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0;
}

/* ── State panels ────────────────────────────────────────────────────────────── */

.et-empty {
    text-align: center;
    padding: 48px 28px;
    color: var(--muted);
}

.et-empty-icon {
    font-size: 52px;
    margin-bottom: 18px;
    opacity: 0.2;
}

.et-empty p {
    margin: 0 0 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.et-loading {
    text-align: center;
    padding: 48px 28px;
    color: var(--muted);
}

.et-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(37, 99, 235, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: et-spin 0.65s linear infinite;
    margin: 0 auto 16px;
}

@keyframes et-spin {
    to {
        transform: rotate(360deg);
    }
}

.et-error {
    text-align: center;
    padding: 48px 28px;
}

.et-error-icon {
    font-size: 34px;
    margin-bottom: 10px;
    color: var(--danger);
}

.et-error-msg {
    font-size: 0.88rem;
    color: #374151;
    margin-bottom: 14px;
}

/* ── Live editable email preview ─────────────────────────────────────────────── */

.et-preview-container {
    width: 100%;
    padding: 24px 20px;
}

.et-email-shell {
    max-width: 600px;
    margin: 0 auto;
}

.et-email-shell .et-email-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
}

.et-email-header img,
.et-email-header span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    max-height: 56px;
}

.et-email-hero {
    padding: 42px 40px 34px;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
}

.et-email-hero h1 {
    margin: 0;
    font-size: clamp(2.1rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.et-email-body {
    padding: 32px 40px 36px;
}

.et-email-body p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
}

.et-cta-btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
    cursor: pointer;
}

.et-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.14);
}

.et-email-footer {
    background: #f8fafc;
    padding: 24px 40px;
}

/* Subject / preheader meta bar (above the visual card) */
.et-meta-bar {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px 10px 0 0;
    border-bottom: none;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.et-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.et-meta-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    width: 68px;
    flex-shrink: 0;
}

.et-meta-input {
    flex: 1;
    border: none;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.12);
    padding: 3px 2px;
    font-size: 0.88rem;
    font-family: inherit;
    color: #111827;
    background: transparent;
    transition: border-color var(--transition);
    outline: none;
}

.et-meta-input:focus {
    border-bottom-color: var(--accent);
}

/* The card */
.et-email-card {
    background: #fff;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.09);
}

/* Editable region base styles */
.et-editable {
    position: relative;
    transition: outline var(--transition), background var(--transition);
    border-radius: 4px;
    outline: 2px solid transparent;
    outline-offset: 3px;
    cursor: text;
}

.et-editable:hover {
    outline-color: rgba(37, 99, 235, 0.25);
}

.et-editable:focus,
.et-editable.is-focused {
    outline-color: rgba(37, 99, 235, 0.55);
    outline-style: solid;
}

/* Placeholder when empty */
.et-editable:empty::before {
    content: attr(data-placeholder);
    opacity: 0.35;
    pointer-events: none;
    font-style: italic;
}

/* Body section */
.et-email-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* CTA button */
.et-cta-btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    letter-spacing: 0.01em;
    cursor: text;
    min-width: 80px;
    text-align: center;
}

/* Footer */
.et-email-footer {
    background: #f9fafb;
    padding: 20px 40px;
    border-top: 1px solid #e5e7eb;
}

.et-email-footer a {
    text-decoration: none;
}

.et-email-footer a:hover {
    text-decoration: underline;
}

/* Edit hint tooltip shown above a focused editable */
.et-editable::after {
    content: 'Click to edit';
    position: absolute;
    top: -26px;
    left: 0;
    background: #0f172a;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 160ms ease, transform 160ms ease;
    font-family: var(--font-sans);
    font-style: normal;
    text-transform: uppercase;
}

.et-editable:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.et-editable:focus::after,
.et-editable.is-focused::after {
    content: 'Editing';
    opacity: 1;
    transform: translateY(0);
    background: var(--accent);
}

/* ── Classes moved from inline JS in app.js ──────────────────────────────────── */

.color-box__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    color: #111;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background var(--transition);
}

.color-box__remove:hover {
    background: rgba(255, 255, 255, 0.95);
}




.wt-wrap {
    display: grid;
    grid-template-columns: 272px 1fr;
    gap: 24px;
    align-items: start;
}

@media(max-width:860px) {
    .wt-wrap {
        grid-template-columns: 1fr;
    }
}

.wt-sidebar {
    display: flex;
    flex-direction: column;
    gap: 11px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: var(--radius);
    padding: 20px 18px;
    position: sticky;
    top: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.wt-preview-area {
    background: #f0f2f5;
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: var(--radius);
    min-height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 20px;
    gap: 14px;
    overflow: auto;
}

.wt-heading {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.wt-sub {
    margin: 0;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.5;
}

.wt-section-label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}

.wt-divider {
    height: 1px;
    background: rgba(15, 23, 42, .06);
    margin: 2px 0;
}

.wt-format-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wt-format-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, .09);
    background: #fff;
    cursor: pointer;
    transition: all .15s;
    text-align: left;
}

.wt-format-btn:hover {
    border-color: var(--accent);
    background: rgba(37, 99, 235, .04);
}

.wt-format-btn.active {
    border-color: var(--accent);
    background: rgba(37, 99, 235, .07);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}

.wt-format-icon {
    font-size: 15px;
    flex-shrink: 0;
}

.wt-format-name {
    font-size: .8rem;
    font-weight: 600;
    color: #111827;
    flex: 1;
}

.wt-format-size {
    font-size: .7rem;
    color: var(--muted);
}

.wt-tpl-grid {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.wt-tpl-btn {
    padding: 5px 10px;
    border-radius: 7px;
    border: 1px solid rgba(15, 23, 42, .09);
    background: #fff;
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
}

.wt-tpl-btn:hover {
    color: var(--accent-600);
}

.wt-tpl-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.wt-bg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.wt-bg-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 3px;
    border-radius: 7px;
    border: 1px solid rgba(15, 23, 42, .09);
    background: #fff;
    cursor: pointer;
    transition: all .15s;
}

.wt-bg-btn:hover {
    border-color: var(--accent);
}

.wt-bg-btn.active {
    border-color: var(--accent);
    background: rgba(37, 99, 235, .07);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}

.wt-bg-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #1e4fd8);
}

.wt-bg-thumb svg {
    width: 100%;
    height: 100%;
}

.wt-bg-label {
    font-size: .6rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.wt-bg-btn.active .wt-bg-label {
    color: var(--accent);
}

.wt-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wt-label {
    font-size: .7rem;
    font-weight: 700;
    color: #374151;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wt-input {
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, .1);
    font-size: .86rem;
    font-family: inherit;
    color: #111827;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}

.wt-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.wt-textarea {
    resize: vertical;
    min-height: 60px;
}

.wt-gen-btn {
    width: 100%;
    justify-content: center;
    font-size: .86rem;
    padding: 10px;
}

#wt-ai-btn.loading {
    opacity: .6;
    pointer-events: none;
}

.wt-download-btn {
    width: 100%;
    justify-content: center;
    font-size: .88rem;
    padding: 11px;
    background: linear-gradient(180deg, #10b981, #059669);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all .15s;
    box-shadow: 0 3px 10px rgba(16, 185, 129, .2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wt-download-btn:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}

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

.wt-hint {
    margin: 0;
    font-size: .76rem;
    color: var(--muted);
    line-height: 1.5;
}

.wt-post-frame-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wt-post-frame {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .16);
}

.wt-layer {
    position: absolute;
    inset: 0;
}

.wt-bg-layer {
    z-index: 0;
}

.wt-bg-graphic {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.wt-bg-graphic svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wt-content-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    justify-content: center;
}

.wt-content-center {
    align-items: center;
    justify-content: center;
}

.wt-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.wt-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7%;
    z-index: 1;
}

.wt-accent-bar {
    position: absolute;
    top: 20%;
    left: 0;
    width: .7%;
    height: 60%;
    z-index: 1;
    border-radius: 0 2px 2px 0;
}

.wt-logo-area {
    flex-shrink: 0;
    font-size: 1rem;
    position: absolute;
    top: 2rem;

}

.wt-logo-area img.wt-preview-logo {
    max-height: 2rem;
    width: auto;
}

.wt-logo-area .wt-preview-logo-text {
    font-weight: 800;
    font-size: 4%;
    opacity: .9;
}

.wt-logo-center {
    display: flex;
    justify-content: center;
}

.wt-text-area {
    display: flex;
    flex-direction: column;
    gap: 1%;
    justify-content: center;
    padding: 1% 0;
}

.wt-text-center {
    align-items: center;
    text-align: center;
}

.wt-brand-area {
    flex-shrink: 0;
    text-align: right;
}

.wt-brand-center {
    text-align: center;
    margin-top: 3%;
}

.wt-glass-card {
    border-radius: 3%;
    padding: 8%;
    width: 88%;
    display: flex;
    flex-direction: column;
    gap: 4%;
}

.wt-clean-divider {
    height: 3px;
    width: 8%;
    border-radius: 2px;
    flex-shrink: 0;
}

.wt-minimal-rule {
    height: 3px;
    width: 6%;
    border-radius: 2px;
    flex-shrink: 0;
    margin: 2% 0;
}

.wt-editable {
    outline: 2px solid transparent;
    border-radius: 4px;
    cursor: text;
    transition: outline .15s;
    outline-offset: 3px;
    position: relative;
}

.wt-editable:hover {
    outline-color: rgba(37, 99, 235, .3);
}

.wt-editable.is-focused {
    outline-color: rgba(37, 99, 235, .6);
    outline-style: solid;
}

.wt-editable:empty::before {
    content: attr(data-placeholder);
    opacity: .35;
    pointer-events: none;
    font-style: italic;
}

.wt-editable::after {
    content: 'click to edit';
    position: absolute;
    top: -22px;
    left: 0;
    background: #0f172a;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .15s, transform .15s;
    font-family: var(--font-sans);
    font-style: normal;
    text-transform: uppercase;
    z-index: 10;
}

.wt-editable:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.wt-editable.is-focused::after {
    content: 'editing';
    opacity: 1;
    transform: translateY(0);
    background: var(--accent);
}

.wt-headline {
    font-size: .9em;
    font-weight: 800;
    line-height: 1.2;
}

.wt-headline-light {
    font-weight: 300;
}

.wt-body {
    font-size: .36em;
    line-height: 1.6;
}

.wt-cta {
    font-size: .38em;
    font-weight: 700;
    display: inline-block;
    padding: .5em 1.4em;
    border-radius: .4em;
    cursor: text;
}

.wt-cta-filled {
    color: #fff;
}

.wt-cta-text {
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.wt-brand {
    font-size: .3em;
    font-weight: 600;
}

.wt-format-info {
    font-size: .78rem;
    color: var(--muted);
    text-align: center;
}

.wt-edit-hint {
    font-size: .76rem;
    color: var(--accent);
    background: rgba(37, 99, 235, .07);
    border-radius: 6px;
    padding: 5px 10px;
    text-align: center;
}

.et-settings-bar{
    width: 100%;
}

.et-export-actions{
    flex-basis: 100%!important;
}

#brandGuide, .tab-panel .et-preview-area{
    padding: 0 2rem;
    width: 100%
} .et-campaign-btn:hover  { border-color:#9ca3af;background:#f9fafb; }
  .et-campaign-btn.active { background:#2563eb;color:#fff;border-color:#2563eb; }

  .et-style-btn:hover  { border-color:#9ca3af;background:#f9fafb; }
  .et-style-btn.active { background:#2563eb;color:#fff;border-color:#2563eb; }
.et-campaign-btn, .et-style-btn {
padding: 6px 12px;
border: 1px solid #d1d5db;
background: #fff;
border-radius: 6px;
cursor: pointer;
transition: all .2s;
font-size: 12px;
font-weight: 500;
    color:#000

}

.et-campaign-btn:hover, .et-style-btn:hover{
    border-width: 1px;
}
.et-style-btn.active:hover{
    color:#000!important
}