body {
    margin: 0;
    font-family: "Segoe UI", "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, #f7fbff 0%, #eef4f8 100%);
    color: #14213d;
    line-height: 1.6;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 32px;
    background: linear-gradient(90deg, #0b2d4d 0%, #123f63 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(11, 45, 77, 0.18);
}

header .header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

header .logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
}

.user-status {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.12);
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
}

.user-status.active {
    color: #ffffff;
    background: rgba(0, 200, 83, 0.2);
    border-color: rgba(0, 200, 83, 0.4);
}

.logout-btn {
    border: none;
    background: #ffffff;
    color: #0b2d4d;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.logout-btn:hover {
    background: #f0f4f8;
}

nav a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

nav a:hover {
    opacity: 0.8;
}

.app-install-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 72px;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0b2d4d, #123f63);
    color: white;
    box-shadow: 0 15px 35px rgba(11, 45, 77, 0.25);
}

.app-install-banner strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.app-install-banner p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.86);
}

.app-install-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mini-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 12px;
    background: #00c853;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.mini-btn.secondary {
    background: rgba(255,255,255,0.18);
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 8px 14px;
    background: rgba(11, 45, 77, 0.96);
    backdrop-filter: blur(10px);
}

.mobile-bottom-nav a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 999px;
}

.mobile-bottom-nav a.active,
header nav a.active {
    background: rgba(255,255,255,0.16);
}

.app-splash {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #123f63, #0b2d4d 70%);
    color: white;
    transition: opacity 0.35s ease;
}

.app-splash.hidden {
    opacity: 0;
    pointer-events: none;
}

.app-splash-card {
    text-align: center;
    padding: 28px 24px;
    border-radius: 24px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.22);
}

.app-splash-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 14px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 42px;
    background: linear-gradient(135deg, #00c853, #0b2d4d);
}

.app-splash h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.app-splash p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.86);
}

/* HERO */
.hero {
    background: linear-gradient(rgba(4, 16, 31, 0.7), rgba(4, 16, 31, 0.72)),
    url('https://images.unsplash.com/photo-1508098682722-e99c43a406b2');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 130px 20px;
}

.hero h1 {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.hero p {
    font-size: 18px;
    max-width: 760px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    margin-top: 24px;
    padding: 13px 28px;
    background: linear-gradient(90deg, #00c853 0%, #00b34a 100%);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 200, 83, 0.22);
}

.btn-secondary {
    margin-left: 10px;
    background: linear-gradient(90deg, #123f63 0%, #0b2d4d 100%);
    box-shadow: 0 10px 20px rgba(11, 45, 77, 0.2);
}

/* SECTIONS */
.section {
    padding: 70px 20px;
    text-align: center;
}

.registration-section {
    background: linear-gradient(135deg, #f5f8fc 0%, #eef4f8 100%);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 35, 63, 0.08);
    border: 1px solid #e9eef4;
}

.news-item {
    padding: 10px 0;
    border-bottom: 1px solid #e6ebf0;
    text-align: left;
}

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

.score-card {
    padding: 12px 0;
    border-bottom: 1px solid #e6ebf0;
    text-align: left;
}

.score-card:last-child {
    border-bottom: none;
}

.league-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #0b2d4d;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.helper-text {
    margin-bottom: 16px;
    color: #4b5563;
    font-size: 14px;
}

.install-btn {
    margin-top: 0;
    margin-bottom: 12px;
}

.sport-card {
    text-align: left;
}

.sport-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #0b2d4d;
}

.sport-news {
    margin-top: 10px;
}

.sport-news h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #123f63;
}

.wallet-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.wallet-qr {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6px 0;
}

.wallet-address {
    text-align: center;
    font-size: 14px;
    color: #334155;
}

.copy-address {
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    background: #0b2d4d;
    color: white;
    cursor: pointer;
    font-weight: 600;
}

.copy-address:hover {
    background: #123f63;
}

/* STATS */
.stats {
    background: linear-gradient(135deg, #0b2d4d 0%, #123f63 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat {
    font-size: 30px;
    font-weight: bold;
}

/* FOOTER */
footer {
    background: #0b1420;
    color: white;
    text-align: center;
    padding: 24px 20px;
}

@media (max-width: 900px) {
    header {
        padding: 16px 16px 70px;
        flex-wrap: wrap;
        gap: 12px;
    }

    header nav {
        display: none;
    }

    .hero {
        padding: 90px 20px 110px;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 12px;
    }

    .app-install-banner {
        bottom: 72px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 901px) {
    .mobile-bottom-nav,
    .app-install-banner {
        display: none;
    }
}

.registration-section {
    background: #fdfdfd;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #0b2d4d;
}

.section-heading h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-heading p {
    color: #444;
    margin-top: 12px;
    line-height: 1.6;
}

.form-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(13, 35, 63, 0.12);
    border: 1px solid #edf2f7;
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.form-intro {
    background: #0b2d4d;
    color: white;
    padding: 24px;
    border-radius: 18px;
    text-align: left;
}

.form-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.form-intro h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.form-intro p {
    color: rgba(255,255,255,0.86);
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 8px;
}

.benefits-list li {
    padding-left: 18px;
    position: relative;
    color: rgba(255,255,255,0.92);
}

.benefits-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00c853;
    font-weight: bold;
}

.registration-form {
    display: grid;
    gap: 18px;
}

.form-section {
    border: 1px solid #e6ebf0;
    border-radius: 16px;
    padding: 16px 18px;
    background: linear-gradient(180deg, #fcfdff 0%, #f8fbff 100%);
}

.compact-grid {
    display: grid;
    gap: 12px;
}

.form-section legend {
    padding: 0 8px;
    font-weight: 700;
    color: #0b2d4d;
    font-size: 15px;
}

.form-row {
    text-align: left;
}

.form-row.double {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #111;
    font-size: 14px;
}

.wallet-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wallet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.btc-icon {
    background: linear-gradient(135deg, #f7931a, #ffb347);
}

.usdt-icon {
    background: linear-gradient(135deg, #26a17b, #2ecc71);
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="password"],
.registration-form input[type="date"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d6d9de;
    border-radius: 12px;
    font-size: 16px;
    color: #111;
    background: #fafafa;
    box-sizing: border-box;
}

.registration-form input[type="text"]:focus,
.registration-form input[type="email"]:focus,
.registration-form input[type="password"]:focus,
.registration-form input[type="date"]:focus {
    outline: none;
    border-color: #0b2d4d;
    box-shadow: 0 0 0 4px rgba(11, 45, 77, 0.08);
}

.checkbox-row label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #333;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-actions .btn {
    padding: 14px 28px;
    margin-top: 0;
}

.helper-text {
    margin: 0;
    color: #4f5c6b;
}

.helper-text a {
    color: #0b2d4d;
    font-weight: 600;
    text-decoration: none;
}

.message {
    display: none;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 10px;
}

.message.success {
    display: block;
    background: #e8f8ee;
    color: #157a3b;
}

.message.error {
    display: block;
    background: #fdecea;
    color: #b42318;
}

.leaderboard-item {
    margin-bottom: 10px;
    color: #0b2d4d;
}

.leaderboard-empty {
    color: #4f5c6b;
}

@media (max-width: 760px) {
    .stats-grid,
    .form-row.double,
    .form-container {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 18px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        margin-top: 15px;
    }

    .hero {
        padding: 90px 20px;
    }
}

.community-page .community-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.community-page .community-main,
.community-page .community-sidebar {
    display: grid;
    gap: 20px;
}

.post-card {
    display: grid;
    gap: 18px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.post-meta {
    color: #4b5563;
    font-size: 13px;
    margin-top: 6px;
}

.post-body p {
    margin: 0 0 14px;
    line-height: 1.8;
}

.post-image-wrap {
    margin: 0;
}

.post-image-wrap img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    max-height: 400px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-button {
    border: 1px solid #d6d9de;
    background: white;
    color: #0b2d4d;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-button.active,
.tag-button:hover {
    background: #0b2d4d;
    color: white;
    border-color: #0b2d4d;
}

.comments-section {
    background: #f8fbff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e6ebf0;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.comments-list {
    display: grid;
    gap: 12px;
}

.comment-item {
    padding: 12px 14px;
    background: white;
    border-radius: 14px;
    border: 1px solid #e9eef4;
}

.comment-form {
    display: grid;
    gap: 12px;
}

.chat-panel {
    display: grid;
    gap: 16px;
}

.chat-section.hidden {
    display: none;
}

.chat-list {
    display: grid;
    gap: 12px;
    max-height: 420px;
    overflow: auto;
}

.chat-message {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #e6ebf0;
    background: white;
}

.chat-author {
    font-weight: 700;
    margin-bottom: 6px;
}

.chat-text {
    margin: 0 0 8px;
    line-height: 1.6;
}

.chat-time {
    font-size: 12px;
    color: #64748b;
}

.comment-form label {
    font-weight: 700;
}

.comment-form input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #d6d9de;
    background: #fafafa;
}

.comment-form button {
    align-self: flex-end;
}

@media (max-width: 980px) {
    .community-page .community-grid {
        grid-template-columns: 1fr;
    }
}

.community-page .community-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.community-page .community-main,
.community-page .community-sidebar {
    display: grid;
    gap: 20px;
}

.post-card {
    display: grid;
    gap: 18px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.post-meta {
    color: #4b5563;
    font-size: 13px;
    margin-top: 6px;
}

.post-body p {
    margin: 0 0 14px;
    line-height: 1.8;
}

.post-image-wrap {
    margin: 0;
}

.post-image-wrap img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    max-height: 400px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-button {
    border: 1px solid #d6d9de;
    background: white;
    color: #0b2d4d;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-button.active,
.tag-button:hover {
    background: #0b2d4d;
    color: white;
    border-color: #0b2d4d;
}

.comments-section {
    background: #f8fbff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e6ebf0;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.comments-list {
    display: grid;
    gap: 12px;
}

.comment-item {
    padding: 12px 14px;
    background: white;
    border-radius: 14px;
    border: 1px solid #e9eef4;
}

.comment-form {
    display: grid;
    gap: 12px;
}

.chat-panel {
    display: grid;
    gap: 16px;
}

.chat-section.hidden {
    display: none;
}

.chat-list {
    display: grid;
    gap: 12px;
    max-height: 420px;
    overflow: auto;
}

.chat-message {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #e6ebf0;
    background: white;
}

.chat-author {
    font-weight: 700;
    margin-bottom: 6px;
}

.chat-text {
    margin: 0 0 8px;
    line-height: 1.6;
}

.chat-time {
    font-size: 12px;
    color: #64748b;
}

.comment-form label {
    font-weight: 700;
}

.comment-form input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #d6d9de;
    background: #fafafa;
}

.comment-form button {
    align-self: flex-end;
}

@media (max-width: 980px) {
    .community-page .community-grid {
        grid-template-columns: 1fr;
    }
}

.competition-widget-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.competition-widget-container h2 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-left: 4px solid #4CAF50;
    padding-left: 10px;
}

/* ===== LIVE SCORES TICKER ===== */
.live-scores-section {
    background: linear-gradient(135deg, #0b2d4d 0%, #1a4a6e 100%);
    color: white;
    padding: 50px 20px 60px;
    overflow: hidden;
}

.live-scores-section .section-heading h2 {
    color: #fff;
}

.live-scores-section .section-heading p {
    color: rgba(255, 255, 255, 0.8);
}

.ticker-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.ticker-container::before,
.ticker-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.ticker-container::before {
    left: 0;
    background: linear-gradient(90deg, rgba(11, 45, 77, 1) 0%, transparent 100%);
}

.ticker-container::after {
    right: 0;
    background: linear-gradient(270deg, rgba(11, 45, 77, 1) 0%, transparent 100%);
}

.ticker-track {
    display: flex;
    gap: 16px;
    animation: tickerScroll 40s linear infinite;
    width: max-content;
    padding: 8px 0;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.match-card {
    flex-shrink: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.match-league {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.match-league .league-pill {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.match-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.match-status-badge.live {
    background: #ff3b30;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: pulseLive 1.5s ease-in-out infinite;
}

.match-status-badge.live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseLive {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.match-status-badge.ft {
    background: #333;
    color: #ccc;
}

.match-status-badge.ht {
    background: #f5a623;
    color: #1a1a1a;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    text-align: center;
}

.match-team .team-emoji {
    font-size: 28px;
    line-height: 1;
}

.match-team .team-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.match-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.match-score-display .score {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}

.match-score-display .minute {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3px;
    font-weight: 600;
}

.match-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.match-extra .match-date {
    font-weight: 600;
}

.match-extra .match-attendees {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== BTC WALLET BALANCE BANNER ===== */
.btc-balance-banner {
    background: linear-gradient(135deg, #f7931a 0%, #ffb347 50%, #f7931a 100%);
    padding: 18px 24px;
    margin: 16px auto;
    max-width: 900px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(247, 147, 26, 0.35), inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
    animation: btcPulse 3s ease-in-out infinite;
}

@keyframes btcPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(247, 147, 26, 0.35); }
    50% { box-shadow: 0 8px 48px rgba(247, 147, 26, 0.55); }
}

.btc-balance-banner::before {
    content: '₿';
    position: absolute;
    right: -30px;
    top: -30px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    pointer-events: none;
    transform: rotate(15deg);
}

.btc-balance-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    animation: btcShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btcShine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.btc-balance-banner-content {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btc-balance-banner-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.25);
    animation: btcGlow 2s ease-in-out infinite;
}

@keyframes btcGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255,255,255,0.2); }
    50% { box-shadow: 0 0 40px rgba(255,255,255,0.4); }
}

.btc-balance-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 140px;
}

.btc-balance-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
}

.btc-balance-amount {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btc-balance-usd {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
}

.btc-balance-banner-address {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.12);
    padding: 10px 14px;
    border-radius: 12px;
    flex-wrap: wrap;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 200px;
}

.btc-address-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
}

.btc-address-value {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    flex: 1;
    min-width: 120px;
}

.btc-copy-btn {
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.btc-copy-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

@media (max-width: 700px) {
    .btc-balance-banner {
        margin: 12px 12px;
        padding: 14px 16px;
        border-radius: 14px;
    }

    .btc-balance-banner-content {
        gap: 12px;
    }

    .btc-balance-banner-icon {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .btc-balance-amount {
        font-size: 26px;
    }

    .btc-balance-banner-address {
        width: 100%;
        padding: 8px 12px;
    }

    .btc-address-value {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .btc-balance-amount {
        font-size: 22px;
    }

    .btc-balance-usd {
        font-size: 12px;
    }
}

/* Responsive Ticker */
@media (max-width: 768px) {
    .match-card {
        width: 240px;
        padding: 14px 16px;
    }

    .match-team .team-emoji {
        font-size: 22px;
    }

    .match-score-display .score {
        font-size: 22px;
    }

    .ticker-track {
        animation-duration: 30s;
    }

    .ticker-container::before,
    .ticker-container::after {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .match-card {
        width: 200px;
        padding: 12px 14px;
    }

    .match-team .team-name {
        font-size: 11px;
    }

    .match-score-display .score {
        font-size: 18px;
    }

    .ticker-track {
        animation-duration: 25s;
    }
}

/* ===== MEMBER CARDS (Friend System) ===== */
.members-list {
    display: grid;
    gap: 12px;
    max-height: 480px;
    overflow-y: auto;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fbff;
    border-radius: 14px;
    border: 1px solid #e9eef4;
    transition: background 0.2s ease;
}

.member-card:hover {
    background: #eef4f8;
}

.member-avatar {
    font-size: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0b2d4d;
    color: white;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-info strong {
    display: block;
    font-size: 14px;
    color: #0b2d4d;
}

.member-meta {
    font-size: 11px;
    color: #64748b;
}

.member-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.member-actions .mini-btn {
    font-size: 11px;
    padding: 5px 10px;
}

.pending-label {
    font-size: 11px;
    color: #f5a623;
    font-weight: 700;
    white-space: nowrap;
}

/* Friend Requests */
.friend-requests-list {
    display: grid;
    gap: 10px;
}

.friend-request-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fbff;
    border-radius: 12px;
    border: 1px solid #e9eef4;
    font-size: 13px;
}

.friend-request-item .request-actions {
    display: flex;
    gap: 6px;
}

.friend-request-item .mini-btn {
    font-size: 11px;
    padding: 5px 10px;
}

/* DM Chat Panel */
#dmChatPanel {
    transition: all 0.3s ease;
}

#dmChatPanel[hidden] {
    display: none;
}

#dmChatMessages {
    max-height: 300px;
    overflow-y: auto;
}

/* Post Like Section */
.post-like-section {
    padding: 8px 0;
    border-top: 1px solid #e9eef4;
    margin-top: 6px;
}

.like-btn {
    border: 1px solid #d6d9de;
    background: white;
    color: #0b2d4d;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.like-btn:hover {
    background: #0b2d4d;
    color: white;
    border-color: #0b2d4d;
}

/* ===== USER WALL (Dashboard) ===== */
.wall-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.wall-post-form-card {
    text-align: left;
}

.wall-post-form-card textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d6d9de;
    border-radius: 12px;
    font-size: 16px;
    color: #111;
    background: #fafafa;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
}

.wall-post-form-card textarea:focus {
    outline: none;
    border-color: #0b2d4d;
    box-shadow: 0 0 0 4px rgba(11, 45, 77, 0.08);
}

.wall-feed {
    display: grid;
    gap: 16px;
    text-align: left;
}

.wall-post-card {
    display: grid;
    gap: 14px;
}

.wall-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wall-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b2d4d, #123f63);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.wall-post-author {
    flex: 1;
}

.wall-post-author strong {
    display: block;
    color: #0b2d4d;
}

.wall-post-footer {
    display: flex;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #e9eef4;
}

.wall-like-btn {
    margin: 0;
}

.delete-wall-post {
    font-size: 13px;
    padding: 4px 8px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.delete-wall-post:hover {
    background: rgba(255, 59, 48, 0.2);
}

/* ===== SPORTS NEWS HUB ===== */
.news-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 10px;
    text-align: left;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background: white;
    border-radius: 16px;
    border: 1px solid #e9eef4;
    box-shadow: 0 12px 32px rgba(15, 35, 63, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(11, 45, 77, 0.15);
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #eef4f8;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.news-title {
    font-size: 18px;
    font-weight: 800;
    color: #0b2d4d;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.news-source {
    font-weight: 600;
}

.news-date {
    color: #94a3b8;
}

.news-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.news-read-link {
    margin-top: 8px;
    align-self: flex-start;
    padding: 10px 18px;
    font-size: 13px;
    background: linear-gradient(90deg, #0b2d4d 0%, #123f63 100%);
    box-shadow: 0 6px 14px rgba(11, 45, 77, 0.18);
}

.news-read-link:hover {
    background: linear-gradient(90deg, #123f63 0%, #1a4a6e 100%);
}

/* Responsive adjustments for sidebar */
@media (max-width: 980px) {
    .member-card {
        flex-wrap: wrap;
    }

    .member-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ===== COMPETITION COLOR-CODING CLASSES ===== */
.text-winner { color: #16a34a !important; font-weight: 600; }
.text-loser  { color: #dc2626 !important; font-weight: 500; }
.text-draw   { color: #2563eb !important; font-weight: 600; }
.text-neutral { color: #1f2937 !important; }
.odds-section {
    background: linear-gradient(135deg, #0b2d4d 0%, #1a4a6e 100%);
    color: #fff;
    padding: 60px 20px 80px;
}

.odds-section .section-heading h2,
.odds-section .section-heading h3 {
    color: #fff;
}

.odds-section .section-heading p {
    color: rgba(255, 255, 255, 0.8);
}

.odds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.odds-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    color: #fff;
}

.odds-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.odds-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.odds-header .league-pill {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
}

.odds-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.odds-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
}

.odds-team {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    flex: 1;
}

.odds-vs {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-transform: uppercase;
}

.odds-prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.odds-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.odds-price:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
}

.odds-price.odds-fav {
    border-color: #00c853;
    box-shadow: 0 0 12px rgba(0, 200, 83, 0.15);
}

.odds-price.odds-fav .odds-value {
    color: #00c853;
}

.odds-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.odds-value {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    font-family: "Courier New", monospace;
}

/* Prediction Input Form */
.odds-prediction-form {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.predict-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.predict-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.predict-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.predict-team-name {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.predict-score-input {
    width: 56px;
    padding: 10px 0;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: "Courier New", monospace;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -moz-appearance: textfield;
}

.predict-score-input::-webkit-outer-spin-button,
.predict-score-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.predict-score-input:focus {
    outline: none;
    border-color: #00c853;
    box-shadow: 0 0 16px rgba(0, 200, 83, 0.2);
}

.predict-score-input:disabled {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.predict-dash {
    font-size: 24px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    padding-top: 20px;
}

.submit-prediction-btn {
    margin-top: 4px;
    padding: 10px 20px;
    font-size: 13px;
    background: linear-gradient(90deg, #00c853 0%, #00b34a 100%);
    box-shadow: 0 8px 16px rgba(0, 200, 83, 0.2);
}

.submit-prediction-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(90deg, #666 0%, #555 100%);
    box-shadow: none;
}

/* ===== PREDICTION BUTTONS ===== */
.prediction-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.prediction-section-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.winner-buttons,
.goals-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pred-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pred-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.pred-btn.selected-btn {
    background: #dc2626 !important;
    color: #fff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.3);
}

.pred-btn-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    font-size: 12px;
    font-weight: 800;
}

.pred-btn.selected-btn .pred-btn-label {
    background: rgba(255, 255, 255, 0.25);
}

.pred-btn-team {
    font-size: 12px;
    opacity: 0.9;
}

/* ===== ODDS CARD SELECTED STATE ===== */
.odds-card-selected {
    border-color: #00c853 !important;
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.15), inset 0 0 0 1px rgba(0, 200, 83, 0.2);
}

/* ===== PREDICTION SELECTED BUTTON — RED ACCENT ===== */
.pred-btn.selected-btn {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    font-weight: bold;
    border: 2px solid #ef4444 !important;
}

/* Leaderboard */
.leaderboard-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.leaderboard-table {
    display: grid;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 44px 1fr 50px 60px 60px;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 44px 1fr 50px 60px 60px;
    gap: 8px;
    padding: 10px 16px;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.15s ease;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.leaderboard-rank {
    font-size: 16px;
    text-align: center;
}

.leaderboard-name strong {
    color: #fff;
}

.leaderboard-pts {
    text-align: center;
    color: #00c853;
    font-weight: 900;
    font-size: 16px;
}

.leaderboard-exact {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.leaderboard-winrate {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.leaderboard-you {
    background: rgba(0, 200, 83, 0.08);
    border-left: 3px solid #00c853;
}

.leaderboard-legend {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .odds-grid {
        grid-template-columns: 1fr;
    }

    .odds-team {
        font-size: 14px;
    }

    .predict-score-input {
        width: 48px;
        font-size: 18px;
    }

    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 36px 1fr 40px 44px 44px;
        font-size: 12px;
        padding: 8px 12px;
    }

    .leaderboard-rank {
        font-size: 14px;
    }

    .leaderboard-pts {
        font-size: 14px;
    }
}

/* ===== LIVE SCORES 2-COLUMN GRID + HP REWARDS TEASER ===== */
.live-scores-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
    text-align: left;
}

.live-scores-left {
    min-width: 0;
}

.live-scores-left .section-heading {
    margin-bottom: 20px;
}

.live-scores-left .section-heading h2 {
    color: #fff;
}

.live-scores-left .section-heading p {
    color: rgba(255, 255, 255, 0.8);
}

/* HP Rewards Teaser Card (Right Column) */
.hp-rewards-teaser {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #fff;
    text-align: left;
}

.hp-teaser-header {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.hp-value-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #fde68a;
    align-self: flex-start;
}

.hp-value-pill .hp-symbol {
    color: #fde68a;
    font-size: 0.85rem;
}

.hp-teaser-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.hp-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hp-bullets li {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    padding-left: 4px;
}

.hp-bullets li .hp-symbol {
    color: #fde68a;
    font-size: 0.78rem;
}

.hp-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(90deg, #00c853 0%, #00b34a 100%);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 14px rgba(0, 200, 83, 0.25);
    margin-top: 4px;
    box-sizing: border-box;
}

.hp-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: white;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
    .live-scores-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hp-rewards-teaser {
        padding: 18px 16px;
    }
}

/* ===== DONATION CONTAINER ===== */
.donation-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 12px 32px rgba(15, 35, 63, 0.08);
    border: 1px solid #e9eef4;
    display: grid;
    gap: 20px;
    text-align: left;
}

/* Preset Amount Buttons */
.donation-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.donation-preset-btn {
    padding: 12px 22px;
    border: 2px solid #d6d9de;
    border-radius: 999px;
    background: white;
    color: #0b2d4d;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 72px;
    text-align: center;
}

.donation-preset-btn:hover {
    border-color: #0b2d4d;
    background: #f0f4f8;
}

.donation-preset-btn.active {
    border-color: #00c853;
    background: rgba(0, 200, 83, 0.1);
    color: #0b2d4d;
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.15);
}

.donation-custom-wrap {
    flex: 1;
    min-width: 120px;
}

.donation-custom-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d6d9de;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: #0b2d4d;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.donation-custom-input:focus {
    outline: none;
    border-color: #0b2d4d;
    box-shadow: 0 0 0 4px rgba(11, 45, 77, 0.08);
}

/* Donor Form */
.donation-form {
    display: grid;
    gap: 14px;
}

.donation-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #0b2d4d;
    font-size: 13px;
}

.donation-form-row input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d6d9de;
    border-radius: 12px;
    font-size: 15px;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.donation-form-row input:focus {
    outline: none;
    border-color: #0b2d4d;
    box-shadow: 0 0 0 4px rgba(11, 45, 77, 0.08);
}

/* Payment Method Tabs */
.payment-tabs {
    display: flex;
    gap: 8px;
}

.payment-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border: 2px solid #d6d9de;
    border-radius: 14px;
    background: white;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-tab:hover {
    border-color: #0b2d4d;
    color: #0b2d4d;
}

.payment-tab.active {
    border-color: #0b2d4d;
    background: #0b2d4d;
    color: white;
}

.paypal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #003087, #009cde);
    color: white;
    font-weight: 900;
    font-size: 14px;
}

/* Donation Message */
.donation-container .message {
    margin: 0;
}

/* ===== CURRENCY SWITCHER ===== */
.currency-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.currency-switcher label {
    font-weight: 700;
    font-size: 14px;
    color: #0b2d4d;
}

.currency-select {
    padding: 10px 14px;
    border: 2px solid #d6d9de;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #0b2d4d;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 120px;
}

.currency-select:hover {
    border-color: #0b2d4d;
}

.currency-select:focus {
    outline: none;
    border-color: #0b2d4d;
    box-shadow: 0 0 0 4px rgba(11, 45, 77, 0.08);
}

/* Responsive */
@media (max-width: 600px) {
    .donation-presets {
        gap: 8px;
    }
    .donation-preset-btn {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 60px;
    }
    .payment-tabs {
        flex-direction: column;
    }
}

/* ===== AUTH MODAL ===== */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.auth-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.auth-modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 16px;
    padding: 32px 28px 28px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #4b5563;
    font-size: 24px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.auth-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.auth-modal-header {
    margin-bottom: 16px;
}

.auth-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 28px;
    background: linear-gradient(135deg, #00c853, #0b2d4d);
}

.auth-modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #0b2d4d;
}

.auth-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 18px;
}

.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: white;
    color: #0b2d4d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ===== NOTIFICATION BELL ===== */
.notification-bell-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.notification-bell-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
    position: relative;
    padding: 0;
    line-height: 1;
}

.notification-bell-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.notification-bell-icon {
    line-height: 1;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: #ff3b30;
    color: white;
    font-size: 10px;
    font-weight: 800;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #123f63;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.4);
    z-index: 1;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: -8px;
    width: 340px;
    max-height: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
    z-index: 5000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-dropdown[hidden] {
    display: none;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.notification-dropdown-header strong {
    font-size: 15px;
    color: #0b2d4d;
}

.notification-mark-read {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.notification-mark-read:hover {
    background: #eff6ff;
}

.notification-list {
    overflow-y: auto;
    max-height: 340px;
    padding: 0;
}

.notification-empty {
    padding: 32px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #f0f9ff;
}

.notification-item.unread:hover {
    background: #e0f2fe;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    font-size: 14px;
    color: #14213d;
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

.notification-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    flex-shrink: 0;
    margin-top: 8px;
}

/* ===== PWA INSTALL MODAL ===== */
#pwa-install-modal .fb-modal-card {
  max-width: 400px;
  text-align: center;
  padding: 32px 24px;
}

#pwa-install-modal .fb-modal-card h3 {
  margin: 0 0 8px;
  color: #0b2d4d;
}

#pwa-install-modal .fb-modal-card p {
  font-size: 14px;
  color: #475569;
  margin: 0 0 20px;
  line-height: 1.5;
}

#pwa-install-modal .btn {
  margin: 0;
  padding: 14px 32px;
  font-size: 16px;
  width: 100%;
}

/* ===== INSTALL APP NAV BUTTON (deprecated - kept for backward compat) ===== */
.install-nav-btn {
    background: linear-gradient(90deg, #00c853, #00b34a);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.install-nav-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.install-nav-btn.hidden {
    display: none;
}

/* ===== ADMIN TABLES RESPONSIVE ===== */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 300px;
        right: -60px;
    }
    
    .notification-bell-container {
        margin-left: 4px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: calc(100vw - 32px);
        right: -8px;
        position: fixed;
        top: 70px;
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

.auth-form {
    display: grid;
    gap: 14px;
    text-align: left;
}

.auth-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #14213d;
    font-size: 13px;
}

.auth-form-row input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #d6d9de;
    border-radius: 12px;
    font-size: 15px;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form-row input:focus {
    outline: none;
    border-color: #0b2d4d;
    box-shadow: 0 0 0 4px rgba(11, 45, 77, 0.08);
}

.auth-submit-btn {
    width: 100%;
    margin-top: 4px;
    text-align: center;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #94a3b8;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
    padding: 13px 20px;
    background: #fff;
    color: #14213d;
    border: 1px solid #d6d9de;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

.btn-google:hover {
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== USER AVATAR IN HEADER ===== */
.user-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #123f63;
}

.user-status-text {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.user-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00c853;
    display: inline-block;
    animation: pulseDot 2s ease-in-out infinite;
}

/* ===== CHAT BUBBLES (Real-Time DM) ===== */
.chat-bubble-wrapper {
    display: flex;
    margin-bottom: 8px;
}

.chat-bubble-wrapper.sent {
    justify-content: flex-end;
}

.chat-bubble-wrapper.received {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.chat-bubble-wrapper.sent .chat-bubble {
    background: linear-gradient(135deg, #0b2d4d, #123f63);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble-wrapper.received .chat-bubble {
    background: #f1f5f9;
    color: #14213d;
    border-bottom-left-radius: 4px;
}

.chat-bubble-author {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 3px;
    opacity: 0.8;
}

.chat-bubble-text {
    word-wrap: break-word;
}

.chat-bubble-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

.chat-loading,
.chat-empty,
.chat-error {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 14px;
}

.chat-error {
    color: #ef4444;
}

/* ===== WALL POST (Dashboard) ===== */
.wall-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.wall-post-form-card {
    text-align: left;
}

.wall-post-form-card textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d6d9de;
    border-radius: 12px;
    font-size: 16px;
    color: #111;
    background: #fafafa;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
}

.wall-post-form-card textarea:focus {
    outline: none;
    border-color: #0b2d4d;
    box-shadow: 0 0 0 4px rgba(11, 45, 77, 0.08);
}

.wall-feed {
    display: grid;
    gap: 16px;
    text-align: left;
}

.wall-post-card {
    display: grid;
    gap: 14px;
}

.wall-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wall-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b2d4d, #123f63);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.wall-post-author {
    flex: 1;
}

.wall-post-author strong {
    display: block;
    color: #0b2d4d;
}

.wall-post-footer {
    display: flex;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #e9eef4;
}

.wall-like-btn {
    margin: 0;
}

.delete-wall-post {
    font-size: 13px;
    padding: 4px 8px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.delete-wall-post:hover {
    background: rgba(255, 59, 48, 0.2);
}

/* Responsive auth modal */
@media (max-width: 480px) {
    .auth-modal-card {
        padding: 24px 20px 20px;
    }
}

/* ===== PHOTO GALLERY (Dashboard) ===== */
.photo-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.photo-gallery-item {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 6px;
    padding: 6px;
    background: #fff;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    min-width: 130px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.photo-gallery-item.active-profile {
    border-color: #00c853;
    box-shadow: 0 0 16px rgba(0, 200, 83, 0.25);
}

.photo-gallery-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.photo-gallery-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #00c853;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    z-index: 2;
}

.photo-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
}

.photo-delete-btn:hover {
    background: rgba(255, 59, 48, 0.8);
}

.photo-set-profile-btn {
    margin-top: 6px;
    padding: 5px 10px;
    border: none;
    border-radius: 999px;
    background: #0b2d4d;
    color: white;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.2s;
}

.photo-set-profile-btn:hover {
    background: #123f63;
    transform: scale(1.02);
}

.photo-set-profile-btn.active-profile-btn {
    background: #00c853;
}

/* ============================================
   FACEBOOK-STYLE COMMUNITY PAGE
   ============================================ */

/* Hide old .community-grid on community page */
.community-page .community-grid {
    display: none;
}

/* ===== STORIES BAR ===== */
.stories-bar {
    grid-column: 1 / -1;
    overflow-x: auto;
    padding: 4px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.stories-bar::-webkit-scrollbar { display: none; }

.stories-track {
    display: flex;
    gap: 12px;
    min-width: max-content;
    padding: 4px;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.story-item:hover { transform: scale(1.05); }

.story-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border: 3px solid #0b2d4d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: border-color 0.2s;
}
.story-item:hover .story-circle {
    border-color: #00c853;
}

.story-label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

/* ===== CREATE POST CARD ===== */
.create-post-card {
    grid-column: 1;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    padding: 16px 20px;
}

.create-post-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.create-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b2d4d, #123f63);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.create-post-input-wrap {
    flex: 1;
}

.create-post-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 15px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    box-sizing: border-box;
}
.create-post-input:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}
.create-post-input:focus { outline: none; }

.create-post-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 0 10px;
}

.create-post-actions {
    display: flex;
    gap: 8px;
}

.create-post-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.create-post-action:hover {
    background: #f1f5f9;
}

/* ===== POST MODAL ===== */
.fb-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.fb-modal:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

.fb-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.fb-modal-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 16px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.fb-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}
.fb-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #0b2d4d;
}

.fb-modal-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.fb-modal-close:hover { background: #cbd5e1; }

.create-post-modal-card { padding: 0; }
.create-post-modal-body {
    padding: 16px 20px 20px;
    display: grid;
    gap: 14px;
}

.create-post-modal-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.create-post-modal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b2d4d, #123f63);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.create-post-modal-privacy {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 2px 8px;
    display: inline-block;
    margin-top: 2px;
}

.create-post-modal-textarea {
    width: 100%;
    min-height: 100px;
    border: none;
    font-size: 18px;
    font-family: inherit;
    color: #14213d;
    resize: vertical;
    padding: 8px 0;
    box-sizing: border-box;
    line-height: 1.5;
}
.create-post-modal-textarea:focus { outline: none; }
.create-post-modal-textarea::placeholder { color: #94a3b8; }

.create-post-image-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.create-post-image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.create-post-modal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.create-post-modal-photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.create-post-modal-photo-btn:hover { background: #f1f5f9; }

.create-post-modal-interest select {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.create-post-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #00c853, #00b34a);
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.create-post-submit:hover { opacity: 0.9; }
.create-post-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.privacy-settings-card { margin: 12px 0 0; }
.privacy-settings-card-inner { padding: 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; }
.privacy-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; color: #334155; }
.privacy-row select { padding: 8px 10px; border-radius: 8px; border: 1px solid #e2e8f0; background: white; }
.camera-preview-wrapper { margin-top: 10px; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; }
.camera-preview-wrapper video { width: 100%; display: block; background: #0f172a; }
.camera-preview-actions { display: flex; gap: 8px; padding: 10px; background: #f8fafc; }
.live-video-modal-card { max-width: 560px; }
.live-video-preview-container { position: relative; border-radius: 16px; overflow: hidden; background: #020617; min-height: 280px; }
.live-video-preview { width: 100%; height: 100%; min-height: 280px; object-fit: cover; background: #020617; }
.live-video-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; pointer-events: none; }
.live-badge { display: inline-block; width: fit-content; padding: 6px 10px; border-radius: 999px; background: rgba(239,68,68,0.95); color: #fff; font-size: 12px; font-weight: 700; }
.live-stat { color: #fff; background: rgba(15,23,42,0.7); padding: 6px 10px; border-radius: 999px; width: fit-content; font-size: 12px; }
.notification-sound-toggle { border: none; background: transparent; font-size: 18px; cursor: pointer; margin-left: 6px; }

/* ===== FEED FILTER BAR ===== */
.feed-filter-bar {
    grid-column: 1;
    display: flex;
    gap: 8px;
    padding: 8px 0;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.feed-filter-bar::-webkit-scrollbar { display: none; }

.feed-filter-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: white;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.feed-filter-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.feed-filter-btn.active {
    background: #0b2d4d;
    color: white;
    border-color: #0b2d4d;
}

/* ===== FEED ===== */
.fb-feed {
    grid-column: 1;
    display: grid;
    gap: 16px;
}

.fb-loading {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 15px;
}

.fb-empty-feed {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 16px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

/* ===== POST CARD ===== */
.fb-post-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.fb-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}

.fb-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b2d4d, #123f63);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}
.fb-post-avatar:hover { opacity: 0.85; }

.fb-post-meta {
    flex: 1;
    min-width: 0;
}
.fb-post-meta strong {
    display: block;
    color: #0b2d4d;
    font-size: 14px;
    cursor: pointer;
}
.fb-post-meta strong:hover { text-decoration: underline; }

.fb-post-time {
    font-size: 12px;
    color: #64748b;
}

.fb-post-options {
    color: #94a3b8;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}
.fb-post-options:hover { background: #f1f5f9; }

.fb-post-text {
    padding: 0 18px 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #14213d;
    word-wrap: break-word;
}

/* Post Image */
.fb-post-image-grid {
    display: grid;
    gap: 2px;
    background: #f1f5f9;
}
.fb-post-image-single img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: block;
    margin: 10px 0;
}

/* Stats Bar */
.fb-post-stats {
    display: flex;
    justify-content: space-between;
    padding: 10px 18px;
    font-size: 13px;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
}

/* Action Buttons */
.fb-post-actions {
    display: flex;
    border-top: 1px solid #e2e8f0;
}

.fb-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.fb-action-btn:hover {
    background: #f8fafc;
    color: #0b2d4d;
}
.fb-action-btn.liked { color: #e74c3c; }

/* Comments */
.fb-comment-section {
    padding: 0 18px 14px;
    border-top: 1px solid #f1f5f9;
}

.fb-comment-list {
    display: grid;
    gap: 8px;
    padding: 12px 0;
}

.fb-comment-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.fb-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b2d4d, #123f63);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.fb-comment-body {
    flex: 1;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 8px 12px;
}
.fb-comment-body strong {
    font-size: 13px;
    color: #0b2d4d;
    cursor: pointer;
}
.fb-comment-body strong:hover { text-decoration: underline; }
.fb-comment-body p {
    margin: 2px 0 4px;
    font-size: 14px;
    color: #14213d;
    line-height: 1.5;
}

.fb-comment-time {
    font-size: 11px;
    color: #94a3b8;
}

.fb-comment-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
}

.fb-comment-form-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b2d4d, #123f63);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.fb-comment-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 14px;
    background: #f8fafc;
    box-sizing: border-box;
}
.fb-comment-form input:focus {
    outline: none;
    border-color: #0b2d4d;
    box-shadow: 0 0 0 3px rgba(11,45,77,0.08);
}

/* ===== MAIN FEED (left column) with fixed right sidebar ===== */
.fb-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 80px;
    margin-right: 400px; /* so posts never overlap with the fixed right sidebar */
}

.fb-badge {
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
}

/* Sidebar Toggle Button (hidden on desktop, shown on mobile) */
.sidebar-toggle-btn {
    display: none;
}

/* ===== FLOATING CHAT SIDEBAR (fixed on right edge) ===== */
#floating-chat-sidebar {
    position: fixed !important;
    top: 80px;
    right: 20px;
    width: 370px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

#community-chat-box {
    height: 280px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 14px 16px;
    gap: 8px;
}

#community-chat-box h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0b2d4d;
    padding-bottom: 6px;
    border-bottom: 1px solid #eef2f6;
    flex-shrink: 0;
}

#community-chat-box .comment-form {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid #eef2f6;
    flex-shrink: 0;
}

#community-chat-box .comment-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 13px;
    background: #f8fafc;
    box-sizing: border-box;
}

#community-chat-box .comment-form input:focus {
    outline: none;
    border-color: #0b2d4d;
    box-shadow: 0 0 0 3px rgba(11,45,77,0.08);
}

#community-chat-box .comment-form .btn {
    padding: 8px 14px !important;
    font-size: 13px !important;
    margin-top: 0 !important;
    white-space: nowrap;
}

#teammate-chat-box {
    height: 280px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 14px 16px;
    gap: 8px;
}

#teammate-chat-box h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0b2d4d;
    padding-bottom: 6px;
    border-bottom: 1px solid #eef2f6;
    flex-shrink: 0;
}

/* Internal scrolling for messages and teammates list */
.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    display: grid;
    gap: 6px;
    padding: 4px 0;
}

.teammates-list-container {
    flex: 1;
    overflow-y: auto;
}

.dm-chat-header {
    font-size: 13px;
    color: #0b2d4d;
    padding: 4px 0 6px;
    margin: 0;
}

/* DM inner panel inside sidebar */
.dm-chat-inner-panel {
    margin-top: 6px;
}
.dm-chat-inner-panel[hidden] {
    display: none;
}
.dm-chat-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 0;
}

/* ===== RESPONSIVE: ≤ 768px → fixed sidebar collapses to static ===== */
@media (max-width: 768px) {
    .fb-page {
        margin-right: 0;
    }

    #floating-chat-sidebar {
        position: static !important;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 16px 16px;
        top: auto;
        right: auto;
        box-sizing: border-box;
    }

    #community-chat-box,
    #teammate-chat-box {
        height: auto;
        min-height: 200px;
    }

    .sidebar-toggle-btn {
        display: block;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px 16px;
        background: #0b2d4d;
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        text-align: center;
        transition: background 0.2s ease;
        box-sizing: border-box;
    }

    .sidebar-toggle-btn:hover {
        background: #123f63;
    }

    .sidebar-toggle-btn.active {
        background: #00c853;
    }

    #floating-chat-sidebar[hidden] {
        display: none;
    }
}

/* ===== PROFILE MODAL ===== */
.profile-modal-card {
    max-width: 480px;
}

.profile-card {
    text-align: center;
    padding: 0 0 20px;
}

.profile-cover {
    height: 140px;
    background: linear-gradient(135deg, #0b2d4d, #123f63);
    border-radius: 20px 20px 0 0;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c853, #0b2d4d);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: -40px auto 12px;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-card h2 {
    margin: 0;
    font-size: 22px;
    color: #0b2d4d;
}

.profile-bio {
    color: #64748b;
    font-size: 14px;
    margin: 6px 0 12px;
}

.profile-interests {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.profile-interest-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.profile-stat {
    text-align: center;
}
.profile-stat strong {
    display: block;
    font-size: 18px;
    color: #0b2d4d;
}
.profile-stat span {
    font-size: 12px;
    color: #94a3b8;
}

/* ===== POWERED BY KINESIS BADGE ===== */
/* ===== EXPANDABLE PREDICTION SLIPS ===== */
.slip-history-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.slip-history-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.slip-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    gap: 8px;
}

.slip-history-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.slip-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.slip-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.slip-history-status {
    font-size: 13px;
    font-weight: 700;
}

.slip-history-status.won { color: #00c853; }
.slip-history-status.lost { color: #ef4444; }
.slip-history-status.pending { color: #f59e0b; }

.slip-expanded-content {
    padding: 0 16px 12px;
    display: grid;
    gap: 6px;
}

.slip-pick-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    align-items: center;
    font-size: 13px;
}

.slip-pick-team {
    font-weight: 700;
    color: #fff;
}

.slip-pick-team.home { text-align: left; }
.slip-pick-team.away { text-align: right; }

.slip-pick-vs {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    font-size: 11px;
}

.slip-pick-detail {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 12px;
}

.slip-pick-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.slip-pick-value {
    color: #fde68a;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.15);
    padding: 2px 10px;
    border-radius: 999px;
}

.slip-pick-result {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.slip-pick-result.finished {
    color: #22c55e;
}

.slip-pick-result.settled {
    color: #60a5fa;
}

/* ===== DAILY SLIP LIMIT COUNTER ===== */
.daily-limit-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.daily-limit-counter.limit-reached {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* ===== WINNING SLIP MODAL ===== */
.winning-slip-modal-body {
    padding: 16px 20px 20px;
    display: grid;
    gap: 12px;
}

.winning-slip-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.winning-slip-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b2d4d, #123f63);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.winning-slip-name {
    font-weight: 700;
    font-size: 16px;
    color: #0b2d4d;
}

.winning-slip-date {
    font-size: 12px;
    color: #64748b;
}

.winning-slip-ticket {
    display: grid;
    gap: 8px;
}

.winning-slip-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: white;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.winning-slip-pick {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    align-items: center;
}

.winning-slip-pick-team {
    font-weight: 700;
    font-size: 13px;
    color: #0b2d4d;
}

.winning-slip-pick-team.home { text-align: left; }
.winning-slip-pick-team.away { text-align: right; }

.winning-slip-pick-vs {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

.winning-slip-pick-detail {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 2px 0;
}

.winning-slip-pick-label {
    color: #64748b;
    font-weight: 600;
}

.winning-slip-pick-value {
    color: #92400e;
    font-weight: 700;
    background: #fef3c7;
    padding: 1px 10px;
    border-radius: 999px;
}

.winning-slip-badge {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 10px;
    border: 1px solid #f59e0b;
    font-weight: 700;
    font-size: 14px;
    color: #92400e;
}

.leaderboard-view-btn {
    background: rgba(0, 200, 83, 0.15);
    border: 1px solid rgba(0, 200, 83, 0.3);
    color: #00c853;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.leaderboard-view-btn:hover {
    background: rgba(0, 200, 83, 0.25);
    transform: scale(1.05);
}

.powered-by-kinesis {
    position: fixed;
    bottom: 12px;
    right: 16px;
    z-index: 999;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: inherit;
    color: #a0aec0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    pointer-events: none;
    user-select: none;
}

.powered-by-kinesis:hover {
    opacity: 1;
}

.powered-by-kinesis a {
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
}

.powered-by-kinesis a:hover {
    color: #cbd5e0;
}

/* ===== HIDDEN STATE for conditional display ===== */
.hidden-state {
  display: none !important;
}

/* ===== UPLOAD SPINNER ===== */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #00c853;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== DASHBOARD PROFILE PICTURE ===== */
#currentProfilePic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0b2d4d;
  background: #eef4f8;
  transition: opacity 0.3s ease;
}

#currentProfilePic[src=""] {
  display: none;
}

.profile-pic-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eef4f8;
  border: 3px dashed #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #94a3b8;
  transition: opacity 0.3s ease;
}

/* ===== UPLOAD BUTTON DISABLED STATE ===== */
#uploadAvatarBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(90deg, #94a3b8 0%, #64748b 100%);
  box-shadow: none;
}

/* ===== PASSWORD VISIBILITY TOGGLE ===== */
.pwd-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.pwd-wrapper input {
  padding-right: 48px !important;
}

.pwd-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.2s ease;
  z-index: 2;
}

.pwd-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

.pwd-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 45, 77, 0.12);
}

.pwd-toggle.visible {
  opacity: 0.7;
}

/* ===== EDITABLE DASHBOARD PROFILE ===== */
.profile-edit-form {
  display: grid;
  gap: 14px;
}

.profile-edit-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #0b2d4d;
  font-size: 13px;
}

.profile-edit-row input,
.profile-edit-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d6d9de;
  border-radius: 12px;
  font-size: 15px;
  background: #fafafa;
  color: #111;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.profile-edit-row input:focus,
.profile-edit-row textarea:focus {
  outline: none;
  border-color: #0b2d4d;
  box-shadow: 0 0 0 4px rgba(11, 45, 77, 0.08);
}

.profile-edit-row textarea {
  resize: vertical;
  min-height: 80px;
}

/* ===== TEAMMATES LIST ===== */
.teammates-list {
  display: grid;
  gap: 2px;
  max-height: 300px;
  overflow-y: auto;
}

.teammate-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid #eef2f6;
  cursor: pointer;
  transition: background 0.15s ease;
  border-radius: 8px;
}

.teammate-item:hover {
  background: #f1f5f9;
}

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

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
  display: inline-block;
}

.status-dot.online {
  background: #22c55e;
}

.status-dot.offline {
  background: #94a3b8;
}

/* ===== FLOATING CHAT POPUP ===== */
.floating-chat-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 360px;
  max-height: 480px;
  background: white;
  border-radius: 16px 16px 12px 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.25s ease-out;
}

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

.floating-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(90deg, #0b2d4d 0%, #123f63 100%);
  color: white;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.floating-chat-close {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  line-height: 1;
}

.floating-chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.floating-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f8fafc;
  min-height: 200px;
  max-height: 320px;
}

.floating-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  background: white;
  flex-shrink: 0;
}

.floating-chat-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 14px;
  background: #f8fafc;
  box-sizing: border-box;
}

.floating-chat-form input:focus {
  outline: none;
  border-color: #0b2d4d;
  box-shadow: 0 0 0 3px rgba(11, 45, 77, 0.08);
}

.floating-chat-send-btn {
  padding: 10px 18px;
  background: linear-gradient(90deg, #0b2d4d 0%, #123f63 100%);
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.floating-chat-send-btn:hover {
  opacity: 0.9;
}

@media (max-width: 480px) {
  .floating-chat-popup {
    left: 12px;
    right: 12px;
    bottom: 72px;
    width: auto;
    max-height: 400px;
  }
}

/* ===== HOPE POINTS (HP) SYMBOL & BADGE ===== */
.hp-symbol {
  text-decoration-line: line-through;
  text-decoration-style: double;
  font-weight: 700;
  display: inline-block;
  margin-right: 2px;
  color: #f59e0b;
}

.user-hp-badge {
  font-size: 0.82rem;
  color: #555555;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.user-hp-badge .hp-symbol {
  font-size: 0.75rem;
}

/* ===== REWARDS & BADGES CARD (Dashboard) ===== */
.rewards-card {
  border: 1px solid #e6ebf0;
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fcfdff 0%, #f8fbff 100%);
  display: grid;
  gap: 12px;
}

.rewards-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rewards-card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0b2d4d;
}

.rewards-hp-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 12px;
  border: 1px solid #f59e0b;
}

.rewards-hp-number {
  font-size: 28px;
  font-weight: 900;
  color: #92400e;
  line-height: 1;
}

.rewards-hp-label {
  font-size: 13px;
  color: #92400e;
  font-weight: 700;
}

.rewards-hp-label .hp-symbol {
  font-size: 0.85rem;
  color: #92400e;
}

.rewards-streak-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.rewards-streak-fire {
  font-size: 22px;
}

.rewards-streak-text {
  font-size: 14px;
  font-weight: 700;
  color: #0b2d4d;
}

.rewards-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rewards-stat-item {
  padding: 10px;
  background: #f8fafc;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.rewards-stat-number {
  font-size: 18px;
  font-weight: 900;
  color: #0b2d4d;
}

.rewards-stat-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.redeem-hp-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.redeem-hp-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.redeem-hp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.redeem-hp-btn:active {
  transform: translateY(0);
}

/* ===== WALLET FUNDING & PAYMENT STYLES ===== */
.fund-wallet-trigger-btn {
  padding: 6px 14px;
  background: #00c853;
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fund-wallet-trigger-btn:hover {
  background: #00b34a;
  transform: scale(1.03);
}

.fund-wallet-trigger-btn:active {
  transform: scale(0.97);
}

#walletPaySection {
  margin-top: 8px;
}

#walletPaySection .btn {
  margin-top: 0;
}

#walletPaySection .btn-secondary {
  background: linear-gradient(90deg, #00c853 0%, #00b34a 100%);
  box-shadow: 0 6px 14px rgba(0, 200, 83, 0.2);
}

#communityWalletBalance {
  padding: 8px 12px;
  margin: 6px 0;
  background: linear-gradient(135deg, #0b2d4d, #123f63);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

#communityWalletBalance .fund-wallet-trigger-btn {
  font-size: 11px;
  padding: 4px 10px;
}

/* Wallet balance card in donation page */
.wallet-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0b2d4d, #123f63);
  color: white;
  border-radius: 14px;
  margin-bottom: 12px;
}

.wallet-balance-label {
  font-weight: 600;
  font-size: 14px;
}

.wallet-balance-amount {
  font-size: 22px;
  font-weight: 900;
}

/* Wallet pay button container */
.wallet-pay-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

/* ===== CHAT SHARED IMAGE ===== */
.chat-shared-image {
  max-width: 220px !important;
  max-height: 220px !important;
  display: block !important;
  border-radius: 8px;
  margin-top: 5px;
  cursor: pointer;
  min-width: 100px;
  min-height: 100px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ===== CHAT CAMERA BUTTON ===== */
.chat-camera-btn {
  padding: 8px 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}

.chat-camera-btn:hover {
  background: #e2e8f0;
}

.chat-camera-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== COMMENT SEND BUTTON (Community) ===== */
.comment-send-btn {
  padding: 8px 16px;
  background: #0b2d4d;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.comment-send-btn:hover {
  opacity: 0.9;
}

/* ===== COMMENT REPLY & REACTION STYLES ===== */
.cmt-actions-bar {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.cmt-action-btn {
  border: none;
  background: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.cmt-action-btn:hover {
  background: #f1f5f9;
  color: #0b2d4d;
}

.cmt-reactions-bar {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.cmt-reaction-btn {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cmt-reaction-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.cmt-reaction-btn.reacted {
  background: rgba(0, 200, 83, 0.1);
  border-color: #00c853;
  color: #0b2d4d;
}

.cmt-emoji-picker {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  padding: 4px 8px;
  background: #f8fafc;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  width: fit-content;
}

.cmt-emoji-btn {
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.cmt-emoji-btn:hover {
  background: #e2e8f0;
  transform: scale(1.15);
}

.cmt-reply-form {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  align-items: center;
}

.cmt-replies {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid #e2e8f0;
  display: grid;
  gap: 6px;
}

.cmt-reply-item {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 13px;
}
