/**
 * FotoshopcuAi — full-width black modern chat UI
 */

/* ---- Page integration (Full Widget template) ---- */
body.fpa-chat-page.page-template-page-full-widget .site-main,
body.fpa-chat-page.page-template-page-full-widget #primary {
    background: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.fpa-chat-page.page-template-page-full-widget .site-main.bg-gray-900 {
    background: #000 !important;
}

body.fpa-chat-page .entry-content,
body.fpa-chat-page .prose,
body.fpa-chat-page .prose.max-w-none {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit;
}

body.fpa-chat-page article {
    padding: 0 !important;
    margin: 0 !important;
}

/* Tema: logged-out sidebar yokken #content/#page yatay boşluk — sohbet sayfasında kapat */
@media screen and (min-width: 769px) {
    body.fpa-chat-page:not(.has-global-sidebar) #content,
    body.fpa-chat-page:not(.has-global-sidebar) #page,
    body.fpa-chat-page #content,
    body.fpa-chat-page #page {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

body.fpa-chat-page .fpa-login-wrap {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 2rem;
}

/* ---- Shell ---- */
.fpa-shell {
    --fpa-black: #000000;
    --fpa-surface: #0a0a0a;
    --fpa-elevated: #141414;
    --fpa-border: #262626;
    --fpa-border-soft: #1a1a1a;
    --fpa-text: #fafafa;
    --fpa-text-muted: #a3a3a3;
    --fpa-text-dim: #737373;
    --fpa-accent: #fcd307;
    --fpa-accent-dim: rgba(252, 211, 7, 0.15);
    --fpa-user-bubble: #1a1a1a;
    --fpa-assistant-bubble: transparent;
    --fpa-composer-bg: #141414;
    --fpa-composer-border: #2a2a2a;
    --fpa-sidebar-w: 260px;
    --fpa-sidebar-rail: 4rem;
    --fpa-topbar-h: 52px;

    width: 100%;
    max-width: 100%;
    margin: 0;
    background: var(--fpa-black);
    color: var(--fpa-text);
    font-family: 'Poppins', sans-serif;
    min-height: calc(100dvh - var(--fpa-offset-top, 0px));
    position: relative;
}

body.fpa-chat-page .fpa-shell {
    min-height: calc(100dvh - var(--fpa-offset-top, 72px));
    height: calc(100dvh - var(--fpa-offset-top, 72px));
}

.fpa-layout {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: inherit;
    background: var(--fpa-black);
}

/* ---- Sidebar (collapsible) ---- */
.fpa-sidebar {
    width: var(--fpa-sidebar-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--fpa-surface);
    border-right: none;
    z-index: 40;
    transition: width 0.25s ease, opacity 0.2s ease;
    overflow: hidden;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-sidebar {
    width: var(--fpa-sidebar-rail);
}

.fpa-sidebar-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.875rem;
    border-bottom: none;
    min-height: var(--fpa-topbar-h);
    flex-shrink: 0;
}

/* Dar panel: yalnızca ikonlar */
.fpa-shell.fpa-sidebar-collapsed .fpa-sidebar-head {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-sidebar-brand {
    display: none;
}

.fpa-shell.fpa-sidebar-collapsed #fpa-collapse-sidebar {
    width: 2.5rem;
    height: 2.5rem;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-sidebar-title,
.fpa-shell.fpa-sidebar-collapsed .fpa-conv-empty-text,
.fpa-shell.fpa-sidebar-collapsed .fpa-settings-toggle-label,
.fpa-shell.fpa-sidebar-collapsed .fpa-profile-body,
.fpa-shell.fpa-sidebar-collapsed .fpa-upgrade-btn--sidebar .fpa-upgrade-btn-label {
    display: none;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-conv-list {
    display: none !important;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-conv-row {
    justify-content: center;
    width: 2.5rem;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-conv-menu {
    display: none;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-conv-item {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-conv-item-label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 100%;
    font-size: 0;
    line-height: 1;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-conv-item-label::first-letter {
    font-size: 0.75rem;
    font-weight: 600;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-conv-empty {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Yeni düzenleme + görsel kütüphanesi */
.fpa-sidebar-new {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem 0.625rem;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.fpa-sidebar-new-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--fpa-text);
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fpa-sidebar-new-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fpa-sidebar-new-btn svg,
.fpa-sidebar-new-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.fpa-sidebar-new-label {
    white-space: nowrap;
}

/* Görseller — Yeni düzenleme ile aynı stil (anonim + giriş yapmış) */
.fpa-sidebar-gallery-btn,
.fpa-sidebar-gallery-btn:link,
.fpa-sidebar-gallery-btn:visited {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--fpa-text);
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
    box-sizing: border-box;
}

.fpa-sidebar-gallery-btn:hover,
.fpa-sidebar-gallery-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: var(--fpa-text);
}

.fpa-sidebar-gallery-btn.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--fpa-text);
}

.fpa-sidebar-gallery-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.fpa-sidebar-gallery-label {
    white-space: nowrap;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-sidebar-gallery-btn {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-sidebar-gallery-label {
    display: none;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-sidebar-new {
    padding: 0.5rem 0.75rem;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-sidebar-new-btn {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-sidebar-new-label {
    display: none;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-sidebar-new-btn svg,
.fpa-shell.fpa-sidebar-collapsed .fpa-sidebar-new-icon {
    width: 1.125rem;
    height: 1.125rem;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-sidebar-foot {
    margin-top: auto;
    padding: 0.5rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-sidebar-foot-row {
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-sidebar-profile {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    justify-content: center;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-profile-avatar {
    width: 2rem;
    height: 2rem;
}

.fpa-upgrade-btn-icon {
    display: none;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-upgrade-btn--sidebar {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-upgrade-btn--sidebar .fpa-upgrade-btn-icon {
    display: block;
    color: #000;
}

.fpa-shell.fpa-guest.fpa-sidebar-collapsed .fpa-upgrade-btn--sidebar {
    display: none !important;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-settings-toggle {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fpa-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.fpa-sidebar-title {
    flex: 1;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--fpa-text);
    letter-spacing: 0.01em;
}

.fpa-conv-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    list-style: none;
    margin: 0;
}

.fpa-conv-list::-webkit-scrollbar {
    width: 5px;
}

.fpa-conv-list::-webkit-scrollbar-thumb {
    background: var(--fpa-border);
    border-radius: 4px;
}

.fpa-conv-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    border-radius: 0.5rem;
    transition: background 0.15s ease;
}

.fpa-conv-row:hover,
.fpa-conv-row.is-active,
.fpa-conv-menu.is-open {
    background: var(--fpa-elevated);
}

.fpa-conv-row:hover .fpa-conv-item,
.fpa-conv-row.is-active .fpa-conv-item,
.fpa-conv-menu.is-open .fpa-conv-item {
    color: var(--fpa-text);
}

.fpa-conv-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    text-align: left;
    padding: 0.625rem 0.25rem 0.625rem 0.75rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: var(--fpa-text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: color 0.15s ease;
}

/* Sohbet satırı — üç nokta menü (genişletilebilir) */
.fpa-conv-menu {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 0.25rem 0 0;
    background: transparent;
}

.fpa-conv-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--fpa-text-dim);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.fpa-conv-menu-trigger svg {
    width: 1.125rem;
    height: 1.125rem;
}

.fpa-conv-row:hover .fpa-conv-menu-trigger,
.fpa-conv-row.is-active .fpa-conv-menu-trigger,
.fpa-conv-menu.is-open .fpa-conv-menu-trigger {
    opacity: 1;
}

.fpa-conv-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--fpa-text);
}

.fpa-conv-menu-panel {
    position: fixed;
    min-width: 10.5rem;
    padding: 0.375rem;
    background: var(--fpa-elevated);
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 60;
}

.fpa-conv-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fpa-conv-menu-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    font-family: inherit;
    text-align: left;
    color: var(--fpa-text);
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fpa-conv-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.fpa-conv-menu-item--danger {
    color: #f87171;
}

.fpa-conv-menu-item--danger:hover {
    background: rgba(248, 113, 113, 0.1);
}

.fpa-conv-item-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fpa-conv-item.is-active {
    color: var(--fpa-text);
}

.fpa-conv-row.is-active .fpa-conv-item-label {
    font-weight: 600;
    color: var(--fpa-text);
}

.fpa-shell.fpa-sidebar-collapsed .fpa-conv-row:hover,
.fpa-shell.fpa-sidebar-collapsed .fpa-conv-row.is-active,
.fpa-shell.fpa-sidebar-collapsed .fpa-conv-menu.is-open {
    background: transparent;
}

.fpa-shell.fpa-sidebar-collapsed .fpa-conv-row:hover .fpa-conv-item {
    background: rgba(255, 255, 255, 0.06);
    color: var(--fpa-text);
}

.fpa-shell.fpa-sidebar-collapsed .fpa-conv-row.is-active .fpa-conv-item {
    background: transparent;
    color: var(--fpa-text-muted);
}

.fpa-shell.fpa-sidebar-collapsed .fpa-conv-row.is-active .fpa-conv-item-label,
.fpa-shell.fpa-sidebar-collapsed .fpa-conv-row.is-active .fpa-conv-item-label::first-letter {
    color: var(--fpa-text-muted);
    font-weight: 600;
}

.fpa-sidebar-foot {
    flex-shrink: 0;
    padding: 0.75rem 0.875rem 1rem;
    border-top: none;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.fpa-sidebar-foot-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.fpa-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    flex: 1;
    padding: 0.25rem 0.375rem 0.25rem 0;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.fpa-sidebar-profile:hover {
    background: var(--fpa-elevated);
}

.fpa-profile-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--fpa-elevated);
}

.fpa-profile-avatar--guest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(252, 211, 7, 0.12);
}

.fpa-profile-avatar--guest svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--fpa-accent);
}

.fpa-profile-credits--guest {
    color: var(--fpa-text-dim);
}

.fpa-profile-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 0.125rem;
}

.fpa-profile-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fpa-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.fpa-profile-credits {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--fpa-accent);
    line-height: 1.3;
}

.fpa-profile-credits.is-empty {
    color: #f87171;
}

/* Ayarlar — kenar çubuğu düğmesi */
.fpa-settings-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.125rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--fpa-text-muted);
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.fpa-settings-toggle:hover,
.fpa-settings-toggle:focus-visible,
.fpa-settings-toggle.is-active {
    background: var(--fpa-elevated);
    color: var(--fpa-text);
}

.fpa-settings-toggle.is-active .fpa-settings-toggle-label {
    font-weight: 600;
}

.fpa-settings-toggle-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

/* ---- Main column ---- */
.fpa-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: var(--fpa-black);
    position: relative;
}

.fpa-upgrade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.4375rem 0.75rem;
    font-size: 0.75rem;
    font-family: inherit;
    font-weight: 600;
    color: #000 !important;
    text-decoration: none;
    background: var(--fpa-accent);
    border-radius: 9999px;
    transition: filter 0.15s ease;
    white-space: nowrap;
}

.fpa-upgrade-btn-label {
    color: #000 !important;
}

.fpa-upgrade-btn:hover,
.fpa-upgrade-btn:hover .fpa-upgrade-btn-label {
    filter: brightness(1.08);
    color: #000 !important;
}

.fpa-upgrade-btn:disabled,
.fpa-upgrade-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    filter: none;
}

/* Mobil: panel aç + sağ üst yükselt */
.fpa-mobile-menu-fab,
.fpa-upgrade-btn--mobile,
.fpa-upgrade-btn--desktop {
    display: none !important;
}

@media (min-width: 1024px) {
    .fpa-mobile-menu-fab,
    .fpa-upgrade-btn--mobile {
        display: none !important;
    }

    .fpa-upgrade-btn--desktop {
        display: inline-flex !important;
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        left: auto;
        z-index: 20;
        margin-left: 0;
    }

    .fpa-upgrade-btn--desktop .fpa-upgrade-btn-label {
        color: #000 !important;
        -webkit-text-fill-color: #000;
    }
}

.fpa-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--fpa-text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.fpa-icon-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.fpa-icon-btn:hover {
    background: var(--fpa-elevated);
    color: var(--fpa-text);
}

/* ---- Ayarlar görünümü ---- */
.fpa-settings-view {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.fpa-shell.fpa-settings-open .fpa-settings-view {
    display: flex;
}

.fpa-shell.fpa-settings-open .fpa-stage,
.fpa-shell.fpa-settings-open .fpa-gallery-view {
    display: none !important;
}

.fpa-shell.fpa-settings-open .fpa-mobile-menu-fab,
.fpa-shell.fpa-settings-open .fpa-upgrade-btn--mobile,
.fpa-shell.fpa-settings-open .fpa-upgrade-btn--desktop {
    display: none;
}

.fpa-settings-view-head {
    flex-shrink: 0;
    margin: 0;
    padding: 1rem 1.25rem 0.75rem;
}

.fpa-settings-view-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fpa-text);
    letter-spacing: -0.02em;
}

.fpa-settings-view-sub {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: var(--fpa-text-dim);
}

.fpa-settings-layout {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
}

.fpa-settings-nav {
    flex-shrink: 0;
    overflow-y: auto;
    padding: 0.75rem 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
}

.fpa-settings-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.fpa-settings-nav-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    font-family: inherit;
    font-weight: 500;
    text-align: left;
    color: var(--fpa-text-muted);
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.fpa-settings-nav-item:hover,
.fpa-settings-nav-item:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: var(--fpa-text);
}

.fpa-settings-nav-item.is-active {
    background: var(--fpa-elevated);
    color: var(--fpa-text);
    font-weight: 600;
}

.fpa-settings-panels {
    min-width: 0;
    overflow-y: auto;
    padding: 0.75rem 1.25rem 1.5rem;
}

.fpa-settings-panel[hidden] {
    display: none !important;
}

.fpa-settings-panel-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fpa-text);
}

.fpa-settings-panel-hint {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--fpa-text-dim);
}

.fpa-account-card {
    margin-bottom: 1rem;
    padding: 1.125rem 1.25rem;
    background: var(--fpa-elevated);
    border-radius: 0.75rem;
}

.fpa-account-card--profile {
    padding: 1.25rem;
}

.fpa-account-card-title {
    margin: 0 0 0.875rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fpa-text-dim);
}

.fpa-account-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.fpa-account-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.fpa-account-identity {
    min-width: 0;
    flex: 1;
}

.fpa-account-identity-label {
    display: block;
    margin: 0 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fpa-text-dim);
}

.fpa-account-identity-name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--fpa-text);
    word-break: break-word;
}

.fpa-account-form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.fpa-account-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fpa-account-form-field label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fpa-text-dim);
}

.fpa-account-form-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.45;
    color: var(--fpa-text);
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 0.5rem;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.fpa-account-form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.07);
}

.fpa-account-form-input--textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.fpa-account-form-status {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--fpa-text-dim);
}

.fpa-account-form-status.is-success {
    color: #4ade80;
}

.fpa-account-form-status.is-error {
    color: #f87171;
}

.fpa-account-details {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.fpa-account-detail {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.625rem 0;
}

.fpa-account-detail:first-child {
    padding-top: 0;
}

.fpa-account-detail:last-child {
    padding-bottom: 0;
}

.fpa-account-detail--stack {
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

.fpa-account-detail dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fpa-text-dim);
}

.fpa-account-detail dd {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--fpa-text);
    word-break: break-word;
}

.fpa-plan-summary {
    background: linear-gradient(135deg, rgba(252, 211, 7, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.fpa-settings-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 20rem;
    margin-top: 1rem;
}

.fpa-settings-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    font-family: inherit;
    font-weight: 500;
    text-align: center;
    color: var(--fpa-text);
    background: var(--fpa-elevated);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
    box-sizing: border-box;
}

.fpa-settings-action:hover,
.fpa-settings-action:focus-visible {
    background: rgba(255, 255, 255, 0.1);
}

.fpa-upgrade-btn--settings {
    width: 100%;
    max-width: 20rem;
    margin-left: 0;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
}

.fpa-settings-action--danger {
    color: #f87171;
}

.fpa-settings-action--danger:hover:not(:disabled),
.fpa-settings-action--danger:focus-visible:not(:disabled) {
    background: rgba(248, 113, 113, 0.12);
}

.fpa-settings-action:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 1023px) {
    body.fpa-chat-page .fpa-shell.fpa-settings-open {
        height: auto;
        min-height: calc(100dvh - var(--fpa-offset-top, 72px));
    }

    .fpa-shell.fpa-settings-open .fpa-layout {
        height: auto;
        min-height: inherit;
    }

    .fpa-shell.fpa-settings-open .fpa-main {
        min-height: auto;
        overflow: visible;
    }

    .fpa-shell.fpa-settings-open .fpa-settings-view {
        flex: none;
        min-height: auto;
        overflow: visible;
    }

    .fpa-shell.fpa-settings-open .fpa-settings-layout {
        flex: none;
        min-height: auto;
        overflow: visible;
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .fpa-shell.fpa-settings-open .fpa-settings-nav,
    .fpa-shell.fpa-settings-open .fpa-settings-panels {
        overflow: visible;
    }

    .fpa-shell.fpa-settings-open .fpa-settings-panels {
        padding-bottom: 2rem;
    }

    .fpa-settings-view-head {
        padding: 0.625rem 1rem 0.375rem;
    }

    .fpa-settings-nav {
        border-right: none;
        border-bottom: none;
        padding: 0.5rem 0.75rem 0.25rem;
    }

    .fpa-settings-panels {
        padding: 0.25rem 1rem 1.5rem;
    }
}

@media (max-width: 767px) {
    .fpa-settings-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .fpa-settings-nav-item {
        width: auto;
    }

    .fpa-account-detail {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

@media (min-width: 1024px) {
    .fpa-settings-view-head {
        padding-top: 0;
    }
}

/* ---- Görsel kütüphanesi ---- */
.fpa-gallery-view {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.fpa-shell.fpa-gallery-open .fpa-gallery-view {
    display: flex;
}

.fpa-shell.fpa-gallery-open .fpa-stage {
    display: none !important;
}

.fpa-shell.fpa-gallery-open .fpa-mobile-menu-fab,
.fpa-shell.fpa-gallery-open .fpa-upgrade-btn--mobile,
.fpa-shell.fpa-gallery-open .fpa-upgrade-btn--desktop {
    display: none;
}

.fpa-gallery-head {
    flex-shrink: 0;
    margin: 0;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: none;
}

/* Tema .prose h2 üst margin'i — galeri başlığında boşluk bırakmasın */
body.fpa-chat-page .prose .fpa-gallery-head,
body.fpa-chat-page .entry-content .fpa-gallery-head {
    margin: 0;
}

body.fpa-chat-page .prose .fpa-gallery-head p,
body.fpa-chat-page .entry-content .fpa-gallery-head p,
body.fpa-chat-page .prose .fpa-gallery-sub,
body.fpa-chat-page .entry-content .fpa-gallery-sub {
    margin: 0.35rem 0 0;
}

@media (max-width: 1023px) {
    .fpa-gallery-head {
        padding-top: 1rem;
    }
}

@media (min-width: 1024px) {
    .fpa-gallery-head,
    body.fpa-chat-page .prose .fpa-gallery-head,
    body.fpa-chat-page .entry-content .fpa-gallery-head {
        padding-top: 0;
    }

    body.fpa-chat-page .prose .fpa-gallery-head h2,
    body.fpa-chat-page .entry-content .fpa-gallery-head h2,
    body.fpa-chat-page .prose .fpa-gallery-title,
    body.fpa-chat-page .entry-content .fpa-gallery-title,
    .fpa-gallery-title {
        margin: 0 !important;
    }
}

.fpa-gallery-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fpa-text);
    letter-spacing: -0.02em;
}

.fpa-gallery-sub {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: var(--fpa-text-dim);
}

.fpa-gallery-loading[hidden],
.fpa-gallery-empty[hidden] {
    display: none !important;
}

.fpa-gallery-loading:not([hidden]) {
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
}

.fpa-gallery-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--fpa-accent);
    border-radius: 50%;
    animation: fpa-spin 0.7s linear infinite;
}

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

.fpa-gallery-empty:not([hidden]) {
    display: block;
    margin: 0;
    padding: 3rem 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--fpa-text-dim);
}

.fpa-gallery-grid {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-content: start;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .fpa-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 720px) {
    .fpa-gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .fpa-gallery-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .fpa-gallery-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.fpa-gallery-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fpa-gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.fpa-gallery-card-link {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    line-height: 0;
}

.fpa-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fpa-gallery-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.28) 42%, transparent 68%);
    opacity: 1;
    pointer-events: none;
}

.fpa-gallery-card-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    min-width: 0;
    width: 100%;
    pointer-events: auto;
}

.fpa-gallery-card-meta {
    flex: 1;
    min-width: 0;
    margin-right: auto;
    padding-right: 0.35rem;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.fpa-gallery-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.fpa-gallery-card-open,
.fpa-gallery-card-download {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    text-decoration: none;
}

.fpa-gallery-card-open:hover,
.fpa-gallery-card-download:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.fpa-gallery-card-open svg,
.fpa-gallery-card-download svg {
    width: 1rem;
    height: 1rem;
}

/* ---- Stage (messages + composer) ---- */
.fpa-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    background: var(--fpa-black);
}

.fpa-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 40%, rgba(30, 58, 95, 0.18) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fpa-shell.fpa-empty .fpa-stage::before {
    opacity: 1;
}

/* Welcome — centered empty state */
.fpa-welcome {
    display: none;
    flex-shrink: 0;
    text-align: center;
    padding: 0 1.5rem;
    z-index: 1;
}

.fpa-shell.fpa-empty .fpa-welcome {
    display: block;
}

.fpa-ready-line {
    margin: 0;
    font-size: clamp(1.25rem, 3.5vw, 1.625rem);
    font-weight: 400;
    color: #ececec;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.fpa-shell.fpa-empty .fpa-stage {
    justify-content: center;
    align-items: center;
    padding: 2rem 1.25rem 2.5rem;
    gap: 0;
}

.fpa-shell.fpa-empty .fpa-welcome {
    margin-bottom: 2.25rem;
}

.fpa-shell.fpa-empty .fpa-messages-wrap {
    display: none;
}

.fpa-shell.fpa-empty .fpa-composer-wrap {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(0.75rem, 4vw, 1.25rem);
    background: none;
    z-index: 1;
}

.fpa-shell.fpa-empty .fpa-composer-center {
    max-width: min(46rem, 100%);
}

.fpa-shell.fpa-empty .fpa-quick-actions {
    display: flex;
}

.fpa-shell:not(.fpa-empty) .fpa-quick-actions {
    display: none !important;
}

.fpa-shell:not(.fpa-empty) .fpa-welcome {
    display: none !important;
}

.fpa-shell:not(.fpa-empty) .fpa-stage::before {
    opacity: 0;
}

/* ---- Messages ---- */
.fpa-messages-wrap {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: transparent;
}

.fpa-shell:not(.fpa-empty) .fpa-composer-wrap {
    flex-shrink: 0;
}

.fpa-messages {
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.fpa-messages::-webkit-scrollbar {
    width: 6px;
}

.fpa-messages::-webkit-scrollbar-thumb {
    background: var(--fpa-border);
    border-radius: 4px;
}

.fpa-messages-inner {
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem;
    width: 100%;
}

/* Messages — AI sol, kullanıcı sağ */
.fpa-msg {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    width: 100%;
    max-width: min(88%, 40rem);
}

.fpa-msg--assistant {
    margin-right: auto;
    flex-direction: row;
    align-items: flex-start;
}

.fpa-msg--user {
    margin-left: auto;
    flex-direction: row-reverse;
    align-items: flex-start;
}

.fpa-msg-avatar {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fpa-msg--user .fpa-msg-avatar {
    background: transparent;
    border-radius: 9999px;
    overflow: hidden;
}

.fpa-msg--assistant .fpa-msg-avatar {
    background: #1a1a1a;
    border: none;
}

.fpa-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fpa-msg-avatar svg {
    width: 1rem;
    height: 1rem;
}

.fpa-msg-body {
    flex: 1;
    min-width: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
}

.fpa-msg--assistant .fpa-msg-body {
    color: var(--fpa-text);
}

.fpa-msg--user .fpa-msg-body {
    color: #e5e5e5;
    text-align: right;
}

.fpa-msg--user .fpa-msg-images {
    justify-content: flex-end;
}

.fpa-msg-text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.fpa-msg-images {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.625rem;
    margin-top: 0.875rem;
}

.fpa-msg-image-wrap {
    position: relative;
    flex: 0 0 auto;
    align-self: flex-start;
    display: inline-block;
    width: auto;
    max-width: 28rem;
    border-radius: 0.75rem;
    overflow: hidden;
    line-height: 0;
    vertical-align: top;
}

.fpa-msg-image-wrap > img {
    display: block;
    width: auto;
    height: auto;
    max-width: 28rem;
    cursor: pointer;
    border-radius: 0.75rem;
}

.fpa-msg-image-wrap > img:not(.fpa-output) {
    width: 5rem;
    height: 5rem;
    max-width: 5rem;
    object-fit: cover;
}

.fpa-msg-image-wrap > img.fpa-output {
    max-height: 20rem;
    object-fit: contain;
}

/* Mobil: görsel taşmasın */
@media (max-width: 1023px) {
    .fpa-messages,
    .fpa-messages-inner {
        overflow-x: hidden;
    }

    .fpa-msg {
        max-width: 100%;
    }

    .fpa-msg-body {
        max-width: 100%;
        overflow: hidden;
    }

    .fpa-msg-images {
        max-width: 100%;
    }

    /* Kullanıcı yüklediği görseller: sağda, sığdıkça yan yana */
    .fpa-msg--user .fpa-msg-images {
        justify-content: flex-end;
        width: 100%;
    }

    .fpa-msg--user .fpa-msg-image-wrap {
        display: inline-block;
        width: auto;
        max-width: 5rem;
        box-sizing: border-box;
    }

    .fpa-msg--user .fpa-msg-image-wrap > img:not(.fpa-output) {
        width: 5rem;
        max-width: 5rem;
    }

    /* Asistan çıktıları: tam genişlik */
    .fpa-msg--assistant .fpa-msg-image-wrap {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .fpa-msg--assistant .fpa-msg-image-wrap > img {
        max-width: 100%;
    }

    .fpa-msg--assistant .fpa-msg-image-wrap > img.fpa-output {
        width: 100%;
        max-width: 100%;
        max-height: min(20rem, 55vh);
        object-fit: contain;
    }
}

/* Masaüstü: geniş mesaj gövdesinde %100 çözümlemesi sarmalayıcıyı şişiriyordu */
@media (min-width: 1024px) {
    .fpa-msg-images {
        width: 100%;
    }

    .fpa-msg--assistant .fpa-msg-images {
        justify-content: flex-start;
    }

    .fpa-msg-image-wrap {
        display: inline-block;
        width: auto;
        max-width: 28rem;
    }

    .fpa-msg-image-wrap > img {
        max-width: 28rem;
    }
}

.fpa-msg-image-download {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    color: #fafafa !important;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    border-radius: 9999px;
    transition: background 0.15s ease, transform 0.15s ease;
    pointer-events: auto;
}

.fpa-msg-image-download svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.fpa-msg-image-download:hover {
    background: rgba(0, 0, 0, 0.88);
    color: #fff !important;
    transform: scale(1.04);
}

/* AI görsel üretim placeholder */
.fpa-gen-block {
    margin-top: 0.375rem;
    width: 100%;
    max-width: 28rem;
}

.fpa-gen-status {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--fpa-text-muted);
    transition: opacity 0.25s ease, color 0.25s ease;
}

.fpa-gen-status.is-changing {
    opacity: 0.55;
}

.fpa-gen-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 20rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #0a0a0a;
    border: none;
    box-shadow: none;
}

.fpa-gen-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 1023px) {
    .fpa-gen-block {
        max-width: 100%;
    }

    .fpa-gen-placeholder {
        max-height: min(20rem, 55vh);
    }
}

.fpa-typing {
    display: inline-flex;
    gap: 5px;
    padding: 0.25rem 0;
}

.fpa-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fpa-text-dim);
    animation: fpa-bounce 1.2s infinite ease-in-out;
}

.fpa-typing span:nth-child(2) { animation-delay: 0.15s; }
.fpa-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes fpa-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
    40% { transform: translateY(-4px); opacity: 1; }
}

.fpa-error-text {
    color: #f87171;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ---- Composer (ChatGPT-style pill bar) ---- */
.fpa-composer-wrap {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 clamp(0.75rem, 3vw, 1.25rem) clamp(1rem, 3vw, 1.5rem);
    background: linear-gradient(to top, #000 80%, transparent);
    z-index: 1;
}

.fpa-composer-center {
    max-width: min(48rem, 100%);
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.fpa-pending-zone {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    padding: 0 0.25rem;
}

.fpa-pending-thumbs {
    display: contents;
}

.fpa-pending-thumbs.is-empty {
    display: none;
}

/* Önizleme kareleri ile aynı boyut (3.5rem) */
.fpa-pending-pick-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0.25rem;
    font-family: inherit;
    font-weight: 500;
    color: #a3a3a3;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 0.625rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    box-sizing: border-box;
}

.fpa-pending-pick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.fpa-pending-pick-icon svg {
    width: 1.125rem;
    height: 1.125rem;
    opacity: 0.85;
}

.fpa-pending-pick-label {
    font-size: 0.5625rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    max-width: 100%;
    padding: 0 1px;
}

.fpa-pending-pick-btn:hover:not(:disabled) {
    color: #fafafa;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
}

.fpa-pending-pick-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.fpa-btn-plus:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.fpa-pending-item {
    position: relative;
}

.fpa-pending-thumb {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    border-radius: 0.625rem;
    border: none;
    cursor: pointer;
}

.fpa-pending-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 9999px;
    background: #404040;
    color: #fff;
    font-size: 0.6875rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

/* Main input pill */
.fpa-input-bar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 3.25rem;
    padding: 0.5rem 0.5rem 0.5rem 0.625rem;
    background: #2f2f2f;
    border: none;
    outline: none;
    border-radius: 9999px;
    box-shadow: none;
    transition: background 0.2s ease;
}

.fpa-shell.fpa-empty .fpa-input-bar {
    min-height: 3.5rem;
    padding: 0.625rem 0.5rem 0.625rem 0.75rem;
    background: #333333;
}

.fpa-input-bar:focus-within {
    background: #383838;
    box-shadow: none;
}

.fpa-btn-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    color: #d4d4d4;
    cursor: pointer;
    border-radius: 9999px;
    transition: color 0.15s, background 0.15s;
}

.fpa-btn-plus:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.fpa-btn-plus svg {
    width: 1.25rem;
    height: 1.25rem;
}

.fpa-input-field {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 10rem;
    min-height: 1.5rem;
    padding: 0.375rem 0.25rem;
    font-size: clamp(0.9375rem, 2.5vw, 1rem);
    line-height: 1.5;
    font-family: inherit;
    color: #f5f5f5;
    background: transparent;
    border: none;
    outline: none;
    border-radius: 0.5rem;
    resize: none;
    overflow-y: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
    field-sizing: content;
}

.fpa-input-field::placeholder {
    color: #737373;
}

.fpa-btn-send {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: #ffffff;
    color: #0a0a0a;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s, background 0.15s;
}

.fpa-shell.fpa-empty .fpa-btn-send {
    width: 2.5rem;
    height: 2.5rem;
}

.fpa-btn-send svg {
    width: 1.125rem;
    height: 1.125rem;
}

.fpa-btn-send:hover:not(:disabled) {
    transform: scale(1.06);
    background: #f5f5f5;
}

.fpa-btn-send:disabled,
.fpa-btn-send:not(.is-ready) {
    opacity: 0.35;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.45);
    transform: none;
}

.fpa-btn-send.is-ready {
    opacity: 1;
    background: #ffffff;
    color: #0a0a0a;
    cursor: pointer;
}

/* Quick actions below input */
.fpa-quick-actions {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 1.125rem;
}

.fpa-quick-action {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-family: inherit;
    color: #d4d4d4;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.fpa-quick-action:hover {
    color: #fafafa;
    background: rgba(255, 255, 255, 0.1);
}

/* Max fotoğraf — input üstü bilgi */
.fpa-max-images-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem 1rem;
    width: 100%;
    margin-bottom: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    box-sizing: border-box;
}

.fpa-max-images-notice.hidden,
.fpa-max-images-notice[hidden] {
    display: none !important;
}

.fpa-max-images-notice-text {
    margin: 0;
    flex: 1 1 12rem;
    min-width: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #d4d4d4;
}

.fpa-max-images-notice-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4375rem 0.875rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fafafa;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fpa-max-images-notice-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
}

/* Sidebar empty state (Yeni düzenleme üstte sabit) */
.fpa-conv-empty {
    padding: 1rem 0.875rem;
    text-align: center;
}

.fpa-conv-empty-text {
    font-size: 0.75rem;
    color: var(--fpa-text-dim);
    margin: 0;
}

/* Mobile: sidebar overlay */
.fpa-sidebar-backdrop {
    display: none;
    position: fixed;
    top: var(--fpa-offset-top, 0);
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 35;
}

@media (max-width: 1023px) {
    .fpa-mobile-menu-fab {
        display: inline-flex !important;
        position: absolute;
        top: 0;
        left: 0.75rem;
        z-index: 20;
        background: rgba(20, 20, 20, 0.85);
        backdrop-filter: blur(8px);
    }

    .fpa-upgrade-btn--mobile {
        display: inline-flex !important;
        position: absolute;
        top: 0;
        right: 0.75rem;
        left: auto;
        z-index: 20;
        margin-left: 0;
    }

    .fpa-upgrade-btn--mobile .fpa-upgrade-btn-label {
        display: inline !important;
        color: #000 !important;
        -webkit-text-fill-color: #000;
    }

    .fpa-shell.fpa-sidebar-open .fpa-mobile-menu-fab,
    .fpa-shell.fpa-sidebar-open .fpa-upgrade-btn--mobile {
        display: none !important;
    }

    .fpa-sidebar {
        position: fixed;
        top: var(--fpa-offset-top, 0);
        left: 0;
        bottom: 0;
        width: min(var(--fpa-sidebar-w), 100vw) !important;
        transform: translateX(-100%);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        z-index: 45;
    }

    .fpa-shell.fpa-sidebar-open .fpa-sidebar {
        transform: translateX(0);
        box-shadow: 4px 0 32px rgba(0, 0, 0, 0.6);
    }

    .fpa-shell.fpa-sidebar-open .fpa-sidebar-backdrop {
        display: block;
    }

    .fpa-main {
        width: 100%;
        flex: 1;
        min-width: 0;
    }

    .fpa-shell.fpa-empty .fpa-stage {
        padding: 1.5rem clamp(0.75rem, 4vw, 1.25rem) 1.75rem;
    }
}

@media (min-width: 1024px) {
    .fpa-sidebar-backdrop {
        display: none !important;
    }

    .fpa-shell.fpa-sidebar-open .fpa-sidebar {
        transform: none;
    }
}

/* AI kredi paketleri — sohbet balonu içinde, büyük, çerçevesiz */
.fpa-msg--plans {
    max-width: min(100%, 40rem);
    width: 100%;
}

.fpa-msg--plans .fpa-msg-body {
    width: 100%;
    max-width: 100%;
}

.fpa-msg--plans .fpa-msg-text {
    font-size: 1rem;
}

.fpa-msg-text--dim {
    color: var(--fpa-text-dim);
    margin-top: 0.35rem;
}

.fpa-chat-plans {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 0.85rem;
    width: 100%;
}

.fpa-chat-plans-zone--expert {
    margin-top: 1.15rem;
    padding-top: 1rem;
}

.fpa-chat-plans-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fpa-accent);
}

.fpa-chat-plans-zone-title {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--fpa-text);
}

.fpa-chat-plans--ai {
    align-items: stretch;
}

.fpa-chat-plans--ai .fpa-chat-plan {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fpa-chat-plans--ai .fpa-chat-plan-cta {
    margin-top: auto;
}

.fpa-chat-plans--expert {
    grid-template-columns: 1fr;
}

.fpa-chat-plans--expert .fpa-chat-plan {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fpa-chat-plans--expert .fpa-chat-plan-cta,
.fpa-chat-plans--expert a.fpa-chat-plan-cta,
.fpa-chat-plans--expert .fpa-chat-plan-cta:link,
.fpa-chat-plans--expert .fpa-chat-plan-cta:visited,
.fpa-chat-plans--expert .fpa-chat-plan-cta:hover,
.fpa-chat-plans--expert .fpa-chat-plan-cta:focus-visible {
    margin-top: auto;
    pointer-events: auto;
    text-decoration: none;
    color: #0a0a0a !important;
    -webkit-text-fill-color: #0a0a0a;
}

.fpa-chat-plan {
    position: relative;
    display: block;
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    outline: none;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.fpa-chat-plan:hover {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 28px rgba(252, 211, 7, 0.2);
    transform: translateY(-2px);
}

.fpa-chat-plan--featured {
    background: rgba(252, 211, 7, 0.1);
}

.fpa-chat-plan--featured:hover {
    background: rgba(252, 211, 7, 0.14);
}

.fpa-chat-plan--expert {
    background: rgba(252, 211, 7, 0.06);
}

.fpa-chat-plan--expert:hover {
    background: rgba(252, 211, 7, 0.1);
    box-shadow: 0 0 28px rgba(252, 211, 7, 0.2);
}

.fpa-chat-plan-desc {
    display: block;
    margin: 0 4.5rem 0.65rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--fpa-text-muted);
}

.fpa-chat-plan-pill--expert {
    background: var(--fpa-accent);
    color: #0a0a0a;
}

.fpa-chat-plan-pill {
    padding: 0.2rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    background: var(--fpa-accent);
    color: #0a0a0a;
}

.fpa-chat-plan-pills {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    max-width: calc(100% - 1.5rem);
}

.fpa-chat-plan-pills .fpa-chat-plan-pill {
    position: static;
}

.fpa-chat-plan-pill--sale {
    background: #ef4444;
    color: #fff;
}

.fpa-chat-plan-name {
    display: block;
    margin: 0 5rem 0.5rem 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--fpa-text);
    line-height: 1.3;
}

.fpa-chat-plan-price {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
}

.fpa-chat-plan-price-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.45rem;
    min-width: 0;
}

.fpa-chat-plan-compare {
    font-size: 0.875rem;
    color: var(--fpa-text-dim);
    text-decoration: line-through;
}

.fpa-chat-plan-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fpa-text);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.fpa-chat-plan--featured .fpa-chat-plan-amount {
    color: var(--fpa-accent);
}

.fpa-chat-plan-period {
    font-size: 0.875rem;
    color: var(--fpa-text-muted);
}

.fpa-chat-plan-savings {
    flex-shrink: 0;
    margin-left: auto;
    text-align: right;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #86efac;
    white-space: nowrap;
}

.fpa-chat-plan-meta {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.875rem;
    color: var(--fpa-text-muted);
}

.fpa-chat-plan-features {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
}

.fpa-chat-plan-features li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.3rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--fpa-text-muted);
}

.fpa-chat-plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fpa-accent);
}

.fpa-chat-plan-feature--link {
    padding-left: 0 !important;
}

.fpa-chat-plan-feature--link::before {
    display: none !important;
}

.fpa-chat-plan-feature-link {
    font-weight: 600;
    color: var(--fpa-accent);
    text-decoration: underline;
    text-decoration-color: rgba(252, 211, 7, 0.45);
    text-underline-offset: 0.15em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.fpa-chat-plan-feature-link:hover,
.fpa-chat-plan-feature-link:focus-visible {
    color: #fff59d;
    text-decoration-color: currentColor;
}

.fpa-chat-plan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0a0a0a;
    background: linear-gradient(135deg, #fff176 0%, #fcd307 50%, #e5b306 100%);
    border-radius: 999px;
    border: none;
    box-shadow: 0 0 20px rgba(252, 211, 7, 0.45);
    pointer-events: none;
}

.fpa-chat-plan-cta--solo {
    display: inline-flex;
    width: auto;
    margin-top: 0.75rem;
    pointer-events: auto;
    text-decoration: none;
}

@media (min-width: 560px) {
    .fpa-chat-plans--ai {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .fpa-msg--plans {
        max-width: min(100%, 44rem);
    }

    .fpa-chat-plan-name {
        font-size: 1.125rem;
    }

    .fpa-chat-plan-amount {
        font-size: 1.625rem;
    }
}

@media (min-width: 900px) {
    .fpa-msg--plans {
        max-width: min(88%, 46rem);
    }

    .fpa-chat-plan {
        padding: 1.25rem 1.35rem 1.35rem;
    }
}
