/* Memur Yapay Zeka, araçlar, Q&A */

.tools-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
}

.tools-grid--single {
    grid-template-columns: minmax(0, 1040px);
    justify-content: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.tools-grid--single .ai-panel,
.tools-grid--single .tool-card {
    width: 100%;
    padding: 1.35rem 1.5rem 1.5rem;
}

.tools-page-hero {
    text-align: center !important;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.tools-page-hero h1 {
    text-align: center !important;
}

.tools-page-hero p {
    margin-left: auto !important;
    margin-right: auto !important;
}

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

    .tools-grid--single {
        grid-template-columns: 1fr;
    }
}

.ai-panel,
.tool-card {
    background: var(--theme-panel, rgba(8, 10, 14, 0.88));
    border: 1px solid var(--theme-border, rgba(201, 169, 98, 0.28));
    border-radius: 10px;
    padding: 1.15rem 1.2rem 1.3rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.ai-panel h2,
.tool-card h2 {
    color: var(--theme-accent, #c9a962);
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.ai-chat {
    height: 420px;
    overflow-y: auto;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.18);
    margin: 0.75rem 0;
}

.ai-bubble.is-pending {
    opacity: 0.75;
    font-style: italic;
}

.ai-bubble {
    max-width: 92%;
    margin-bottom: 0.65rem;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    line-height: 1.5;
    font-size: 0.92rem;
    white-space: pre-wrap;
}

.ai-bubble.user {
    margin-left: auto;
    background: rgba(201, 169, 98, 0.2);
    border: 1px solid rgba(201, 169, 98, 0.35);
    color: var(--theme-ink);
}

.ai-bubble.bot {
    margin-right: auto;
    background: var(--theme-card);
    border: 1px solid var(--theme-border);
    color: var(--theme-ink);
}

.ai-bubble .ai-title {
    font-weight: 800;
    color: var(--theme-accent);
    margin-bottom: 0.35rem;
    display: block;
}

.ai-compose {
    display: flex;
    gap: 0.5rem;
}

.ai-compose input,
.ai-compose textarea,
.wizard-form input,
.wizard-form select,
.wizard-form textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #555;
    background: #1c1f26;
    color: #fff;
    font: inherit;
}

html[data-theme="kurumsal"] .ai-compose input,
html[data-theme="kurumsal"] .wizard-form input,
html[data-theme="kurumsal"] .wizard-form select,
html[data-theme="kurumsal"] .wizard-form textarea {
    background: #fff;
    color: #111;
    border-color: #cbd5e1;
}

.ai-compose button,
.wizard-form .btn-submit,
.tool-actions button {
    background: var(--theme-accent);
    color: #111;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    padding: 0.7rem 1rem;
    cursor: pointer;
    white-space: nowrap;
}

html[data-theme="kurumsal"] .ai-compose button,
html[data-theme="kurumsal"] .wizard-form .btn-submit {
    color: #fff;
}

.quick-asks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.quick-asks button {
    background: transparent;
    border: 1px solid var(--theme-border);
    color: var(--theme-muted);
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    cursor: pointer;
}

.quick-asks button:hover {
    color: var(--theme-accent);
    border-color: var(--theme-accent);
}

.wizard-form label {
    display: block;
    margin: 0.65rem 0 0.3rem;
    font-weight: 700;
    color: var(--theme-ink);
}

.draft-out {
    margin-top: 0.85rem;
    min-height: 160px;
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed var(--theme-border);
    border-radius: 8px;
    padding: 0.85rem;
    color: var(--theme-ink);
    font-size: 0.9rem;
    line-height: 1.55;
}

.ai-status {
    margin: 0.75rem 0 0;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.45;
    border: 1px solid var(--theme-border, rgba(201, 169, 98, 0.28));
    color: var(--theme-muted, #c5c0b4);
}

.ai-status--on {
    border-color: rgba(74, 168, 110, 0.55);
    color: #b7e0c4;
}

.ai-status--off {
    border-color: rgba(201, 169, 98, 0.35);
}

.draft-disclaimer {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--theme-muted, #c5c0b4);
}

html[data-theme="kurumsal"] .ai-status--on {
    color: #166534;
    background: #f0fdf4;
}

html[data-theme="kurumsal"] .ai-status--off {
    color: #57534e;
    background: #fafaf9;
}

.sim-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .sim-row { grid-template-columns: 1fr; }
}

.sim-chart {
    width: 100%;
    height: 220px;
    margin-top: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--theme-border);
    background: rgba(0, 0, 0, 0.15);
}

.career-steps {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    position: relative;
}

.career-steps::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--theme-accent), transparent);
}

.career-step {
    position: relative;
    padding: 0.55rem 0.55rem 0.55rem 2.4rem;
    margin-bottom: 0.55rem;
}

.career-step::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0.75rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--theme-panel);
    border: 3px solid var(--theme-accent);
    z-index: 1;
}

.career-step.is-done::before {
    background: var(--theme-accent);
}

.career-step h3 {
    font-size: 0.98rem;
    color: var(--theme-ink);
    margin-bottom: 0.2rem;
}

.career-step p {
    color: var(--theme-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.qa-item {
    display: block;
    padding: 1.1rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.qa-item.is-solved {
    background: linear-gradient(90deg, rgba(134, 239, 172, 0.08), transparent 55%);
}

.eic-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: rgba(134, 239, 172, 0.16);
    color: #86efac;
    border: 1px solid rgba(134, 239, 172, 0.45);
}

.answer-card {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    margin-top: 0.65rem;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.answer-card.is-best {
    border-color: rgba(134, 239, 172, 0.55);
    background: rgba(134, 239, 172, 0.07);
    box-shadow: 0 0 0 1px rgba(134, 239, 172, 0.15);
}

.btn-eic {
    border: 1px solid rgba(201, 169, 98, 0.45);
    background: transparent;
    color: var(--theme-accent, #c9a962);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.btn-eic:hover {
    background: rgba(201, 169, 98, 0.12);
}

.btn-eic.is-selected {
    background: rgba(134, 239, 172, 0.18);
    border-color: rgba(134, 239, 172, 0.55);
    color: #86efac;
    cursor: default;
}

.level-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.level-chip {
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 0.7rem 0.75rem;
    background: var(--theme-card);
}

.level-chip.is-current {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.25);
}

.level-chip h4 {
    color: var(--theme-accent);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.level-chip p {
    color: var(--theme-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

.unlock-list {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    color: var(--theme-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.rep-what-is-link {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--theme-accent, #c9a962);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.rep-what-is-link:hover {
    color: #dbbc74;
}

.rep-what-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
}

.rep-what-modal[hidden] {
    display: none !important;
}

.rep-what-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 16, 0.55);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.rep-what-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    max-height: min(88vh, 640px);
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(201, 169, 98, 0.35);
    background:
        radial-gradient(ellipse at 0% 0%, rgba(201, 169, 98, 0.14), transparent 55%),
        linear-gradient(165deg, #141a22 0%, #0d1218 100%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    padding: 0.9rem 1.15rem 1.1rem;
}

.rep-what-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.rep-what-modal-head h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--theme-accent, #c9a962);
}

.rep-what-modal-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--theme-muted, #c8c2b6);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.1rem 0.35rem;
}

.rep-what-modal-close:hover {
    color: #fff;
}

.rep-what-modal-body .unlock-list {
    margin: 0;
    padding-left: 1.1rem;
}

.rep-what-copy {
    margin: 0;
}

.rep-what-copy p {
    margin: 0 0 0.7rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--theme-muted, #c8c2b6);
}

.rep-what-copy p:last-child {
    margin-bottom: 0;
}

.rep-what-copy strong {
    color: var(--theme-ink, #f2efe8);
    font-weight: 700;
}

.rep-what-copy .rep-what-earn {
    padding-top: 0.35rem;
    border-top: 1px solid rgba(201, 169, 98, 0.2);
}

.rep-what-copy .rep-what-note {
    margin-top: 0.85rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(201, 169, 98, 0.22);
    font-size: 0.8rem;
    line-height: 1.5;
}

body.rep-what-modal-open {
    overflow: hidden;
}

.rep-what-is {
    margin-top: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(201, 169, 98, 0.28);
    background: rgba(201, 169, 98, 0.06);
}

.rep-what-is summary {
    cursor: pointer;
    list-style: none;
    padding: 0.65rem 0.75rem;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--theme-accent, #c9a962);
}

.rep-what-is summary::-webkit-details-marker {
    display: none;
}

.rep-what-is summary::after {
    content: '▾';
    float: right;
    opacity: 0.7;
    font-weight: 400;
}

.rep-what-is[open] summary::after {
    content: '▴';
}

.rep-what-is .unlock-list {
    margin: 0;
    padding: 0 0.85rem 0.8rem 1.85rem;
}

.rep-summary-title {
    color: var(--theme-ink);
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.rep-spendable {
    margin: 0 0 0.55rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--theme-muted);
}

.rep-spendable strong {
    color: var(--theme-accent, #c9a962);
    font-weight: 800;
}

.rep-perks-overview {
    margin: 0.85rem 0 0.35rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(201, 169, 98, 0.28);
    background: rgba(201, 169, 98, 0.06);
}

.rep-perks-overview-title {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--theme-accent, #c9a962);
}

.rep-perks-overview-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.rep-perks-overview-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.55rem;
    align-items: center;
    font-size: 0.84rem;
    line-height: 1.35;
}

.rep-perk-lv {
    min-width: 2.1rem;
    font-weight: 800;
    color: var(--theme-accent, #c9a962);
}

.rep-perk-label {
    color: var(--theme-ink, #f2efe8);
}

.rep-perk-label em {
    font-style: normal;
    color: var(--theme-muted, #c8c2b6);
    font-size: 0.78rem;
}

.rep-perk-state {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.rep-perks-overview-list li.is-on .rep-perk-state {
    color: #86efac;
}

.rep-perks-overview-list li.is-premium-perk .rep-perk-state {
    color: #fbbf24;
}

.rep-perks-overview-list li.is-off {
    opacity: 0.72;
}

.rep-perks-overview-list li.is-off .rep-perk-state {
    color: #fca5a5;
}

.rep-poll-status {
    margin: 0.65rem 0 0;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    font-size: 0.86rem;
    line-height: 1.45;
}

.rep-poll-status.is-locked {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fecaca;
}

.rep-poll-status.is-open {
    background: rgba(134, 239, 172, 0.12);
    border: 1px solid rgba(134, 239, 172, 0.4);
    color: #bbf7d0;
}

.poll-gate-banner {
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.poll-gate-banner.is-locked {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.poll-gate-banner.is-open {
    background: rgba(134, 239, 172, 0.12);
    border: 1px solid rgba(134, 239, 172, 0.45);
    color: #bbf7d0;
}

#anket-card.is-poll-locked .wizard-form.is-locked {
    opacity: 0.55;
    pointer-events: none;
}

#poll-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rep-summary-card .rep-bar {
    margin-top: 0.35rem;
}

.rep-scale {
    margin: 0.55rem 0 0.25rem;
    overflow: visible;
}

.rep-scale-gifts {
    position: relative;
    height: 3.55rem;
    margin-bottom: 0.1rem;
}

.rep-gift {
    appearance: none;
    position: absolute;
    bottom: 0;
    width: 34px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 4;
    transform: translateX(-50%);
}

.rep-gift.is-start {
    transform: translateX(0);
}

.rep-gift.is-end {
    transform: translateX(-100%);
}

.rep-gift-wrap {
    position: relative;
    display: block;
    width: 28px;
    height: 28px;
    margin: 8px auto 0;
    line-height: 28px;
    text-align: center;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
    transform-origin: 50% 80%;
}

.rep-gift-emoji {
    display: block;
    font-size: 1.45rem;
    line-height: 28px;
    transform-origin: 50% 80%;
}

.rep-gift-lid {
    position: absolute;
    left: 4px;
    right: 4px;
    top: 1px;
    height: 11px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, #ff7a7a, #d44545);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform-origin: 16% 100%;
    transition: transform 0.38s cubic-bezier(0.22, 1.2, 0.36, 1);
    z-index: 2;
    pointer-events: none;
}

.rep-gift-lid::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -3px;
    width: 7px;
    height: 6px;
    margin-left: -3.5px;
    background: #f3d27a;
    border-radius: 50%;
    box-shadow: -5px 1px 0 #e8c45c, 5px 1px 0 #e8c45c;
}

.rep-gift:hover .rep-gift-wrap,
.rep-gift:focus-visible .rep-gift-wrap {
    transform: translateY(-1px) scale(1.08);
}

.rep-gift.is-claimable .rep-gift-wrap {
    animation: rep-gift-bounce 1.15s ease-in-out infinite;
}

.rep-gift.is-claimable:hover .rep-gift-wrap,
.rep-gift.is-open .rep-gift-wrap,
.rep-gift.is-claimed .rep-gift-wrap {
    animation: none;
}

@keyframes rep-gift-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-3px) rotate(-7deg); }
    60% { transform: translateY(-1px) rotate(6deg); }
}

.rep-gift.is-claimed .rep-gift-lid {
    background: linear-gradient(180deg, #f0d48a, #c9a962);
}

.rep-gift.is-locked {
    opacity: 0.72;
}

.rep-gift.is-claimed .rep-gift-lid,
.rep-gift.is-open .rep-gift-lid {
    transform: rotate(-52deg) translate(-2px, -4px);
}

.rep-gift.is-claimed .rep-gift-emoji,
.rep-gift.is-open .rep-gift-emoji {
    transform: scale(1.06);
    transition: transform 0.25s ease;
}

.rep-gift-pop {
    position: absolute;
    left: 50%;
    bottom: calc(100% - 2px);
    min-width: 8.5rem;
    max-width: 11.5rem;
    padding: 0.38rem 0.5rem;
    border-radius: 8px;
    background: #1c2434;
    border: 1px solid rgba(201, 169, 98, 0.45);
    color: #f2efe8;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px) scale(0.86);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 6;
}

.rep-gift-pop strong {
    color: #dbbc74;
    display: inline;
}

.rep-gift-status {
    display: block;
    margin-top: 0.18rem;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #dbbc74;
}

.rep-gift.is-claimed .rep-gift-status {
    color: #8fd4a4;
}

.rep-gift.is-locked .rep-gift-status {
    color: #e8a0a0;
}

.rep-gift.is-open .rep-gift-pop {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px) scale(1);
}

.rep-gift.is-start .rep-gift-pop {
    left: 0;
    transform: translateX(0) translateY(6px) scale(0.86);
}

.rep-gift.is-start.is-open .rep-gift-pop {
    transform: translateX(0) translateY(-2px) scale(1);
}

.rep-gift.is-end .rep-gift-pop {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(6px) scale(0.86);
}

.rep-gift.is-end.is-open .rep-gift-pop {
    transform: translateX(0) translateY(-2px) scale(1);
}

.rep-scale-steps {
    position: relative;
    height: 1.15rem;
    margin-bottom: 0.3rem;
}

.rep-scale-step {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--theme-muted, #c8c2b6);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.rep-scale-step.is-start {
    transform: translateX(0);
}

.rep-scale-step.is-end {
    transform: translateX(-100%);
}

.rep-scale-step.is-current {
    color: var(--theme-accent, #c9a962);
}

.rep-scale-thresholds {
    position: relative;
    height: 1rem;
    margin-top: 0.28rem;
}

.rep-scale-threshold {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--theme-muted, #c8c2b6);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.rep-scale-threshold.is-start {
    transform: translateX(0);
}

.rep-scale-threshold.is-end {
    transform: translateX(-100%);
}

.rep-scale-threshold.is-current {
    color: var(--theme-accent, #c9a962);
}

.rep-scale-you {
    margin: 0.5rem 0 0;
    color: var(--theme-ink, #f2efe8);
    font-weight: 800;
    font-size: 0.8rem;
    text-align: center;
}

.rep-perks-overview-list li.is-off .rep-perk-state {
    color: var(--theme-muted, #94a3b8);
}

.rep-perks-overview + .rep-perks-overview {
    margin-top: 0.55rem;
}

.rep-bar--scale {
    position: relative;
    overflow: visible;
    height: 10px;
    margin-top: 0;
}

.rep-bar--scale .rep-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--theme-accent), #e8d59a);
    max-width: 100%;
}

.rep-scale-tick {
    position: absolute;
    top: 50%;
    width: 2px;
    height: 14px;
    margin-left: -1px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.35);
    border-radius: 1px;
    pointer-events: none;
    z-index: 1;
}

.rep-scale-tick.is-current {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.7);
}

.rep-scale-marker {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--theme-accent, #c9a962);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.25);
    z-index: 2;
    pointer-events: none;
}

.qa-score {
    text-align: center;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    padding: 0.45rem 0.25rem;
    background: var(--theme-card);
}

.qa-score strong {
    display: block;
    font-size: 1.15rem;
    color: var(--theme-accent);
}

.qa-score button {
    border: none;
    background: transparent;
    color: var(--theme-muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 800;
}

.qa-score button:hover { color: var(--theme-accent); }

.badge-pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    margin-right: 0.3rem;
    background: rgba(201, 169, 98, 0.15);
    color: var(--theme-accent);
    border: 1px solid var(--theme-border);
}

.rep-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-top: 0.45rem;
}

.rep-bar > span:not(.rep-scale-tick):not(.rep-scale-marker) {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--theme-accent), var(--theme-info, #7dd3fc));
}

/* —— Araç sekmeleri —— */
.tools-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    margin: 0 auto 1.1rem;
    max-width: 1040px;
}

.tools-switch-btn {
    appearance: none;
    border: 1px solid var(--theme-border, rgba(201, 169, 98, 0.28));
    background: rgba(255, 255, 255, 0.04);
    color: var(--brand-muted, #c8c2b6);
    font: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tools-switch-btn:hover {
    color: var(--theme-accent, #c9a962);
    border-color: rgba(201, 169, 98, 0.45);
}

.tools-switch-btn.is-active {
    color: #1a1408;
    background: linear-gradient(180deg, #dbbc74, #a8883e);
    border-color: rgba(201, 169, 98, 0.55);
}

/* —— Lojman Puanı Hesaplama —— */
.lojman-panel {
    padding-bottom: 1.6rem;
}

.lojman-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lojman-row {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(200px, 0.85fr);
    gap: 1rem 1.25rem;
    align-items: center;
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lojman-q p {
    margin: 0;
    color: var(--theme-ink, #f2efe8);
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 600;
}

.lojman-rule {
    margin-top: 0.35rem !important;
    color: #f87171 !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.lojman-rule strong {
    font-weight: 800;
}

.lojman-a select,
.lojman-a input[type="number"] {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #555;
    background: #1c1f26;
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
}

.lojman-ymd {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.lojman-ymd label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-muted, #c8c2b6);
}

.lojman-ymd input {
    width: 100%;
}

.lojman-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    align-items: center;
}

.lojman-radios label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--theme-ink, #f2efe8);
    cursor: pointer;
}

.lojman-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 1.15rem;
}

.lojman-calc-btn {
    appearance: none;
    border: none;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
    border-radius: 6px;
    cursor: pointer;
    min-width: 8.5rem;
}

.lojman-calc-btn:hover {
    background: #1d4ed8;
}

.lojman-result {
    margin-top: 1.25rem;
}

.lojman-result-card {
    border: 1px solid var(--theme-border, rgba(201, 169, 98, 0.28));
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    padding: 1rem 1.1rem 1.15rem;
}

.lojman-result-card h3 {
    margin: 0 0 0.75rem;
    color: var(--theme-accent, #22d3ee);
    font-size: 1.1rem;
}

.lojman-res-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.lojman-res-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.15rem 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.lojman-res-ad {
    grid-column: 1;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--theme-ink, #f2efe8);
}

.lojman-res-meta {
    grid-column: 1;
    font-size: 0.78rem;
    color: var(--brand-muted, #c8c2b6);
}

.lojman-res-puan {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 1rem;
}

.lojman-res-list li.is-pos .lojman-res-puan { color: #4ade80; }
.lojman-res-list li.is-neg .lojman-res-puan { color: #f87171; }

.lojman-total {
    margin: 1rem 0 0.45rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--theme-ink, #f2efe8);
}

.lojman-total strong {
    color: var(--theme-accent, #22d3ee);
    font-size: 1.35rem;
}

.lojman-disclaimer {
    margin: 0;
    font-size: 0.78rem;
    color: var(--brand-muted, #c8c2b6);
    line-height: 1.4;
}

@media (max-width: 820px) {
    .lojman-row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .lojman-actions {
        justify-content: stretch;
    }

    .lojman-calc-btn {
        width: 100%;
    }
}

/* —— Profesyonel araç sayfaları (Dilekçe Robotu, Memur YZ) —— */
.tools-pro-hero {
    display: grid;
    gap: 1rem;
    margin: 0 auto 1.25rem;
    max-width: 1040px;
    padding: 1.15rem 1.2rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(201, 169, 98, 0.28);
    background:
        linear-gradient(135deg, rgba(201, 169, 98, 0.1), transparent 42%),
        linear-gradient(180deg, rgba(8, 10, 14, 0.92), rgba(8, 10, 14, 0.78));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    text-align: left !important;
}

@media (min-width: 820px) {
    .tools-pro-hero {
        grid-template-columns: 1fr minmax(220px, 280px);
        align-items: start;
    }
}

.tools-pro-hero h1 {
    margin: 0;
    text-align: left !important;
}

.tools-pro-title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tools-pro-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-accent, #c9a962);
}

.tools-pro-lead {
    margin: 0.55rem 0 0;
    max-width: 42rem;
    line-height: 1.55;
    font-size: 0.9rem;
    color: var(--theme-muted, #c8c2b6);
}

.tools-pro-guide {
    appearance: none;
    width: 1.45rem;
    height: 1.45rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c9a962;
    background: rgba(201, 169, 98, 0.14);
    cursor: help;
}

.tools-pro-guide:hover {
    background: rgba(201, 169, 98, 0.26);
}

.tools-pro-flow {
    list-style: none;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
    display: grid;
    gap: 0.45rem;
}

.tools-pro-flow li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #d1d5db;
}

.tools-pro-flow li span {
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: #1a1408;
    background: linear-gradient(180deg, #dbbc74, #a8883e);
}

.tools-panel-head {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(201, 169, 98, 0.16);
}

.tools-panel-head h2 {
    margin: 0.12rem 0 0;
}

.tools-panel-lead {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--theme-muted, #9ca3af);
}

.tools-pro-panel {
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.wizard-form input,
.wizard-form select,
.wizard-form textarea {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 18, 24, 0.88);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wizard-form input:focus,
.wizard-form select:focus,
.wizard-form textarea:focus {
    outline: none;
    border-color: rgba(201, 169, 98, 0.45);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}

.wizard-form .btn-submit {
    border-radius: 8px;
    background: linear-gradient(180deg, #dbbc74, #a8883e);
    color: #1a1408;
    box-shadow: 0 4px 14px rgba(168, 136, 62, 0.25);
}

.draft-out--pro {
    min-height: 200px;
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 98, 0.2);
    background: rgba(0, 0, 0, 0.28);
    font-family: Manrope, system-ui, sans-serif;
}

.draft-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.ai-chat--pro {
    height: min(62vh, 540px);
    min-height: 420px;
    border-radius: 12px;
    border-color: rgba(201, 169, 98, 0.18);
    background:
        linear-gradient(180deg, rgba(8, 12, 18, 0.55), rgba(0, 0, 0, 0.35));
}

.ai-compose--pro {
    margin-top: 0.75rem;
    padding: 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 98, 0.16);
    background: rgba(0, 0, 0, 0.18);
}

.ai-compose--pro button {
    border-radius: 8px;
    background: linear-gradient(180deg, #dbbc74, #a8883e);
    color: #1a1408;
}

.quick-asks--pro {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-asks--pro::before {
    content: 'Hızlı sorular';
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-muted, #9ca3af);
}
