.profile-news-scroll {
    position: relative;
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-news-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: default;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    flex: 1;
}

.profile-news-scroll-container::-webkit-scrollbar {
    display: none;
}

.profile-news-scroll-container.grabbing {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.profile-news-items {
    display: flex;
    gap: 0.875rem;
    padding: 0.5rem 0 0.5rem 0.75rem;
    width: max-content;
}

.news-item {
    min-width: 240px;
    max-width: 260px;
    flex: 0 0 auto;
}

.news-card {
    padding: 0;
    border-radius: 0.5rem;
    border: 1px solid var(--overlay-light-07, rgba(255, 255, 255, 0.06));
    background: var(--overlay-light-02, rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.news-card-image-wrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(var(--profile-placeholder-start-rgb, 102, 126, 234), 0.15), rgba(var(--profile-placeholder-end-rgb, 118, 75, 162), 0.15));
    flex-shrink: 0;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.news-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--overlay-light-95, rgba(255, 255, 255, 0.95));
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-subtext {
    font-size: 0.8rem;
    color: var(--overlay-light-60, rgba(255, 255, 255, 0.6));
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    padding: 0 0.875rem 0.875rem 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.news-card-date {
    font-size: 0.7rem;
    color: var(--overlay-light-45, rgba(255, 255, 255, 0.45));
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-card-date::before {
    content: '📅';
    font-size: 0.75rem;
}

.news-card-detail-btn {
    padding: 0.375rem 0.75rem;
    background: rgba(var(--profile-placeholder-start-rgb, 102, 126, 234), 0.2);
    border: 1px solid rgba(var(--profile-placeholder-start-rgb, 102, 126, 234), 0.3);
    border-radius: 0.375rem;
    color: var(--overlay-light-90, rgba(255, 255, 255, 0.9));
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.news-card-detail-btn svg {
    width: 12px;
    height: 12px;
}

.profile-news-section {
    margin-bottom: 2rem;
}

.profile-news-header {
    margin-bottom: 1rem;
}

.profile-news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--overlay-light-100, #ffffff);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-news-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--profile-placeholder-start, #667eea) 0%, var(--profile-placeholder-end, #764ba2) 100%);
    border-radius: 2px;
}

.profile-news-subtitle {
    font-size: 0.875rem;
    color: var(--overlay-light-60, rgba(255, 255, 255, 0.6));
    margin: 0 0 0.75rem 0;
}

.profile-news-nav-btn {
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    border: 1px solid var(--overlay-light-10, rgba(255, 255, 255, 0.1));
    background: var(--overlay-light-05, rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    color: var(--stats-text-color, rgba(255, 255, 255, 0.8));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.profile-news-nav-btn:hover {
    background: var(--overlay-light-10, rgba(255, 255, 255, 0.1));
    border-color: var(--overlay-light-20, rgba(255, 255, 255, 0.2));
    color: var(--overlay-light-100, rgba(255, 255, 255, 1));
    transform: scale(1.05);
}

.profile-news-nav-btn:active {
    transform: scale(0.95);
}

.profile-news-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.profile-news-nav-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .news-item {
        min-width: 220px;
        max-width: 240px;
    }

    .news-card-image-wrapper {
        height: 120px;
    }

    .news-card-content {
        padding: 0.75rem;
        gap: 0.375rem;
    }

    .news-card-title {
        font-size: 0.85rem;
    }

    .news-card-subtext {
        font-size: 0.75rem;
    }

    .news-card-footer {
        padding: 0 0.75rem 0.75rem 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .news-card-date {
        font-size: 0.65rem;
    }

    .news-card-detail-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.7rem;
        padding: 0.35rem 0.65rem;
    }

    .profile-news-title {
        font-size: 1.25rem;
    }

    .profile-news-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .profile-news-header {
        margin-bottom: 0.75rem;
    }

    .profile-news-items {
        gap: 0.5rem;
    }

    .profile-news-nav-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .profile-news-nav-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ═══════════════════════════════════════════════════════════
   Sizden Gelenler — kazanç kartları & modal  (sg-*)
   ═══════════════════════════════════════════════════════════ */

/* Header row */
.sg-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.sg-header-left { flex: 1; min-width: 0; }

.sg-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.25rem;
}

.sg-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* "Kazancını Paylaş" button */
.sg-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.125rem;
    border-radius: 0.625rem;
    border: none;
    background: var(--primary-color, #3b82f6);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.sg-share-btn:hover {
    background: var(--secondary-color, #2563eb);
    transform: translateY(-1px);
}

/* Empty state */
.sg-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9375rem;
}

/* Card grid */
.sg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.875rem;
}

/* Win card */
.sg-card {
    display: flex;
    flex-direction: row;
    background: var(--card-default, #1f1f1f);
    border: 1px solid var(--card-border, #2b2b2b);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.sg-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-2px);
}

/* Thumbnail */
.sg-card-thumb {
    width: 88px;
    min-width: 88px;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

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

.sg-card-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.25);
}

/* Sponsor badge overlaid bottom of thumbnail */
.sg-card-sponsor-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    height: 18px;
    max-width: 54px;
    border-radius: 3px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.5);
    padding: 1px 2px;
}

/* Card body */
.sg-card-body {
    flex: 1;
    padding: 0.625rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.sg-card-user-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.125rem;
}

.sg-card-avatar {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sg-card-username {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-card-game {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-card-win {
    font-size: 1rem;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 0.01em;
    margin-top: 0.25rem;
}

.sg-card-mult {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.sg-card-replay {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--primary-color, #3b82f6);
    text-decoration: none;
    margin-top: 0.25rem;
}

.sg-card-replay:hover { text-decoration: underline; }

/* ─── Modal ─────────────────────────────────────────────── */
.sg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sg-modal-overlay.sg-modal--open {
    opacity: 1;
    visibility: visible;
}

.sg-modal {
    background: var(--nirvana-card-background-color, #111);
    border: 1px solid var(--card-border, #2b2b2b);
    border-radius: 1rem;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    transform: translateY(16px);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.sg-modal-overlay.sg-modal--open .sg-modal {
    transform: translateY(0);
}

/* Modal head */
.sg-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.sg-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.sg-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.375rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.15s ease;
}
.sg-modal-close:hover { color: rgba(255, 255, 255, 0.9); }

/* Form */
.sg-form-group {
    margin-bottom: 1rem;
}

.sg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.sg-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.4rem;
}

.sg-required {
    color: #f87171;
}

.sg-input,
.sg-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    padding: 0.6rem 0.875rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.sg-input:focus,
.sg-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.sg-select option {
    background: #1f1f1f;
    color: rgba(255, 255, 255, 0.9);
}

/* File upload */
.sg-file-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sg-file-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    padding: 0.6rem 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sg-file-label:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.07);
    color: rgba(255, 255, 255, 0.85);
}

/* Feedback message */
.sg-form-msg {
    padding: 0.6rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.sg-form-msg--ok {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #4ade80;
}

.sg-form-msg--err {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
}

/* Submit button */
.sg-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    border: none;
    background: linear-gradient(135deg, var(--primary-color, #3b82f6), var(--secondary-color, #2563eb));
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.sg-submit-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.sg-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
    .sg-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .sg-grid { grid-template-columns: repeat(2, 1fr); }
    .sg-card-thumb { width: 72px; min-width: 72px; }
    .sg-card-win { font-size: 0.875rem; }
    .sg-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
    .sg-grid { grid-template-columns: 1fr; }
    .sg-title { font-size: 1.25rem; }
}

