/* Favicon Generator — professional dashboard UI */
.tool-widget:has(.fvg-app) {
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.fvg-app {
    --fvg-accent: #00aeef;
    --fvg-accent-2: #38bdf8;
    --fvg-ok: #34d399;
    --fvg-card: rgba(15, 23, 42, 0.82);
    --fvg-border: rgba(148, 163, 184, 0.16);
    --fvg-muted: #94a3b8;
    width: 100%;
}

.fvg-app [hidden] {
    display: none !important;
}

.fvg-shell {
    border: 1px solid var(--fvg-border);
    border-radius: 20px;
    background:
        radial-gradient(ellipse 70% 45% at 0% 0%, rgba(0, 174, 239, .14), transparent 50%),
        radial-gradient(ellipse 50% 35% at 100% 0%, rgba(167, 139, 250, .08), transparent 45%),
        linear-gradient(180deg, #111827 0%, #0b1220 100%);
    padding: 1.15rem 1.2rem 1.35rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

.fvg-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .95rem;
}

.fvg-trust-item {
    padding: .35rem .7rem;
    border-radius: 999px;
    border: 1px solid var(--fvg-border);
    background: rgba(2, 8, 20, .45);
    font-size: .72rem;
    font-weight: 700;
    color: #e2e8f0;
}

.fvg-workspace {
    width: 100%;
    min-width: 0;
}

.fvg-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(240px, .85fr);
    gap: .85rem;
    align-items: start;
    margin-bottom: .9rem;
}

.fvg-col {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    min-width: 0;
}

.fvg-card {
    border: 1px solid var(--fvg-border);
    border-radius: 16px;
    background: var(--fvg-card);
    padding: .9rem 1rem 1.05rem;
}

.fvg-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .75rem;
}

.fvg-card-head h3 {
    margin: 0;
    font-size: .95rem;
    color: #f1f5f9;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.fvg-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(0, 174, 239, .2);
    border: 1px solid rgba(0, 174, 239, .4);
    color: var(--fvg-accent-2);
    font-size: .72rem;
    font-weight: 800;
}

.fvg-source-tabs,
.fvg-device-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .75rem;
}

.fvg-tab,
.fvg-device {
    appearance: none;
    border: 1px solid var(--fvg-border);
    background: rgba(2, 8, 20, .4);
    color: #cbd5e1;
    border-radius: 999px;
    padding: .4rem .75rem;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
}

.fvg-tab.active,
.fvg-device.active {
    background: linear-gradient(135deg, rgba(0, 174, 239, .4), rgba(56, 189, 248, .2));
    border-color: rgba(0, 174, 239, .55);
    color: #fff;
}

.fvg-drop {
    border: 1px dashed var(--fvg-border);
    border-radius: 14px;
    padding: 1.2rem 1rem;
    text-align: center;
    background: rgba(2, 8, 20, .35);
}

.fvg-drop.is-drag {
    border-color: rgba(0, 174, 239, .55);
    background: rgba(0, 174, 239, .08);
}

.fvg-drop-title {
    margin: 0 0 .35rem;
    color: #e2e8f0;
    font-size: .88rem;
    font-weight: 700;
}

.fvg-drop-hint,
.fvg-hint,
.fvg-note {
    margin: 0;
    color: var(--fvg-muted);
    font-size: .78rem;
    line-height: 1.45;
}

.fvg-note {
    margin-top: .75rem;
}

.fvg-link-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--fvg-accent-2);
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.fvg-link-btn:hover {
    color: #fff;
    text-decoration: underline;
}

.fvg-source-preview {
    margin-top: .75rem;
    display: grid;
    place-items: center;
    min-height: 96px;
    border-radius: 12px;
    border: 1px solid var(--fvg-border);
    background: rgba(2, 8, 20, .4);
    overflow: hidden;
}

.fvg-source-preview img {
    max-width: 96px;
    max-height: 96px;
    object-fit: contain;
}

.fvg-label {
    display: block;
    margin: .55rem 0 .35rem;
    font-size: .8rem;
    font-weight: 700;
    color: #cbd5e1;
}

.fvg-input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid var(--fvg-border);
    background: rgba(2, 8, 20, .55);
    color: #e2e8f0;
    font-size: .88rem;
    padding: .65rem .75rem;
}

.fvg-input:focus {
    outline: none;
    border-color: rgba(0, 174, 239, .55);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, .15);
}

.fvg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}

.fvg-color-wrap {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: .4rem;
    align-items: center;
}

.fvg-color-wrap input[type="color"] {
    width: 100%;
    height: 2.5rem;
    padding: .15rem;
    border-radius: 10px;
    border: 1px solid var(--fvg-border);
    background: rgba(2, 8, 20, .55);
    cursor: pointer;
}

.fvg-field {
    margin-top: .75rem;
}

.fvg-shapes {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.fvg-shape {
    appearance: none;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    border: 1px solid var(--fvg-border);
    background: rgba(2, 8, 20, .45);
    color: #e2e8f0;
    cursor: pointer;
    font-size: 1rem;
}

.fvg-shape.active {
    border-color: rgba(0, 174, 239, .55);
    background: rgba(0, 174, 239, .2);
}

.fvg-range {
    width: 100%;
    accent-color: var(--fvg-accent);
}

.fvg-check {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-top: .75rem;
    color: #cbd5e1;
    font-size: .82rem;
    cursor: pointer;
}

.fvg-icons {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .4rem;
}

.fvg-icon-btn {
    appearance: none;
    aspect-ratio: 1;
    border-radius: 10px;
    border: 1px solid var(--fvg-border);
    background: rgba(2, 8, 20, .45);
    color: #e2e8f0;
    cursor: pointer;
    font-size: 1.15rem;
}

.fvg-icon-btn.active {
    border-color: rgba(0, 174, 239, .55);
    background: rgba(0, 174, 239, .2);
}

.fvg-sizes,
.fvg-grid-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.fvg-size {
    text-align: center;
}

.fvg-size canvas {
    display: block;
    border: 1px solid var(--fvg-border);
    border-radius: 8px;
    background: #fff;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.fvg-size span {
    display: block;
    margin-top: .25rem;
    font-size: .7rem;
    color: var(--fvg-muted);
}

.fvg-browser {
    border: 1px solid var(--fvg-border);
    border-radius: 12px;
    overflow: hidden;
    background: #0b1220;
}

.fvg-browser-bar {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .7rem;
    background: rgba(2, 8, 20, .7);
    border-bottom: 1px solid var(--fvg-border);
}

.fvg-browser-dots {
    width: 2.4rem;
    height: .55rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #f87171 0 28%, #fbbf24 36% 64%, #34d399 72% 100%);
}

.fvg-browser-url {
    flex: 1;
    border-radius: 999px;
    background: rgba(15, 23, 42, .9);
    border: 1px solid var(--fvg-border);
    color: var(--fvg-muted);
    font-size: .72rem;
    padding: .35rem .7rem;
}

.fvg-browser-tabs {
    padding: .7rem;
}

.fvg-browser-tab {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .7rem;
    border-radius: 10px 10px 0 0;
    background: rgba(15, 23, 42, .9);
    border: 1px solid var(--fvg-border);
    color: #e2e8f0;
    font-size: .82rem;
}

.fvg-browser-tab canvas {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.fvg-ios,
.fvg-android {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: 1rem;
}

.fvg-ios canvas {
    border-radius: 22%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

.fvg-android canvas {
    border-radius: 18%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

.fvg-ios span,
.fvg-android span {
    color: #cbd5e1;
    font-size: .82rem;
}

.fvg-dl-main,
.fvg-dl-alt {
    width: 100%;
    margin-bottom: .45rem;
}

.fvg-include h4 {
    margin: .75rem 0 .45rem;
    font-size: .82rem;
    color: #e2e8f0;
}

.fvg-include ul,
.fvg-why-list {
    margin: 0;
    padding: 0 0 0 1.05rem;
    color: #cbd5e1;
    font-size: .8rem;
    line-height: 1.55;
}

.fvg-include li + li,
.fvg-why-list li + li {
    margin-top: .28rem;
}

.fvg-code {
    margin: 0;
    max-height: 180px;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid var(--fvg-border);
    background: rgba(2, 8, 20, .65);
    color: #7dd3fc;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
    font-size: .72rem;
    line-height: 1.5;
    padding: .75rem .85rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.fvg-tip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    flex-wrap: wrap;
    margin-bottom: .9rem;
    padding: .9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 174, 239, .28);
    background: rgba(0, 174, 239, .08);
    color: #cbd5e1;
    font-size: .85rem;
    line-height: 1.5;
}

.fvg-tip code {
    font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
    color: #7dd3fc;
}

.fvg-features {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .55rem;
}

.fvg-feature {
    border: 1px solid var(--fvg-border);
    border-radius: 14px;
    background: rgba(2, 8, 20, .35);
    padding: .75rem .8rem;
}

.fvg-feature strong {
    display: block;
    margin-bottom: .25rem;
    color: #e2e8f0;
    font-size: .8rem;
}

.fvg-feature span {
    color: var(--fvg-muted);
    font-size: .72rem;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .fvg-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fvg-col-right {
        grid-column: 1 / -1;
    }

    .fvg-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .fvg-grid,
    .fvg-row {
        grid-template-columns: 1fr;
    }

    .fvg-icons {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .fvg-features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .fvg-features {
        grid-template-columns: 1fr;
    }
}
