/* =============================================================================
   FUTBOLCU — Ortak Bileşenler (v3 Saha)
   Modal · Confirm · Prompt · Toast
   Bu dosyadaki stiller assets/js/components.js tarafından kullanılır.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   0. ORTAK MODAL KAPATMA (X) BUTONU — kare, X tam ortada, v3 Saha
   -------------------------------------------------------------------------- */
.fb-modal-x,
.fb-mo-x,
.fb-modal-close {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    flex: 0 0 28px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #12291E;
    color: #FFF8E7;
    border: 2px solid #0C1F16;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(12, 31, 22, .35);
    box-sizing: border-box;
    transition: background .14s ease, color .14s ease, transform .1s ease, box-shadow .1s ease;
    -webkit-user-select: none;
    user-select: none;
}

.fb-modal-x:hover,
.fb-mo-x:hover,
.fb-modal-close:hover {
    background: #E8552B;
    color: #FFF8E7;
    border-color: #12291E;
}

.fb-modal-x:active,
.fb-mo-x:active,
.fb-modal-close:active {
    transform: translateY(1px);
    box-shadow: 1px 1px 0 rgba(12, 31, 22, .35);
}

/* -----------------------------------------------------------------------------
   1. MODAL / DİYALOG
   -------------------------------------------------------------------------- */
.fb-mo-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999000;
    background: rgba(9, 24, 17, .72);
    display: grid;
    place-items: start center;
    overflow-y: auto;
    padding: 20px;
    opacity: 0;
    transition: opacity .18s ease;
}

.fb-mo-backdrop.open {
    opacity: 1;
}

.fb-mo {
    width: min(460px, 100%);
    margin: auto 0;
    background: #F5F0E1;
    border: 3px solid #12291E;
    box-shadow: 10px 10px 0 rgba(9, 24, 17, .5);
    font-family: Archivo, system-ui, sans-serif;
    transform: translateY(-14px) scale(.98);
    transition: transform .2s cubic-bezier(.175, .885, .32, 1.275);
}

.fb-mo-backdrop.open .fb-mo {
    transform: translateY(0) scale(1);
}

.fb-mo.wide {
    width: min(720px, 100%);
}

.fb-mo.xwide {
    width: min(1040px, 96vw);
}

.fb-mo-head {
    background: #1B3A2B;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 3px solid #12291E;
}

.fb-mo-head .fb-mo-chip {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    background: var(--ac, #E8552B);
    border: 1px solid #12291E;
    display: block;
}

.fb-mo-title {
    font-family: Anton, sans-serif;
    font-size: 18px;
    color: #F5F0E1;
    letter-spacing: .04em;
    margin-right: auto;
    text-transform: uppercase;
    line-height: 1.2;
}

.fb-mo-body {
    padding: 18px;
    display: grid;
    gap: 14px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.55;
    color: #16281F;
}

.fb-mo-body p {
    margin: 0;
    text-wrap: pretty;
}

.fb-mo-foot {
    padding: 0 18px 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.fb-mo-foot .fb-mo-btn {
    flex: 1 1 auto;
    min-width: 120px;
}

/* Modal içi form alanları */
.fb-mo-field {
    display: grid;
    gap: 6px;
}

.fb-mo-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    color: #6C7C6F;
    text-transform: uppercase;
}

.fb-mo-input,
.fb-mo-textarea {
    width: 100%;
    border: 3px solid #12291E;
    background: #FFFBF0;
    padding: 10px 12px;
    font-family: Archivo, sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #16281F;
    outline: none;
    box-sizing: border-box;
}

.fb-mo-textarea {
    font-weight: 600;
    resize: vertical;
    min-height: 96px;
}

.fb-mo-input:focus,
.fb-mo-textarea:focus {
    box-shadow: inset 0 0 0 3px #F2B134;
}

/* -----------------------------------------------------------------------------
   2. BUTONLAR (modal + genel kullanım)
   -------------------------------------------------------------------------- */
.fb-mo-btn {
    cursor: pointer;
    border: 3px solid #12291E;
    background: #FFFBF0;
    color: #16281F;
    padding: 12px 18px;
    font-family: Anton, sans-serif;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 rgba(12, 31, 22, .35);
    transition: transform .12s ease, box-shadow .12s ease;
}

.fb-mo-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(12, 31, 22, .4);
}

.fb-mo-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(12, 31, 22, .3);
}

.fb-mo-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 4px 0 rgba(12, 31, 22, .2);
}

.fb-mo-btn.primary {
    background: var(--ac, #E8552B);
    color: #FFF8E7;
}

.fb-mo-btn.danger {
    background: #E8552B;
    color: #FFF8E7;
}

.fb-mo-btn.ghost {
    background: #FFFBF0;
    color: #6C7C6F;
}

/* -----------------------------------------------------------------------------
   3. TOAST
   -------------------------------------------------------------------------- */
#fb-toast-container {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 9999999;
    display: grid;
    gap: 12px;
    pointer-events: none;
    max-width: 380px;
    width: calc(100vw - 48px);
}

.fb-toast {
    pointer-events: auto;
    background: #F5F0E1;
    color: #16281F;
    border: 3px solid #12291E;
    box-shadow: 6px 6px 0 rgba(12, 31, 22, .45);
    font-family: Archivo, sans-serif;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .22s ease, transform .22s cubic-bezier(.175, .885, .32, 1.275);
}

.fb-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.fb-toast-head {
    background: #1B3A2B;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #12291E;
}

.fb-toast-head .fb-toast-kind {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fb-toast-head .fb-toast-chip {
    width: 10px;
    height: 10px;
    background: var(--ac, #E8552B);
    display: block;
    border: 1px solid #12291E;
}

.fb-toast-head .fb-toast-label {
    font-family: Anton, sans-serif;
    font-size: 13px;
    letter-spacing: .06em;
    color: #F5F0E1;
    text-transform: uppercase;
}

.fb-toast-icon {
    font-size: 14px;
}

.fb-toast-msg {
    padding: 11px 14px;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.4;
}

/* Toast türleri */
.fb-toast.error {
    background: #E8552B;
    color: #FFF8E7;
}

.fb-toast.error .fb-toast-head {
    background: #12291E;
}

.fb-toast.warning {
    background: #F2B134;
    color: #5A3D06;
}

.fb-toast.warning .fb-toast-label {
    color: #F5F0E1;
}

/* -----------------------------------------------------------------------------
   4. KEBAB (⋯) AKSİYON MENÜSÜ
   -------------------------------------------------------------------------- */
.fb-menu-trigger {
    cursor: pointer;
    width: 32px;
    height: 30px;
    padding: 0;
    border: 2px solid #12291E;
    background: #EDE8D8;
    color: #12291E;
    font-family: Anton, sans-serif;
    font-size: 17px;
    line-height: 1;
    letter-spacing: .04em;
    box-shadow: 2px 2px 0 rgba(12, 31, 22, .3);
    transition: background .12s ease, transform .12s ease;
}

.fb-menu-trigger:hover {
    background: #F2B134;
}

.fb-menu-trigger[aria-expanded="true"] {
    background: #F2B134;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 rgba(12, 31, 22, .3);
}

.fb-menu-trigger:focus-visible {
    outline: 3px solid #2B6BE8;
    outline-offset: 2px;
}

.fb-menu {
    position: absolute;
    z-index: 9998000;
    min-width: 190px;
    background: #F5F0E1;
    border: 3px solid #12291E;
    box-shadow: 6px 6px 0 rgba(12, 31, 22, .45);
    display: grid;
    font-family: Archivo, sans-serif;
}

.fb-menu-item {
    cursor: pointer;
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 2px solid #E4DDC8;
    background: transparent;
    padding: 11px 14px;
    font-family: Archivo, sans-serif;
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: .04em;
    color: #16281F;
    text-transform: uppercase;
}

.fb-menu-item:last-child {
    border-bottom: none;
}

.fb-menu-item:hover:not([disabled]),
.fb-menu-item:focus-visible {
    background: #E4DDC8;
    outline: none;
}

.fb-menu-item[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

.fb-menu-item.danger {
    color: #B3401C;
}

.fb-menu-item.danger:hover:not([disabled]) {
    background: #E8552B;
    color: #FFF8E7;
}

.fb-menu-sep {
    height: 3px;
    background: #12291E;
}

/* -----------------------------------------------------------------------------
   4b. GİRİŞ YAPILMAMIŞ HEADER — kayıt / giriş butonları
   -------------------------------------------------------------------------- */
.fb-auth-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.fb-auth-actions .fb-btn {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .fb-auth-actions {
        gap: 6px;
    }

    .fb-auth-actions .fb-btn {
        padding: 8px 10px;
        font-size: 11px;
        letter-spacing: .06em;
    }
}

/* -----------------------------------------------------------------------------
   5. DUYURU BARI (kayan şerit)
   Renkler ve süre header.php'den --ann-* değişkenleriyle gelir.
   -------------------------------------------------------------------------- */
.fb-ann {
    width: 100%;
    box-sizing: border-box;
    background: var(--ann-bg, #F2B134);
    color: var(--ann-fg, #12291E);
    border-bottom: 3px solid #12291E;
    overflow: hidden;
}

/* Şeridin görünür penceresi. Kenarlarda yumuşak solma: duyuru sert kesilmek
   yerine kenara geldikçe kaybolur. */
.fb-ann-viewport {
    position: relative;
    overflow: hidden;
    min-height: 34px;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right,
        transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
    mask-image: linear-gradient(to right,
        transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
}

.fb-ann-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    white-space: nowrap;
    font-family: Archivo, sans-serif;
}

/* JS devraldığında öğe akış için konumlanır.
   Dikey ortalama top/bottom ile yapılır; transform animasyona ait. */
.fb-ann-item.is-live {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    will-change: transform;
}

/* JS yoksa veya hareket hassasiyeti açıksa: ortada sabit, tek satır. */
.fb-ann-item.is-static {
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fb-ann-tag {
    flex: 0 0 auto;
    background: #12291E;
    color: #F2B134;
    font-family: Anton, sans-serif;
    font-size: 10px;
    letter-spacing: .12em;
    padding: 3px 7px;
}

.fb-ann-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;
}

.fb-ann-body {
    font-size: 12px;
    font-weight: 500;
    opacity: .92;
}

.fb-ann-btn {
    flex: 0 0 auto;
    display: inline-block;
    background: #12291E;
    color: #F2B134 !important;
    border: 2px solid #12291E;
    box-shadow: 2px 2px 0 rgba(12, 31, 22, .35);
    font-family: Anton, sans-serif;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 4px 11px;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.fb-ann-btn:hover {
    background: #E8552B;
    color: #FFF8E7 !important;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 rgba(12, 31, 22, .35);
}

.fb-ann-btn:focus-visible {
    outline: 3px solid #2B6BE8;
    outline-offset: 2px;
}

/* Hareket hassasiyeti: JS zaten animasyonu başlatmaz (is-static),
   burada da kenar solmasını kaldırıp metni tam okunur bırakıyoruz. */
@media (prefers-reduced-motion: reduce) {
    .fb-ann-viewport {
        -webkit-mask-image: none;
        mask-image: none;
        justify-content: center;
    }
}

/* -----------------------------------------------------------------------------
   6. MOBİL
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
    #fb-toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }

    .fb-mo-foot .fb-mo-btn {
        flex: 1 1 100%;
    }
}

/* =============================================================================
   7. ANİMASYONLAR & MİKRO ETKİLEŞİMLER (v3 Saha)
   ========================================================================== */
@keyframes fbBob {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-4px) rotate(1deg); }
}

@keyframes fbSlide {
    from { transform: translateY(-8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fbGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes fbReveal {
    from { -webkit-mask-size: 0% 100%; mask-size: 0% 100%; }
    to { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
}

@keyframes fbPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

@keyframes fbFill {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fbDash {
    0% { background-position: 0 0; }
    100% { background-position: 28.284px 0; }
}

@keyframes fbFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}

@keyframes fbGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(242, 177, 52, 0); }
    50% { box-shadow: 0 0 0 7px rgba(242, 177, 52, .35); }
}

@keyframes fbShine {
    0% { transform: translateX(-120%) skewX(-18deg); }
    100% { transform: translateX(320%) skewX(-18deg); }
}

@keyframes fbSpinCoin {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

@keyframes fbCount {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

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

@keyframes fbHeadIn {
    from { transform: translateX(-12px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fbTick {
    from { transform: scale(.86); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Sınıflar */
.fb-lift {
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease !important;
}

.fb-lift:hover {
    transform: translate(-3px, -3px) !important;
    box-shadow: 6px 6px 0 rgba(12, 31, 22, .4) !important;
}

.fb-lift:active {
    transform: translate(2px, 2px) !important;
    box-shadow: 2px 2px 0 rgba(12, 31, 22, .4) !important;
}

.fb-shine {
    position: relative;
    overflow: hidden;
}

.fb-shine::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 35%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    animation: fbShine 2.8s ease-in-out infinite;
    pointer-events: none;
}

.fb-bar {
    transform-origin: bottom;
    animation: fbGrow .7s cubic-bezier(.2, .9, .25, 1) both;
}

.fb-bar:hover {
    filter: brightness(1.12) saturate(1.15);
    transform: translateY(-3px);
    transition: transform .14s ease, filter .14s ease;
}

.fb-reveal {
    -webkit-mask-image: linear-gradient(#000, #000);
    mask-image: linear-gradient(#000, #000);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left top;
    mask-position: left top;
    animation: fbReveal 1.1s ease both;
}

.fb-dot {
    animation: fbPop .45s cubic-bezier(.3, 1.4, .4, 1) both;
}

.fb-dot:hover {
    transform: scale(1.7);
    transition: transform .14s ease;
    z-index: 5;
}

.fb-meter {
    /* inline dynamic width is respected */
}

.fb-hatch {
    background: repeating-linear-gradient(
        -45deg,
        #E8552B 0px,
        #E8552B 10px,
        #FA8C6A 10px,
        #FA8C6A 20px
    ) !important;
    background-color: #E8552B !important;
    background-size: 28.284px 28.284px !important;
    animation: fbDash 0.85s linear infinite !important;
}

.fb-meter.fb-hatch {
    animation: fbDash 0.85s linear infinite !important;
}

.fb-cell {
    transition: transform .14s ease, outline-color .14s ease;
    outline: 3px solid transparent;
    outline-offset: -3px;
}

.fb-cell:hover {
    transform: scale(1.28);
    outline-color: #F5F0E1;
    position: relative;
    z-index: 4;
}

.fb-slot {
    transition: transform .14s ease, filter .14s ease;
}

.fb-slot:hover {
    transform: translateY(-4px) rotate(-2deg);
    filter: brightness(1.08);
    z-index: 3;
}

.fb-coin {
    animation: fbSpinCoin 3.4s ease-in-out infinite;
    display: inline-grid;
    place-items: center;
}

.fb-glow {
    animation: fbGlow 2.4s ease-in-out infinite;
}

.fb-num {
    animation: fbCount 2s ease-in-out infinite;
}

.fb-row {
    transition: background .14s ease, transform .14s ease;
}

.fb-row:hover {
    background: #FFF3DC !important;
    transform: translateX(3px);
}

.fb-icon {
    transition: transform .14s ease, background .14s ease;
}

.fb-icon:hover {
    transform: translateY(-3px) scale(1.08);
}

.fb-anim-rise {
    animation: fbRise .55s cubic-bezier(.2, .9, .25, 1) both;
}

.fb-head {
    animation: fbHeadIn .5s ease both;
}

.fb-panel {
    transition: transform .18s ease, box-shadow .18s ease;
}

.fb-panel:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 rgba(12, 31, 22, .4);
}

.fb-anim-pop {
    animation: fbTick .3s cubic-bezier(.3, 1.4, .4, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .fb-bar, .fb-reveal, .fb-dot, .fb-meter, .fb-hatch, .fb-coin, .fb-glow, .fb-num, .fb-shine::after, .fb-anim-rise, .fb-head, .fb-anim-pop {
        animation: none !important;
    }
}

/* =============================================================================
   8. UYARI BARLARI (ALERT BANNERS)
   ========================================================================== */
.fb-alert-bar {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #FFF3DC;
    border: 3px solid #12291E;
    box-shadow: 5px 5px 0 rgba(12, 31, 22, .3);
    padding: 12px 15px;
    font-family: Archivo, sans-serif;
    color: #16281F;
    animation: fbSlide .24s ease both;
}

.fb-alert-bar.warning {
    background: #FFF3DC;
}

.fb-alert-bar.danger {
    background: #FFE0D3;
}

.fb-alert-bar.success {
    background: #DCEFCB;
}

.fb-alert-bar.dark {
    background: #1B3A2B;
    color: #F5F0E1;
}

.fb-alert-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    background: #F2B134;
    border: 2px solid #12291E;
    display: grid;
    place-items: center;
    font-family: Anton, sans-serif;
    font-size: 16px;
    color: #16281F;
}

.fb-alert-bar.danger .fb-alert-icon {
    background: #E8552B;
    color: #FFF8E7;
}

.fb-alert-bar.success .fb-alert-icon {
    background: #4F9433;
    color: #FFF8E7;
}

.fb-alert-bar.dark .fb-alert-icon {
    background: #E8552B;
    color: #FFF8E7;
}

.fb-alert-content {
    display: grid;
    gap: 2px;
    margin-right: auto;
}

.fb-alert-title {
    font-family: Anton, sans-serif;
    font-size: 15px;
    letter-spacing: .04em;
    color: #16281F;
    text-transform: uppercase;
}

.fb-alert-bar.dark .fb-alert-title {
    color: #F5F0E1;
}

.fb-alert-desc {
    font-size: 12.5px;
    font-weight: 600;
    color: #6C7C6F;
}

.fb-alert-bar.dark .fb-alert-desc {
    color: #8FB39C;
}

.fb-alert-close {
    cursor: pointer;
    border: 2px solid #12291E;
    background: transparent;
    color: #16281F;
    width: 24px;
    height: 24px;
    font-family: Anton, sans-serif;
    font-size: 14px;
    line-height: 1;
    display: grid;
    place-items: center;
    padding: 0;
    transition: background .12s, color .12s;
}

.fb-alert-close:hover {
    background: #12291E;
    color: #F5F0E1;
}

.fb-alert-bar.dark .fb-alert-close {
    color: #F5F0E1;
    border-color: #0C1F16;
    background: #12291E;
}

/* Tam genişlik, kart kenarlığı/gölgesi olmayan varyant — header altında
   duyuru barıyla (.fb-ann) aynı hizada, siteneli her sayfada tekrar eden bir
   şerit olarak kullanılır (bkz. header.php e-posta uyarı barı). */
.fb-alert-bar--full {
    border: none;
    border-bottom: 3px solid #12291E;
    box-shadow: none;
    border-radius: 0;
    padding: 9px 20px;
    animation: none;
}

.fb-alert-bar--full .fb-alert-desc {
    color: inherit;
    font-weight: 700;
}

.fb-alert-action {
    flex: 0 0 auto;
    display: inline-block;
    background: #12291E;
    color: #F2B134 !important;
    border: 2px solid #12291E;
    box-shadow: 2px 2px 0 rgba(12, 31, 22, .35);
    font-family: Anton, sans-serif;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 5px 12px;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.fb-alert-action:hover {
    background: #E8552B;
    color: #FFF8E7 !important;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 rgba(12, 31, 22, .35);
}

/* =============================================================================
   9. ÖZEL TAKVİM & SAAT SEÇİCİ
   ========================================================================== */
.fb-calendar-widget {
    border: 2.5px solid #12291E;
    background: #FFFBF0;
    box-shadow: 4px 4px 0 rgba(12, 31, 22, .25);
    font-family: Archivo, sans-serif;
    max-width: 280px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.fb-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1B3A2B;
    padding: 5px 8px;
    border-bottom: 2px solid #12291E;
}

.fb-cal-title {
    font-family: Anton, sans-serif;
    font-size: 12.5px;
    color: #F5F0E1;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.fb-cal-nav {
    cursor: pointer;
    border: 1.5px solid #0C1F16;
    background: #12291E;
    color: #8FB39C;
    width: 20px;
    height: 20px;
    font-family: Anton, sans-serif;
    font-size: 11px;
    line-height: 1;
    display: grid;
    place-items: center;
    padding: 0;
    transition: background .12s, color .12s;
}

.fb-cal-nav:hover {
    background: #F2B134;
    color: #12291E;
}

.fb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 4px 6px 6px;
}

.fb-cal-weekday {
    text-align: center;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .06em;
    color: #6C7C6F;
    padding: 1px 0;
}

.fb-cal-day {
    cursor: pointer;
    height: 25px;
    border: 1.5px solid #E4DDC8;
    background: #FFFBF0;
    font-family: Anton, sans-serif;
    font-size: 11px;
    color: #16281F;
    padding: 0;
    display: grid;
    place-items: center;
    transition: transform .1s, background .1s, border-color .1s;
}

.fb-cal-day:hover:not(.empty):not(.disabled) {
    transform: scale(1.12);
    background: #FFF3DC;
    border-color: #F2B134;
    z-index: 2;
}

.fb-cal-day.is-today:not(.selected) {
    border-color: #E8552B;
    background: #FFF1E9;
    color: #B3401C;
    font-weight: 800;
}

.fb-cal-day.selected {
    background: #F2B134 !important;
    border-color: #12291E !important;
    color: #16281F !important;
    box-shadow: 2px 2px 0 rgba(12, 31, 22, .35);
    transform: scale(1.04);
}

.fb-cal-day.disabled {
    opacity: 0.28;
    cursor: not-allowed !important;
    background: #F5EEDB;
    border-color: #E4DDC8;
    pointer-events: none;
}

.fb-cal-day.empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
    pointer-events: none;
}

.fb-cal-foot {
    border-top: 2px solid #12291E;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F5F0E1;
}

.fb-cal-foot-lbl {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .1em;
    color: #6C7C6F;
}

.fb-cal-foot-val {
    font-family: Anton, sans-serif;
    font-size: 14px;
    color: #16281F;
}

/* Saat Seçici */
.fb-timepicker-widget {
    border: 3px solid #12291E;
    background: #FFFBF0;
    box-shadow: 5px 5px 0 rgba(12, 31, 22, .3);
    padding: 10px;
    font-family: Archivo, sans-serif;
    max-width: 240px;
}

.fb-time-cols {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.fb-time-col {
    flex: 1;
    border: 3px solid #12291E;
    background: #FFFBF0;
    max-height: 120px;
    overflow-y: auto;
    display: grid;
}

.fb-time-item {
    cursor: pointer;
    border: none;
    border-bottom: 2px solid #E4DDC8;
    background: #FFFBF0;
    padding: 7px 4px;
    font-family: Anton, sans-serif;
    font-size: 14px;
    color: #16281F;
    text-align: center;
    transition: background .12s;
}

.fb-time-item:hover {
    background: #FFF3DC;
}

.fb-time-item.selected {
    background: #F2B134 !important;
    color: #16281F;
    font-weight: bold;
}

/* =============================================================================
   10. ÖZEL FORM ELEMANLARI (KAYDIRAÇ, ÇOKLU SEÇİM, ETİKET, DERECELENDİRME)
   ========================================================================== */
/* Özel Kaydıraç (Slider) */
.fb-slider-widget {
    display: grid;
    gap: 8px;
    font-family: Archivo, sans-serif;
}

.fb-slider-track-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fb-slider-track {
    flex: 1;
    position: relative;
    height: 22px;
    border: 3px solid #12291E;
    background: #E4DDC8;
    cursor: pointer;
    user-select: none;
}

.fb-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, #F2B134 0 8px, rgba(0, 0, 0, .12) 8px 16px);
    display: block;
    pointer-events: none;
}

.fb-slider-thumb {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 14px;
    margin-left: -7px;
    background: #16281F;
    border: 2px solid #F5F0E1;
    display: block;
    pointer-events: none;
    box-shadow: 2px 2px 0 rgba(0,0,0,.3);
}

.fb-slider-val {
    font-family: Anton, sans-serif;
    font-size: 18px;
    color: #16281F;
    min-width: 44px;
    text-align: right;
}

.fb-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #6C7C6F;
}

/* Özel Açılır Liste (Select) */
.fb-select-box {
    position: relative;
    font-family: Archivo, sans-serif;
}

.fb-select-btn {
    width: 100%;
    cursor: pointer;
    border: 3px solid #12291E;
    background: #FFFBF0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Archivo, sans-serif;
    text-align: left;
    box-shadow: 3px 3px 0 rgba(12, 31, 22, .2);
    font-weight: 700;
    font-size: 13px;
    color: #16281F;
}

.fb-select-btn:hover {
    background: #FFF3DC;
}

.fb-select-dot {
    width: 12px;
    height: 12px;
    background: #F2B134;
    border: 2px solid #12291E;
    display: block;
    flex-shrink: 0;
}

.fb-select-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #12291E;
    margin-left: auto;
    transition: transform .16s ease;
}

.fb-select-box.open .fb-select-arrow {
    transform: rotate(180deg);
}

.fb-select-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 5px);
    z-index: 999;
    background: #F5F0E1;
    border: 3px solid #12291E;
    box-shadow: 5px 5px 0 rgba(12, 31, 22, .4);
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.fb-select-box.open .fb-select-dropdown {
    display: block;
    animation: fbSlide .16s ease both;
}

.fb-select-opt {
    width: 100%;
    cursor: pointer;
    border: none;
    border-bottom: 2px solid #E4DDC8;
    background: #FFFBF0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: Archivo, sans-serif;
    text-align: left;
    font-weight: 700;
    font-size: 12.5px;
    color: #16281F;
    transition: background .12s;
}

.fb-select-opt:hover {
    background: #FFF3DC;
}

.fb-select-opt.selected {
    background: #E4DDC8;
}

/* Çoklu Seçim (Multi-Select Chips) */
.fb-ms-box {
    position: relative;
    font-family: Archivo, sans-serif;
}

.fb-ms-trigger {
    width: 100%;
    cursor: pointer;
    border: 3px solid #12291E;
    background: #FFFBF0;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    box-shadow: 3px 3px 0 rgba(12, 31, 22, .2);
    min-height: 42px;
}

.fb-ms-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #12291E;
    background: #FFF3DC;
    padding: 3px 7px;
    font-size: 10.5px;
    font-weight: 800;
    color: #16281F;
}

.fb-ms-chip-x {
    font-family: Anton, sans-serif;
    font-size: 12px;
    color: #B3401C;
    cursor: pointer;
}

.fb-ms-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 5px);
    z-index: 999;
    background: #F5F0E1;
    border: 3px solid #12291E;
    box-shadow: 5px 5px 0 rgba(12, 31, 22, .4);
    display: none;
    max-height: 180px;
    overflow-y: auto;
}

.fb-ms-box.open .fb-ms-dropdown {
    display: block;
    animation: fbSlide .16s ease both;
}

.fb-ms-item {
    width: 100%;
    cursor: pointer;
    border: none;
    border-bottom: 2px solid #E4DDC8;
    background: #FFFBF0;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: Archivo, sans-serif;
    text-align: left;
    font-weight: 700;
    font-size: 12.5px;
    color: #16281F;
}

.fb-ms-item:hover {
    background: #FFF3DC;
}

.fb-ms-check {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid #12291E;
    background: #FFFBF0;
    display: grid;
    place-items: center;
    font-family: Anton, sans-serif;
    font-size: 11px;
    line-height: 1;
    color: #16281F;
}

.fb-ms-item.checked .fb-ms-check {
    background: #F2B134;
}

/* Etiket Girişi (Tag Box) */
.fb-tagbox {
    border: 3px solid #12291E;
    background: #FFFBF0;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-family: Archivo, sans-serif;
}

.fb-tag-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #12291E;
    background: #FFF3DC;
    padding: 4px 8px;
    font-size: 10.5px;
    font-weight: 800;
    color: #16281F;
    transition: transform .12s, background .12s;
}

.fb-tag-item:hover {
    background: #FFE0D3;
    transform: translateY(-1px);
}

.fb-tag-add-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 2px dashed #8E9683;
    background: transparent;
    padding: 4px 8px;
    font-size: 10.5px;
    font-weight: 800;
    color: #6C7C6F;
    transition: border-color .12s, color .12s;
}

.fb-tag-add-btn:hover {
    border-color: #12291E;
    color: #12291E;
    background: #E4DDC8;
}

/* Aç / Kapa (Switch) */
.fb-switch {
    cursor: pointer;
    width: 62px;
    height: 30px;
    border: 3px solid #12291E;
    background: #E4DDC8;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: background .2s, justify-content .2s;
    user-select: none;
}

.fb-switch.active {
    background: #4F9433;
    justify-content: flex-end;
}

.fb-switch-knob {
    width: 22px;
    height: 20px;
    background: #FFF8E7;
    border: 2px solid #12291E;
    display: block;
    box-shadow: 1px 1px 0 rgba(0,0,0,.25);
}

/* Yıldız Derecelendirme (Star Rating) */
.fb-rating-box {
    display: flex;
    gap: 6px;
}

.fb-rating-star {
    cursor: pointer;
    width: 34px;
    height: 34px;
    border: 3px solid #12291E;
    background: #FFFBF0;
    display: grid;
    place-items: center;
    font-family: Anton, sans-serif;
    font-size: 16px;
    color: #C9C3AC;
    padding: 0;
    transition: transform .14s, background .14s, color .14s;
}

.fb-rating-star.active,
.fb-rating-star:hover {
    background: #F2B134;
    color: #16281F;
    transform: translateY(-2px);
}

/* Sayaç Blokları (Countdown) */
.fb-countdown {
    display: flex;
    gap: 5px;
}

.fb-counter-block {
    background: #12291E;
    border: 2px solid #0C1F16;
    padding: 6px 8px;
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 48px;
    box-shadow: 2px 2px 0 rgba(0,0,0,.3);
}

.fb-counter-num {
    font-family: Anton, sans-serif;
    font-size: 20px;
    color: #EFF6EA;
    line-height: 1;
}

.fb-counter-lbl {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .1em;
    color: #6E9781;
}

/* =============================================================================
   11. GRAFİKLER & VERİ GÖRSELLEŞTİRME
   ========================================================================== */
/* Sütun Grafik */
.fb-barchart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 140px;
    border-bottom: 3px solid #12291E;
    border-left: 3px solid #12291E;
    padding: 0 4px 0 6px;
    background-image: linear-gradient(rgba(18, 41, 30, .08) 2px, transparent 2px);
    background-size: 100% 34px;
}

.fb-bar-col {
    flex: 1;
    display: grid;
    justify-items: center;
    gap: 3px;
    align-content: end;
}

.fb-bar-col .fb-bar-val {
    font-family: Anton, sans-serif;
    font-size: 10px;
    color: #6C7C6F;
}

.fb-bar-col .fb-bar-stick {
    width: 100%;
    border: 2px solid #12291E;
    display: block;
}

/* Çizgi & Form Grafiği */
.fb-linechart-box {
    position: relative;
    height: 140px;
    border: 3px solid #12291E;
    background: #FFFBF0;
    background-image: linear-gradient(rgba(18, 41, 30, .10) 2px, transparent 2px), linear-gradient(90deg, rgba(18, 41, 30, .07) 2px, transparent 2px);
    background-size: 100% 34px, 34px 100%;
    overflow: hidden;
}

/* Yığın Dağılımı (Stack Distribution) */
.fb-stackbar {
    display: flex;
    height: 28px;
    border: 3px solid #12291E;
    background: #E4DDC8;
    overflow: hidden;
}

.fb-stack-seg {
    height: 100%;
    border-right: 2px solid #12291E;
    display: block;
}

.fb-stack-seg:last-child {
    border-right: none;
}

/* Isı Haritası (Heatmap) */
.fb-heatmap-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
    border: 3px solid #12291E;
    background: #2F7A57;
    padding: 3px;
}

.fb-heat-cell {
    aspect-ratio: 1;
    display: block;
    transition: transform .14s, filter .14s;
}

.fb-heat-cell:hover {
    transform: scale(1.3);
    z-index: 5;
    filter: brightness(1.15);
    outline: 2px solid #F5F0E1;
}

/* Kıyaslama Barları (Compare Table) */
.fb-compare-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    padding: 9px 13px;
    border-bottom: 2px solid #E4DDC8;
}

.fb-compare-bar {
    height: 14px;
    border: 2px solid #12291E;
    display: block;
}

/* =============================================================================
   12. BAŞARIM, ÖDÜL & JETON BİLEŞENLERİ
   ========================================================================== */
.fb-ach-box {
    background: #1B3A2B;
    border: 3px solid #12291E;
    box-shadow: 8px 8px 0 rgba(12, 31, 22, .4);
    position: relative;
    overflow: hidden;
    padding: 20px;
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
}

.fb-ach-badge {
    width: 76px;
    height: 76px;
    border-radius: 32%;
    background: linear-gradient(180deg, #FFD26E 0 50%, #C0871E 50%);
    border: 3px solid #12291E;
    display: grid;
    place-items: center;
    font-family: Anton, sans-serif;
    font-size: 32px;
    color: #3A2405;
}

.fb-coin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #12291E;
    border: 2px solid #0C1F16;
    padding: 6px 12px;
    color: #F2B134;
    font-family: Anton, sans-serif;
    font-size: 16px;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

.fb-coin-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #FFE9A8, #F2B134 55%, #C0871E);
    border: 2px solid #8A6114;
    display: block;
}

/* Adım Göstergesi (Stepper) */
.fb-stepper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.fb-step-node {
    display: flex;
    align-items: center;
}

.fb-step-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 3px solid #12291E;
    background: #FFFBF0;
    padding: 8px 12px;
    font-family: Archivo, sans-serif;
}

.fb-step-box.active {
    background: #F2B134;
    box-shadow: 4px 4px 0 rgba(12, 31, 22, .35);
}

.fb-step-box.done {
    background: #DCEFCB;
}

.fb-step-num {
    width: 22px;
    height: 22px;
    background: #12291E;
    border: 2px solid #12291E;
    display: grid;
    place-items: center;
    font-family: Anton, sans-serif;
    font-size: 12px;
    color: #F5F0E1;
}

.fb-step-box.done .fb-step-num {
    background: #4F9433;
}

.fb-step-lbl {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    color: #16281F;
    text-transform: uppercase;
}

.fb-step-line {
    width: 22px;
    height: 3px;
    background: #12291E;
    display: block;
}


/* -----------------------------------------------------------------------------
   KONUŞMA SATIRI (header mesaj paneli) — avatar + son mesaj + okunmamış rozeti
   -------------------------------------------------------------------------- */
.fb-conv {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border: none;
    border-bottom: 1px solid rgba(18, 41, 30, .12);
    background: transparent;
    padding: 10px 12px;
    font-family: inherit;
    transition: background .12s ease;
}

.fb-conv:hover {
    background: rgba(18, 41, 30, .06);
}

.fb-conv.unread {
    background: rgba(242, 177, 52, .14);
}

.fb-conv-av {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #12291E;
    object-fit: cover;
    flex-shrink: 0;
}

.fb-conv-main {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.fb-conv-name {
    font-weight: 800;
    font-size: 13px;
    color: #16281F;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fb-conv-last {
    font-size: 12px;
    color: #6C7C6F;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fb-conv-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.fb-conv-time {
    font-size: 10px;
    font-weight: 700;
    color: #8FB39C;
}

.fb-conv-badge {
    background: #E8552B;
    color: #FFF8E7;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 1.5px solid #12291E;
}

/* -----------------------------------------------------------------------------
   BAŞARIM ANLIK KUTLAMA KARTI (sağ üst)
   -------------------------------------------------------------------------- */
#fb-ach-pop-host {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999998;
    display: grid;
    gap: 12px;
    width: min(340px, calc(100vw - 48px));
    pointer-events: none;
}

.fb-ach-pop {
    pointer-events: auto;
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    background: linear-gradient(135deg, #1B3A2B, #16281F);
    border: 3px solid #12291E;
    box-shadow: 6px 6px 0 rgba(12, 31, 22, .5);
    padding: 12px 14px;
    transform: translateX(-120%);
    opacity: 0;
    transition: transform .35s cubic-bezier(.175, .885, .32, 1.275), opacity .35s ease;
}

.fb-ach-pop.show {
    transform: translateX(0);
    opacity: 1;
}

.fb-ach-pop-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #FFF3C4, #F2B134 60%, #C6870F);
    border: 2.5px solid #12291E;
    display: grid;
    place-items: center;
    font-size: 23px;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(242, 177, 52, .5);
}

.fb-ach-pop-main { display: grid; gap: 2px; min-width: 0; }
.fb-ach-pop-kicker { font-family: Anton, sans-serif; font-size: 10px; letter-spacing: .1em; color: #F2B134; }
.fb-ach-pop-title { font-family: Anton, sans-serif; font-size: 16px; color: #FFF8E7; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-ach-pop-reward { font-size: 11px; font-weight: 700; color: #8FB39C; }

/* Sohbette "daha eski mesajları yükle" butonu */
.fb-chat-more {
    display: block;
    margin: 0 auto 10px;
    background: #FFFBF0;
    border: 2px solid #12291E;
    color: #16281F;
    font-family: Anton, sans-serif;
    font-size: 11px;
    letter-spacing: .04em;
    padding: 5px 12px;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(12, 31, 22, .25);
}

.fb-chat-more:hover { background: #F2B134; }

/* "yazıyor…" alt başlığı */
.fb-chat-sub.typing { color: #7CE0A0; font-style: italic; }

/* -----------------------------------------------------------------------------
   SOHBET "YAZIYOR" BALONU (animasyonlu, akışın altında)
   -------------------------------------------------------------------------- */
.fb-typing {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #E4DDC8;
    border: 2px solid #12291E;
    border-radius: 12px 12px 12px 3px;
    padding: 9px 13px;
    margin-top: 2px;
    width: max-content;
}

.fb-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6C7C6F;
    display: inline-block;
    animation: fbTypingDot 1.2s infinite ease-in-out;
}

.fb-typing span:nth-child(2) { animation-delay: .18s; }
.fb-typing span:nth-child(3) { animation-delay: .36s; }

@keyframes fbTypingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: .35; }
    30%           { transform: translateY(-4px); opacity: 1; }
}

/* -----------------------------------------------------------------------------
   JETON (COIN) DEĞİŞİM ANİMASYONLARI (ARTMA & AZALMA)
   -------------------------------------------------------------------------- */
@keyframes fbCoinPulseGain {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(242, 177, 52, 0);
    }
    28% {
        transform: scale(1.09);
        box-shadow: 0 0 16px rgba(242, 177, 52, 0.75), 0 0 24px rgba(59, 209, 111, 0.45);
        border-color: #F2B134 !important;
    }
    60% {
        transform: scale(1.03);
        box-shadow: 0 0 10px rgba(242, 177, 52, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(242, 177, 52, 0);
    }
}

@keyframes fbCoinPulseLoss {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(232, 85, 43, 0);
    }
    22% {
        transform: scale(0.95) translateX(-3px);
        box-shadow: 0 0 14px rgba(232, 85, 43, 0.65);
        border-color: #E8552B !important;
    }
    45% {
        transform: scale(0.97) translateX(3px);
    }
    70% {
        transform: scale(0.99) translateX(-1px);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(232, 85, 43, 0);
    }
}

@keyframes fbCoinTextGain {
    0% {
        color: var(--gold);
        text-shadow: none;
    }
    25% {
        color: #FFF370;
        text-shadow: 0 0 10px #F2B134, 0 0 16px rgba(242, 177, 52, 0.85);
    }
    100% {
        color: var(--gold);
        text-shadow: none;
    }
}

@keyframes fbCoinTextLoss {
    0% {
        color: var(--gold);
        text-shadow: none;
    }
    25% {
        color: #FF7B7B;
        text-shadow: 0 0 10px rgba(232, 85, 43, 0.85);
    }
    100% {
        color: var(--gold);
        text-shadow: none;
    }
}

@keyframes fbCoinTurboSpin {
    0% {
        transform: rotateY(0deg) scale(1);
    }
    50% {
        transform: rotateY(360deg) scale(1.35);
        filter: drop-shadow(0 0 6px #F2B134);
    }
    100% {
        transform: rotateY(720deg) scale(1);
        filter: drop-shadow(0 0 0 rgba(0,0,0,0));
    }
}

.fb-coin-bump-gain {
    animation: fbCoinPulseGain 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

.fb-coin-bump-loss {
    animation: fbCoinPulseLoss 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

.fb-coin-text-gain {
    animation: fbCoinTextGain 0.85s ease-out forwards;
}

.fb-coin-text-loss {
    animation: fbCoinTextLoss 0.75s ease-out forwards;
}

.fb-coin-turbo-spin {
    animation: fbCoinTurboSpin 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

/* Yüzen Fark Baloncuğu (+150 / -50) */
.fb-coin-floating-diff {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    font-family: Anton, sans-serif;
    font-size: 14px;
    letter-spacing: .06em;
    padding: 3px 8px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    user-select: none;
}

.fb-coin-floating-diff.fb-coin-diff-gain {
    background: #12291E;
    color: #F2B134;
    border: 2px solid #F2B134;
    box-shadow: 2px 2px 0 #0C1F16, 0 0 14px rgba(242, 177, 52, 0.55);
    animation: fbCoinFloatGain 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fb-coin-floating-diff.fb-coin-diff-loss {
    background: #1F0D0D;
    color: #FF7675;
    border: 2px solid #E8552B;
    box-shadow: 2px 2px 0 #0C1F16, 0 0 12px rgba(232, 85, 43, 0.5);
    animation: fbCoinFloatLoss 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fbCoinFloatGain {
    0% {
        opacity: 0;
        transform: translate(-50%, 6px) scale(0.6);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -6px) scale(1.15);
    }
    35% {
        transform: translate(-50%, -10px) scale(1);
    }
    75% {
        opacity: 1;
        transform: translate(-50%, -24px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -38px) scale(0.85);
    }
}

@keyframes fbCoinFloatLoss {
    0% {
        opacity: 0;
        transform: translate(-50%, -6px) scale(0.6);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, 4px) scale(1.1);
    }
    35% {
        transform: translate(-50%, 8px) scale(1);
    }
    75% {
        opacity: 1;
        transform: translate(-50%, 20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 32px) scale(0.85);
    }
}
