/**
 * PiManga Instagram Stories (Hikaye) Stilleri
 * Modern, karanlık tema uyumlu, mobil ve masaüstü tam responsive
 */

/* ==========================================================================
   1. Instagram Avatar Halka (Ring) Bileşeni
   ========================================================================== */
.pimanga-story-avatar-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--avatar-size, 130px);
    height: var(--avatar-size, 130px);
    user-select: none;
    box-sizing: border-box;
}

.pimanga-story-avatar-container[data-has-story="1"],
.pimanga-story-avatar-container[data-is-own="1"] {
    cursor: pointer;
}

.pimanga-story-avatar-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #11141a;
    z-index: 2;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pimanga-story-avatar-inner img,
.pimanga-story-avatar-inner .profile-avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    border: none !important;
}

/* ==========================================================================
   1. profile-avatar-wrapper Doğrudan Hikaye Entegrasyonu
   ========================================================================== */
/* Görülmemiş Hikaye (Zarif, İnce ve Pürüzsüz Instagram Gradyan Çerçevesi) */
.profile-avatar-wrapper.ring-unseen {
    border: none !important;
    padding: 3px !important;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    box-shadow: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.profile-avatar-wrapper.ring-unseen img,
.profile-avatar-wrapper.ring-unseen .profile-avatar {
    border: 2.5px solid #12141a !important; /* İnce ve pürüzsüz koyu ayrım boşluğu */
    border-radius: 50% !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Görülmüş Hikaye (Zarif Mat Koyu Gri Çerçeve) */
.profile-avatar-wrapper.ring-seen {
    border: none !important;
    padding: 2.5px !important;
    background: #374151 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.profile-avatar-wrapper.ring-seen img,
.profile-avatar-wrapper.ring-seen .profile-avatar {
    border: 2px solid #12141a !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Hover Durumunda Profil Fotoğrafı Kesinlikle Büyümez */
.profile-avatar-wrapper:hover,
.profile-avatar-wrapper.ring-unseen:hover,
.profile-avatar-wrapper.ring-seen:hover,
.profile-avatar-wrapper:hover img,
.profile-avatar-wrapper.ring-unseen:hover img,
.profile-avatar-wrapper.ring-seen:hover img {
    transform: none !important;
}

/* Kendi Profili İçin profile-avatar-wrapper Alt Ortasındaki Rozet (+) İkonu (Cinsiyet İkonu Tasarımı) */
.profile-avatar-wrapper .pimanga-story-bottom-add {
    position: absolute !important;
    bottom: -10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 6 !important;
    border: 2px solid #12141a !important;
    background: #141822 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 255, 255, 0.22) !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    outline: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.profile-avatar-wrapper .pimanga-story-bottom-add svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #ffffff !important;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6)) !important;
    display: block !important;
}

.profile-avatar-wrapper .pimanga-story-bottom-add i {
    font-size: 13px !important;
    color: #ffffff !important;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6)) !important;
}

.profile-avatar-wrapper .pimanga-story-bottom-add:hover {
    transform: translateX(-50%) scale(1.15) !important;
    background: #1d2230 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 12px rgba(255, 255, 255, 0.35) !important;
}

/* Standart Bileşen Çerçeve Desteği (Genel Kartlar / Helper İçin) */
.pimanga-story-avatar-container.ring-unseen {
    padding: 2.5px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: none !important;
}

.pimanga-story-avatar-container.ring-unseen .pimanga-story-avatar-inner {
    border: 2.5px solid #12141a !important;
}

.pimanga-story-avatar-container.ring-seen {
    padding: 2px;
    border-radius: 50%;
    background: #374151;
    box-shadow: none !important;
}

.pimanga-story-avatar-container.ring-seen .pimanga-story-avatar-inner {
    border: 2px solid #12141a !important;
}

.pimanga-story-avatar-container[data-has-story="1"]:hover .pimanga-story-avatar-inner {
    transform: scale(0.97);
}

/* ==========================================================================
   2. Anasayfa / Akış Hikayeler Çubuğu (Stories Tray)
   ========================================================================== */
.pimanga-front-stories-section {
    width: 100%;
    margin-bottom: 28px;
    border: none !important;
}

.pimanga-front-stories-section .front-section-header {
    margin-bottom: 12px;
    border: none !important;
}

.pimanga-stories-tray-wrapper {
    width: 100%;
    padding: 6px 0;
    margin-bottom: 0;
    overflow: hidden;
    border: none !important;
}

.pimanga-stories-tray {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    border: none !important;
}

.pimanga-stories-tray::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.pimanga-story-tray-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    flex-shrink: 0;
    width: 74px;
    text-align: center;
    border: none !important;
    outline: none !important;
}

/* Avatar Çerçevesi (Zarif ve İnce Instagram Hikaye Halkası) */
.pimanga-story-tray-item .tray-avatar-wrap {
    position: relative;
    width: 66px;
    height: 66px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px !important;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Üzerine gelince büyüme (zoom/scale) kesinlikle olmaz */
.pimanga-story-tray-item:hover .tray-avatar-wrap,
.pimanga-story-tray-item:hover .tray-avatar-inner,
.pimanga-story-tray-item:hover img {
    transform: none !important;
}

/* Henüz İzlenmemiş Hikaye Halkası (İnce, Pürüzsüz ve Canlı Instagram Gradyanı) */
.pimanga-story-tray-item.ring-unseen .tray-avatar-wrap {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}

/* İzlenmiş Hikaye Halkası (Zarif, İnce ve Mat Koyu Çerçeve) */
.pimanga-story-tray-item.ring-seen .tray-avatar-wrap {
    background: #333842 !important;
    padding: 1.5px !important;
}

/* Hikayesi Olmayan Durum */
.pimanga-story-tray-item.ring-none .tray-avatar-wrap {
    background: transparent !important;
    padding: 2px !important;
}

/* Avatar İç Kapsayıcısı (Sayfa Arka Planıyla Birebir Uyumlu, Tertemiz Ayrım Boşluğu) */
.pimanga-story-tray-item .tray-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2px solid var(--bg-color-main, #000000) !important;
    background: var(--bg-color-main, #000000) !important;
    box-sizing: border-box !important;
}

.pimanga-story-tray-item .tray-avatar-inner img,
.pimanga-story-tray-item .tray-avatar-inner .avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    object-fit: cover !important;
    display: block !important;
}

/* Kendi Hikayesi İçin Alt Köşedeki Küçük (+) Butonu */
.pimanga-story-tray-item .tray-add-story-btn {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 20px;
    height: 20px;
    border-radius: 50% !important;
    background: #181b24 !important;
    color: #ffffff !important;
    border: 2px solid var(--bg-color-main, #000000) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7) !important;
    transition: background 0.2s ease;
    padding: 0;
    outline: none !important;
}

.pimanga-story-tray-item .tray-add-story-btn:hover {
    background: #252a38 !important;
}

.pimanga-story-tray-item .tray-user-name {
    font-size: 11px;
    font-weight: 500;
    color: #e2e8f0;
    max-width: 72px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   3. Instagram Hikaye İzleyici Modalı (Stories Viewer)
   ========================================================================== */
.pimanga-story-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}

.pimanga-story-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pimanga-story-modal-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* Masaüstü Gezinme Okları */
.story-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.story-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.story-nav-btn.prev {
    left: calc(50% - 280px);
}

.story-nav-btn.next {
    right: calc(50% - 280px);
}

@media (max-width: 680px) {
    .story-nav-btn {
        display: none !important;
    }
}

/* Ana Hikaye Kartı */
.pimanga-story-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 88vh;
    max-height: 820px;
    background: #090b0e;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .pimanga-story-card {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* Üst Segment Progress Çubukları */
.story-progress-bar-container {
    position: absolute;
    top: 12px;
    left: 14px;
    right: 14px;
    height: 3px;
    display: flex;
    gap: 4px;
    z-index: 25;
}

.story-progress-segment {
    flex: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.story-progress-fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    border-radius: 2px;
    transition: width linear;
}

.story-progress-segment.completed .story-progress-fill {
    width: 100% !important;
}

.story-progress-segment.active .story-progress-fill {
    /* JS tarafında dinamik width güncellenir */
}

/* Üst Kullanıcı Bilgi Barı */
.story-header-bar {
    position: absolute;
    top: 22px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 25;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    padding-bottom: 20px;
}

.story-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.story-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.story-header-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    text-decoration: none;
}

.story-header-name:hover {
    text-decoration: underline;
}

.story-header-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
}

.story-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-btn-delete,
.story-btn-close {
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.story-btn-delete:hover {
    background: rgba(239, 68, 68, 0.7);
    transform: scale(1.1);
}

.story-btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Medya Alanı */
.story-media-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    overflow: hidden;
}

.story-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-media-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hikaye Açıklama (Caption) */
.story-caption-overlay {
    position: absolute;
    bottom: 60px;
    left: 16px;
    right: 16px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    z-index: 15;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Dokunma / Tıklama Bölgeleri */
.story-touch-area {
    position: absolute;
    top: 60px;
    bottom: 76px;
    z-index: 20;
    cursor: pointer;
}

.story-touch-area.touch-prev {
    left: 0;
    width: 35%;
}

.story-touch-area.touch-next {
    right: 0;
    width: 65%;
}

/* Alt Bar (Görüntüleyenler Butonu) */
.story-footer-bar {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 25;
}

.story-viewers-btn {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.story-viewers-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-2px);
}

/* Spinner */
.story-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    background: rgba(0, 0, 0, 0.4);
}

.spinner-circle {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: storySpin 0.8s linear infinite;
}

@keyframes storySpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   4. Instagram Tarzı Alttan Açılan Görüntüleyenler Çekmecesi (Bottom Sheet)
   ========================================================================== */
.story-viewers-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 65%;
    min-height: 220px;
    background: #11141a;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px 20px 0 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
}

.story-viewers-sheet.open {
    transform: translateY(0);
}

.sheet-header {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sheet-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto 10px;
}

.sheet-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sheet-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sheet-title i {
    color: #f43f5e;
}

.sheet-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

.sheet-close-btn:hover {
    color: #ffffff;
}

.sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.sheet-viewer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sheet-viewer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: inherit !important;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.sheet-viewer-left:hover {
    opacity: 0.9;
}

.sheet-viewer-left:hover .sheet-viewer-name {
    color: #38bdf8 !important;
}

.sheet-viewer-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sheet-viewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sheet-viewer-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-viewer-username {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-viewer-time {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

/* ==========================================================================
   5. Hikaye Yükleme (Create Story) Modalı
   ========================================================================== */
.pimanga-story-upload-modal {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.story-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.story-upload-dialog {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 460px;
    background: #15181e;
    border: 1px solid #2a2e37;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}

.story-upload-header {
    padding: 18px 22px;
    border-bottom: 1px solid #2a2e37;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1e27;
}

.story-upload-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.story-upload-header h3 i {
    color: #f43f5e;
}

.story-upload-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.story-upload-close:hover {
    color: #ffffff;
}

.story-upload-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Kamera & Galeri Seçim Butonları */
.story-source-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
}

.story-source-card {
    background: #0f1218;
    border: 1.5px solid #2a2e37;
    border-radius: 14px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.story-source-card:hover {
    border-color: #3b82f6;
    background: #141923;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.5);
}

.story-source-card .source-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
    transition: transform 0.25s ease;
}

.story-source-card:hover .source-icon {
    transform: scale(1.12);
}

/* Fotoğraf Kamerası İkonu (Pembe/Gül Gradyanı) */
.story-source-card .camera-photo-icon,
.story-source-card .camera-icon {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2) 0%, rgba(225, 29, 72, 0.3) 100%);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Video Kamerası İkonu (Mor/Lavanta Gradyanı) */
.story-source-card .camera-video-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(126, 34, 206, 0.3) 100%);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Galeri İkonu (Mavi/Cyan Gradyanı) */
.story-source-card .gallery-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.3) 100%);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Galeri Kartı Alt Satırda Geniş Görünüm */
.story-source-card.btn-open-gallery {
    grid-column: 1 / -1;
    padding: 16px 18px;
    flex-direction: row;
    gap: 16px;
    text-align: left;
}

.story-source-card.btn-open-gallery .source-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.story-source-card.btn-open-gallery .source-card-text {
    display: flex;
    flex-direction: column;
}

.story-source-card.btn-open-photo-camera:hover {
    border-color: #fb7185;
}

.story-source-card.btn-open-video-camera:hover {
    border-color: #c084fc;
}

.story-source-card.btn-open-gallery:hover {
    border-color: #60a5fa;
}

.story-source-card .source-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.story-source-card .source-desc {
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

/* Dropzone */
.story-dropzone {
    width: 100%;
    height: 280px;
    border: 1px solid #2a2e37;
    border-radius: 14px;
    background: #090b0e;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.story-dropzone:hover {
    border-color: #3b82f6;
    background: #111622;
}

.dropzone-placeholder {
    text-align: center;
    padding: 20px;
    pointer-events: none;
}

.dropzone-icon {
    font-size: 40px;
    color: #3b82f6;
    margin-bottom: 10px;
}

.dropzone-text {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.dropzone-sub {
    color: #64748b;
    font-size: 11px;
    display: block;
}

.dropzone-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.dropzone-preview img,
.dropzone-preview video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-change-media {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
}

/* Caption Textarea */
.story-caption-wrap textarea {
    width: 100%;
    background: #0f1218;
    border: 1px solid #2a2e37;
    border-radius: 12px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.story-caption-wrap textarea:focus {
    border-color: #3b82f6;
}

.story-upload-footer {
    padding: 14px 22px;
    border-top: 1px solid #2a2e37;
    background: #1a1e27;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-story-cancel {
    background: #2a2e37;
    border: none;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-story-cancel:hover {
    background: #334155;
    color: #ffffff;
}

.btn-story-submit {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 22px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4);
}

.btn-story-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-story-submit:not(:disabled):hover {
    background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
    transform: translateY(-1px);
}

/* Mobil Uyumlu Alt (+) Rozeti (Cinsiyet Rozeti Ölçeklemesi ile Tam Uyumlu) */
@media (max-width: 768px) {
    .profile-avatar-wrapper .pimanga-story-bottom-add {
        width: 20px !important;
        height: 20px !important;
        bottom: -6px !important;
        border-width: 1.5px !important;
    }
    .profile-avatar-wrapper .pimanga-story-bottom-add svg {
        width: 11px !important;
        height: 11px !important;
    }
    .profile-avatar-wrapper .pimanga-story-bottom-add i {
        font-size: 9.5px !important;
    }
}

@media (max-width: 480px) {
    .profile-avatar-wrapper .pimanga-story-bottom-add {
        width: 18px !important;
        height: 18px !important;
        bottom: -5px !important;
        border-width: 1.5px !important;
    }
    .profile-avatar-wrapper .pimanga-story-bottom-add svg {
        width: 9.5px !important;
        height: 9.5px !important;
    }
    .profile-avatar-wrapper .pimanga-story-bottom-add i {
        font-size: 8.5px !important;
    }
}

/* ==========================================================================
   PiManga Hikaye Toast Bildirimi (Modern Floating Toast Component)
   ========================================================================== */
.pimanga-story-toast {
    position: fixed !important;
    bottom: 35px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(30px) !important;
    background: rgba(18, 22, 30, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(16, 185, 129, 0.2) !important;
    z-index: 9999999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s !important;
    white-space: nowrap !important;
    max-width: 90vw !important;
}

.pimanga-story-toast.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
}

.pimanga-story-toast.success {
    border-color: rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 25px rgba(16, 185, 129, 0.35) !important;
}

.pimanga-story-toast.success i {
    color: #10b981 !important;
    font-size: 16px !important;
}

.pimanga-story-toast.error {
    border-color: rgba(239, 68, 68, 0.45) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 25px rgba(239, 68, 68, 0.35) !important;
}

.pimanga-story-toast.error i {
    color: #ef4444 !important;
    font-size: 16px !important;
}

/* ==========================================================================
   Instagram Hikaye Yanıt Barı (Story Reply Bar)
   ========================================================================== */
.story-reply-bar {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    z-index: 28;
    display: flex;
    justify-content: center;
}

.story-reply-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.story-reply-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 28px;
    padding: 4px 6px 4px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.story-reply-input-wrap:focus-within {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 14px rgba(139, 92, 246, 0.35);
}

.story-reply-input {
    flex: 1;
    min-width: 0;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 7px 0 !important;
    font-family: inherit !important;
}

.story-reply-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px !important;
}

.story-reply-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none !important;
    outline: none !important;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.story-reply-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.55);
}

.story-reply-send-btn:active {
    transform: scale(0.95);
}

.story-reply-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================================================
   Sohbet İçi Hikaye Yanıtı Kartı (Instagram DM Story Reply)
   ========================================================================== */
.msg-text-content.msg-story-reply-wrapper {
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.msg-story-reply-card {
    display: flex;
    flex-direction: column;
    width: 220px;
    max-width: 76vw;
    gap: 6px;
    position: relative;
    user-select: none;
}

.msg-bubble-wrap.sent .msg-story-reply-card {
    align-items: flex-end;
}

.msg-bubble-wrap.received .msg-story-reply-card {
    align-items: flex-start;
}

/* Hikaye Önizleme Kutusu (Dikey Instagram Kartı) */
.msg-story-preview-box {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background: #0b0f19;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.msg-story-preview-box:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(236, 72, 153, 0.55);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 18px rgba(236, 72, 153, 0.3);
}

/* Sol Üst Bar (Profil Fotoğrafı + Kullanıcı Adı + Süre) */
.msg-story-card-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 28px 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.38) 60%, transparent 100%);
    pointer-events: none;
}

.msg-story-user-group {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.msg-story-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
    background: #1e293b;
}

.msg-story-user-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 105px;
    line-height: 1.2;
}

.msg-story-time-dot {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    line-height: 1;
}

.msg-story-time-text {
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    flex-shrink: 0;
}

.msg-story-active-badge {
    color: #10b981;
    font-size: 7px;
    display: inline-flex;
    align-items: center;
    filter: drop-shadow(0 0 5px #10b981);
    animation: storyActivePulse 1.8s infinite;
}

@keyframes storyActivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Medya Katmanı */
.msg-story-media-layer {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000000;
}

.msg-story-bg-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.msg-story-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
    font-size: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.msg-story-preview-box:hover .msg-story-play-overlay {
    transform: scale(1.15);
}

/* Görselin Üzerindeki Hikaye Yazısı (Caption) */
.msg-story-card-caption {
    position: absolute;
    bottom: 16px;
    left: 12px;
    right: 12px;
    z-index: 8;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    word-break: break-word;
    pointer-events: none;
}

/* Süresi Dolmuş Hikaye Katmanı */
.msg-story-media-layer.msg-story-expired-layer {
    background: radial-gradient(circle at center, #182030 0%, #0a0d14 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.msg-story-expired-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    color: #94a3b8;
}

.msg-story-expired-box i {
    font-size: 28px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.04);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed rgba(255, 255, 255, 0.12);
}

.msg-story-expired-box span {
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.4;
}

.msg-story-preview-box.is-expired {
    cursor: default !important;
}

.msg-story-preview-box.is-expired:hover {
    transform: none !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5) !important;
}

/* ==========================================================================
   HİKAYEYE ÖZEL YANIT BALONCUĞU (Instagram DM Tarzı Zarif Tasarım)
   ========================================================================== */
.msg-story-reply-text {
    padding: 8px 13px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 100%;
    box-sizing: border-box;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Gönderilen Hikaye Yanıtı Balonu (Canlı Mor-İndigo Gradyan & İnce Işıltı) */
.msg-bubble-wrap.sent .msg-story-reply-text {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: #ffffff;
    border-radius: 16px 16px 4px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
}

/* Gelen Hikaye Yanıtı Balonu (Koyu Obsidyen Cam Panel) */
.msg-bubble-wrap.received .msg-story-reply-text {
    background: #181d28;
    color: #f1f5f9;
    border-radius: 16px 16px 16px 4px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Hikaye Yanıtı Başlık Etiketi */
.msg-story-reply-tag {
    display: inline-flex;
    align-items: center;
    gap: 4.5px;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 2px;
    user-select: none;
    letter-spacing: 0.2px;
}

.msg-bubble-wrap.sent .msg-story-reply-tag {
    color: rgba(255, 255, 255, 0.8);
}

.msg-bubble-wrap.received .msg-story-reply-tag {
    color: #a78bfa;
}

.msg-story-reply-tag i {
    font-size: 9.5px;
    transform: scaleX(-1);
}

/* Yanıt Metin Gövdesi */
.msg-story-reply-body {
    word-break: break-word;
    font-size: 13px;
    line-height: 1.45;
}

/* Saat ve Okundu Bilgisi */
.msg-story-reply-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 10px;
    margin-top: 1px;
    user-select: none;
}

.msg-bubble-wrap.sent .msg-story-reply-meta {
    color: rgba(255, 255, 255, 0.7);
}

.msg-bubble-wrap.received .msg-story-reply-meta {
    color: #94a3b8;
}

.msg-story-meta-status i {
    font-size: 9px;
}

/* ==========================================================================
   14. Puanlı Hikaye (Locked Story) & Kamera Çekim Ayarları Stilleri
   ========================================================================== */

/* 1. İzleyici Kilit Ekranı (Story Locked Overlay) */
.story-locked-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.94) 0%, rgba(3, 7, 18, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    padding: 24px;
    box-sizing: border-box;
    user-select: none;
    pointer-events: none;
}

.story-locked-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 310px;
    width: 100%;
    pointer-events: auto;
}

/* Header Bar Puan Rozeti */
.story-header-points-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.22);
    border: 1px solid rgba(245, 158, 11, 0.45);
    padding: 1px 7px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
    line-height: 1.4;
    user-select: none;
}

.story-locked-badge {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.08) 100%);
    border: 2px solid rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.35), inset 0 0 15px rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-size: 32px;
    margin-bottom: 18px;
    animation: storyLockPulse 2.4s infinite ease-in-out;
}

@keyframes storyLockPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 35px rgba(245, 158, 11, 0.55);
    }
}

.story-locked-title {
    font-size: 21px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.story-locked-desc {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.story-locked-points-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.story-user-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.story-user-balance .balance-val {
    color: #fbbf24;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-unlock-story {
    width: 100%;
    padding: 13px 22px;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.42);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
}

.btn-unlock-story:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 26px rgba(245, 158, 11, 0.58);
}

.btn-unlock-story:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.btn-unlock-story:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-unlock-story.insufficient-points {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* 2. Yükleme Modalı: Puanlı Hikaye Switch & Giriş Alanı */
.story-points-wrap {
    background: #131722;
    border: 1px solid #242c3e;
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.story-points-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.story-points-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-points-title .points-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.story-points-title .points-labels {
    display: flex;
    flex-direction: column;
}

.story-points-title .points-label-main {
    font-size: 13.5px;
    font-weight: 700;
    color: #f1f5f9;
}

.story-points-title .points-label-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Modern iOS / Switch Slider */
.pimanga-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.pimanga-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pimanga-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2b3345;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}

.pimanga-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.pimanga-switch input:checked + .pimanga-slider {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

.pimanga-switch input:checked + .pimanga-slider:before {
    transform: translateX(20px);
}

/* Puan Giriş ve Çip Seçimi */
.story-points-input-box {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.points-input-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.points-input-label-row label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    margin: 0;
}

.points-camera-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.14);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(168, 85, 247, 0.28);
    text-transform: uppercase;
}

.story-points-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.points-input-group {
    position: relative;
    width: 105px;
    flex-shrink: 0;
}

.points-input-group .input-coin-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #fbbf24;
    font-size: 12px;
    pointer-events: none;
}

.points-input-group input {
    width: 100%;
    box-sizing: border-box;
    background: #090c13 !important;
    border: 1px solid #2e374b !important;
    border-radius: 9px !important;
    padding: 8px 10px 8px 28px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.points-input-group input:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3) !important;
}

.story-points-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.story-chip {
    background: #1a202d;
    border: 1px solid #2d374d;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.story-chip:hover {
    border-color: #f59e0b;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
}

.story-chip.active {
    background: rgba(245, 158, 11, 0.22);
    border-color: #f59e0b;
    color: #fbbf24;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}


