/* ============================================================
   Logo Manager — gallery grid, upload tile, logo step layout
   ============================================================ */

/* ── Gallery grid ───────────────────────────────────────────── */
.logo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    padding: 8px 0;
    max-height: 260px;
    overflow-y: auto;
}

.logo-gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted, #6c757d);
    font-size: 0.85rem;
    padding: 16px;
}

/* ── Logo tile ──────────────────────────────────────────────── */
.logo-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    background: var(--card-bg, #1e293b);
    transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
    min-height: 88px;
    -webkit-tap-highlight-color: transparent;
}

.logo-tile:hover {
    border-color: var(--accent, #39ff14);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 255, 20, 0.2);
}

.logo-tile.selected {
    border-color: var(--accent, #39ff14);
    background: rgba(57, 255, 20, 0.08);
    box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.3);
}

.logo-tile-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 6px;
}

.logo-tile-label {
    font-size: 0.65rem;
    color: var(--text-muted, #94a3b8);
    text-align: center;
    line-height: 1.2;
    max-width: 72px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.logo-tile-check {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    background: var(--accent, #39ff14);
    color: #000;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Upload tile ────────────────────────────────────────────── */
.logo-upload-tile {
    border: 2px dashed var(--border-color, #334155);
    background: transparent;
}

.logo-upload-tile:hover {
    border-color: var(--accent, #39ff14);
    background: rgba(57, 255, 20, 0.05);
}

.logo-upload-tile.drag-over {
    border-color: var(--accent, #39ff14);
    background: rgba(57, 255, 20, 0.12);
    transform: scale(1.04);
}

.logo-upload-tile.uploading {
    cursor: not-allowed;
    opacity: 0.7;
}

.logo-upload-icon {
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-upload-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent, #39ff14);
    border-radius: 50%;
    animation: logo-spin 0.7s linear infinite;
}

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

/* ── Logo step layout (two columns) ───────────────────────────── */
.logo-step-banner {
    background: linear-gradient(135deg, #1e3a2a 0%, #1a2744 100%);
}

.logo-step-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

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

.logo-step-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logo-col-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color, #334155);
}

.logo-col-icon {
    font-size: 1.1rem;
}

.logo-gallery-container {
    flex: 1;
}

/* ============================================================
   Compact strip — used when the gallery > 5 logos
   Layout: [Upload] [Selected] [Browse all chip]
   ============================================================ */
.logo-gallery-grid.logo-compact-strip {
    grid-template-columns: repeat(3, minmax(80px, 1fr));
    max-height: none;
    overflow: visible;
}

.logo-compact-empty {
    cursor: default;
    border: 2px dashed var(--border-color, #334155);
    background: transparent;
    pointer-events: none;
    opacity: 0.7;
}
.logo-compact-empty:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color, #334155);
}
.logo-compact-empty-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #94a3b8);
    font-size: 1.6rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
}

.logo-compact-browse {
    /* Reset native button defaults so the tile inherits .logo-tile look */
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid transparent;
    font: inherit;
    color: inherit;
    text-align: center;
    background: var(--card-bg, #1e293b);
    border-color: rgba(57, 255, 20, 0.35);
    background:
        radial-gradient(circle at top left, rgba(57, 255, 20, 0.08), transparent 60%),
        var(--card-bg, #1e293b);
}
.logo-compact-browse:hover,
.logo-compact-browse:focus-visible {
    border-color: var(--accent, #39ff14);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(57, 255, 20, 0.22);
    outline: none;
}
.logo-compact-browse:active {
    transform: scale(0.97);
}
.logo-compact-browse-icon {
    color: var(--accent, #39ff14);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   Browse-all overlay dialog (stacks on top of the wizard)
   ============================================================ */
.logo-browse-modal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: min(640px, 92vw);
    max-width: 100%;
}

.logo-browse-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #334155);
    background: var(--surface-2, #0f172a);
    color: var(--text-primary, #e2e8f0);
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.logo-browse-search:focus {
    outline: none;
    border-color: var(--accent, #39ff14);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.18);
}
.logo-browse-search::placeholder {
    color: var(--text-muted, #94a3b8);
}

.logo-browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    padding: 4px 2px;
    /* Cap the height so very large galleries (clubs with hundreds of logos)
       remain scrollable inside the dialog. The viewport-relative cap keeps
       the dialog usable on small phones too. */
    max-height: min(60vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.logo-browse-grid .logo-tile.logo-tile-large {
    min-height: 124px;
    padding: 10px;
}
.logo-browse-grid .logo-tile-large .logo-tile-img {
    width: 78px;
    height: 78px;
    border-radius: 8px;
}
.logo-browse-grid .logo-tile-large .logo-tile-label {
    max-width: 96px;
    font-size: 0.74rem;
}

.logo-browse-empty {
    text-align: center;
    color: var(--text-muted, #94a3b8);
    padding: 18px;
    font-size: 0.9rem;
}

/* ============================================================
   Team Config Wizard — Logo Hero + Collapsible Gallery Panel
   ============================================================ */

.tcw-logo-section {
    margin: 12px 0 16px;
    padding: 14px 16px;
    background: var(--card-bg, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: 14px;
    transition: border-color 0.2s;
}

/* Highlight border when gallery is open */
.tcw-logo-section:has(.tcw-logo-gallery-panel.open) {
    border-color: rgba(57, 255, 20, 0.3);
}

.tcw-logo-hero-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ── Hero preview ───────────────────────────────────────────── */
.tcw-logo-hero {
    width: 86px;
    height: 86px;
    border-radius: 14px;
    border: 2px solid var(--border-color, #334155);
    background: var(--surface-2, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
    position: relative;
}

.tcw-logo-hero.has-logo {
    border-color: var(--accent, #39ff14);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.15),
                0 0 20px rgba(57, 255, 20, 0.08);
}

.tcw-logo-hero.logo-updated {
    animation: tcw-logo-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tcw-logo-pop {
    0%   { transform: scale(0.88); opacity: 0.6; }
    100% { transform: scale(1);    opacity: 1;   }
}

.tcw-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    border-radius: 12px;
}

.tcw-logo-img-animate {
    animation: tcw-fade-in 0.25s ease;
}

@keyframes tcw-fade-in {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1);   }
}

/* ── Placeholder (no logo set) ──────────────────────────────── */
.tcw-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted, #64748b);
    animation: tcw-shimmer-pulse 2.5s ease-in-out infinite;
}

.tcw-logo-placeholder svg {
    opacity: 0.45;
}

.tcw-logo-placeholder span {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@keyframes tcw-shimmer-pulse {
    0%, 100% { opacity: 0.55; }
    50%       { opacity: 1;    }
}

/* ── Actions column ─────────────────────────────────────────── */
.tcw-logo-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    flex: 1;
}

/* Row that holds the change + remove buttons side-by-side */
.tcw-logo-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* ── Remove Logo button (shown only when a logo is set) ───── */
.tcw-logo-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: transparent;
    border: 1px solid rgba(220, 53, 69, 0.45);
    border-radius: 20px;
    color: var(--color-danger, #dc3545);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.tcw-logo-remove-btn:hover {
    border-color: var(--color-danger, #dc3545);
    background: rgba(220, 53, 69, 0.12);
}

.tcw-logo-remove-btn:active {
    transform: scale(0.97);
}

.tcw-logo-remove-btn svg {
    flex-shrink: 0;
}

/* On narrow rows the label collapses to icon-only */
@media (max-width: 420px) {
    .tcw-logo-remove-btn .tcw-logo-remove-label {
        display: none;
    }
    .tcw-logo-remove-btn {
        padding: 7px 10px;
    }
}

/* ── Change Logo button ─────────────────────────────────────── */
.tcw-logo-change-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: transparent;
    border: 1px solid var(--border-color, #334155);
    border-radius: 20px;
    color: var(--text-primary, #e2e8f0);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.tcw-logo-change-btn:hover {
    border-color: var(--accent, #39ff14);
    background: rgba(57, 255, 20, 0.06);
    color: var(--accent, #39ff14);
}

.tcw-arrow {
    font-size: 0.65rem;
    margin-left: 2px;
    transition: transform 0.2s;
    display: inline-block;
}

/* ── "Logo set" badge ───────────────────────────────────────── */
.tcw-logo-set-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--accent, #39ff14);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ── Gallery panel (collapsed → open) ──────────────────────── */
.tcw-logo-gallery-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                opacity     0.2s  ease,
                margin-top  0.2s  ease;
}

.tcw-logo-gallery-panel.open {
    max-height: 320px;
    opacity: 1;
    margin-top: 14px;
}

.tcw-logo-gallery-inner {
    border-top: 1px solid var(--border-color, #334155);
    padding-top: 12px;
}

/* ============================================================
   Logo Import Wizard — multi-step wizard with wow effects
   ============================================================ */

/* Brand neon-green accent that pulses on the dropzone hover/drag.
   Defined locally so the wizard remains visually consistent even when
   the page theme overrides --primary. */
:root {
    --logo-wiz-neon: #39ff14;
    --logo-wiz-neon-soft: rgba(57, 255, 20, 0.18);
    --logo-wiz-neon-glow: rgba(57, 255, 20, 0.55);
}

.logo-wiz-step {
    padding: 4px 6px 24px;
    animation: logoWizFadeUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo-wiz-intro {
    color: var(--text-muted, #6b7280);
    font-size: 0.95rem;
    margin: 0 0 18px;
    line-height: 1.45;
}

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

/* ── Step 1: dropzone ─────────────────────────────────────── */
.logo-wiz-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    border: 2px dashed var(--border-color, #cbd5e1);
    border-radius: 14px;
    background: linear-gradient(135deg,
        rgba(56, 189, 248, 0.04) 0%,
        rgba(99, 102, 241, 0.04) 100%);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.logo-wiz-dropzone:hover,
.logo-wiz-dropzone:focus-visible {
    border-color: var(--logo-wiz-neon);
    background: var(--logo-wiz-neon-soft);
    box-shadow: 0 0 0 6px rgba(57, 255, 20, 0.08), 0 0 24px var(--logo-wiz-neon-glow);
    outline: none;
}
.logo-wiz-dropzone.drag-over {
    border-color: var(--logo-wiz-neon);
    background: var(--logo-wiz-neon-soft);
    transform: scale(1.01);
    box-shadow: 0 0 0 8px rgba(57, 255, 20, 0.14), 0 0 36px var(--logo-wiz-neon-glow);
}
.logo-wiz-dropzone.has-file {
    border-style: solid;
    border-color: var(--border-color, #e2e8f0);
    background: var(--card-bg, #fff);
    cursor: default;
    min-height: 320px;
}

.logo-wiz-dropzone-content {
    text-align: center;
    padding: 24px 16px;
    pointer-events: none;
}
.logo-wiz-dropzone-icon {
    color: var(--text-muted, #94a3b8);
    margin-bottom: 12px;
    transition: color 0.18s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.logo-wiz-dropzone:hover .logo-wiz-dropzone-icon,
.logo-wiz-dropzone.drag-over .logo-wiz-dropzone-icon {
    color: var(--logo-wiz-neon);
    transform: translateY(-4px);
}
.logo-wiz-dropzone-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--text-primary, #1e293b);
}
.logo-wiz-dropzone-hint {
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
    margin: 0 0 4px;
}
.logo-wiz-dropzone-formats {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    margin: 4px 0 0;
    letter-spacing: 0.04em;
}

.logo-wiz-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px;
    width: 100%;
}
.logo-wiz-preview-img {
    max-width: min(360px, 100%);
    max-height: 240px;
    object-fit: contain;
    border-radius: 10px;
    background:
        repeating-conic-gradient(#f3f4f6 0% 25%, #e5e7eb 0% 50%) 50% / 18px 18px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
    animation: logoWizPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes logoWizPop {
    0%   { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}
.logo-wiz-file-info {
    font-size: 0.82rem;
    color: var(--text-muted, #64748b);
    text-align: center;
    word-break: break-all;
}
.logo-wiz-replace-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-color, #cbd5e1);
    background: var(--card-bg, #fff);
    color: var(--text-primary, #1e293b);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.logo-wiz-replace-btn:hover {
    border-color: var(--logo-wiz-neon);
    background: var(--logo-wiz-neon-soft);
}

/* ── Step 2: option toggles ───────────────────────────────── */
.logo-wiz-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin: 10px 0;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--card-bg, #fff);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.18s, transform 0.12s;
}
.logo-wiz-option:hover {
    border-color: var(--logo-wiz-neon);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}
.logo-wiz-option-icon {
    font-size: 1.7rem;
    line-height: 1;
}
.logo-wiz-option-text { flex: 1 1 auto; min-width: 0; }
.logo-wiz-option-title {
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    font-size: 0.96rem;
    margin-bottom: 2px;
}
.logo-wiz-option-desc {
    font-size: 0.84rem;
    color: var(--text-muted, #64748b);
    line-height: 1.4;
}

.logo-wiz-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex: 0 0 48px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.18s;
}
.logo-wiz-toggle.on {
    background: var(--logo-wiz-neon);
    box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.18);
}
.logo-wiz-toggle input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.logo-wiz-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.logo-wiz-toggle.on .logo-wiz-toggle-knob { transform: translateX(20px); }

.logo-wiz-hint {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.86rem;
}
.logo-wiz-hint-info {
    background: rgba(56, 189, 248, 0.08);
    color: var(--text-muted, #475569);
}

/* ── Step 3: before / after compare ───────────────────────── */
.logo-wiz-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: stretch;
    margin: 12px 0 18px;
}
.logo-wiz-compare-side { display: flex; flex-direction: column; gap: 8px; }
.logo-wiz-compare-label {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.logo-wiz-compare-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background:
        repeating-conic-gradient(#f3f4f6 0% 25%, #e5e7eb 0% 50%) 50% / 16px 16px;
    box-shadow: inset 0 0 0 1px var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-wiz-compare-frame img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
}
.logo-wiz-compare-after.is-loading {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
.logo-wiz-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
        transparent 0%,
        rgba(57, 255, 20, 0.12) 30%,
        rgba(57, 255, 20, 0.22) 50%,
        rgba(57, 255, 20, 0.12) 70%,
        transparent 100%);
    background-size: 220% 100%;
    animation: logoWizShimmer 1.4s linear infinite;
}
@keyframes logoWizShimmer {
    0%   { background-position: 220% 0; }
    100% { background-position: -120% 0; }
}
.logo-wiz-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(57, 255, 20, 0.25);
    border-top-color: var(--logo-wiz-neon);
    animation: logoWizSpin 0.7s linear infinite;
    z-index: 1;
}
@keyframes logoWizSpin {
    to { transform: rotate(360deg); }
}
.logo-wiz-placeholder {
    color: var(--text-muted, #94a3b8);
    font-size: 1.4rem;
}
.logo-wiz-error {
    padding: 12px 14px;
    color: #b91c1c;
    background: #fef2f2;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.4;
}
.logo-wiz-compare-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--logo-wiz-neon);
    align-self: center;
    animation: logoWizArrowPulse 2s ease-in-out infinite;
}
@keyframes logoWizArrowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50%      { transform: translateX(4px); opacity: 1; }
}

@media (max-width: 540px) {
    .logo-wiz-compare {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .logo-wiz-compare-arrow { transform: rotate(90deg); }
}

/* ── Step 4: team-name input ─────────────────────────────── */
.logo-wiz-name-wrapper {
    position: relative;
    margin: 8px 0 6px;
}
.logo-wiz-name-input {
    padding-right: 44px;
    height: 56px;
    font-size: 1.05rem;
    border-radius: 12px;
    border: 2px solid var(--border-color, #e2e8f0);
    transition: border-color 0.15s, box-shadow 0.18s, background 0.15s;
}
.logo-wiz-name-input.is-valid {
    border-color: var(--logo-wiz-neon);
    box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.18);
}
.logo-wiz-name-input.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}
.logo-wiz-name-input:focus {
    outline: none;
}
.logo-wiz-name-status {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}
.logo-wiz-name-ok { color: var(--logo-wiz-neon); }
.logo-wiz-name-bad { color: #ef4444; }

.logo-wiz-name-feedback {
    min-height: 20px;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 4px 2px 0;
}
.logo-wiz-name-msg-ok { color: #15803d; }
.logo-wiz-name-msg-bad { color: #b91c1c; }
.logo-wiz-name-msg-hint { color: var(--text-muted, #6b7280); }

/* ── Step 5: confirm summary ──────────────────────────────── */
.logo-wiz-summary-card {
    display: flex;
    gap: 18px;
    padding: 18px;
    border-radius: 14px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
    align-items: center;
    transition: opacity 0.2s;
}
.logo-wiz-summary-card.is-saving { opacity: 0.6; }

.logo-wiz-summary-preview {
    flex: 0 0 132px;
    width: 132px;
    height: 132px;
    border-radius: 12px;
    background:
        repeating-conic-gradient(#f3f4f6 0% 25%, #e5e7eb 0% 50%) 50% / 14px 14px;
    box-shadow: inset 0 0 0 1px var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.logo-wiz-summary-preview img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.logo-wiz-summary-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.logo-wiz-summary-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    font-size: 0.92rem;
    align-items: baseline;
}
.logo-wiz-summary-key {
    color: var(--text-muted, #64748b);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.logo-wiz-summary-val {
    color: var(--text-primary, #1e293b);
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.logo-wiz-saving {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: var(--text-muted, #64748b);
}

@media (max-width: 540px) {
    .logo-wiz-summary-card { flex-direction: column; align-items: stretch; }
    .logo-wiz-summary-preview { align-self: center; }
    .logo-wiz-summary-row { grid-template-columns: 100px 1fr; }
}
