/* css/frontend.css - Complete Clean Styling for Feedback Modal & Giant Circle Bug Fix */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700;800&display=swap');

:root {
    --bg-dark: #050811;
    --bg-card: rgba(13, 20, 36, 0.92);
    --bg-card-hover: rgba(22, 33, 58, 0.95);
    --border-card: rgba(255, 255, 255, 0.12);
    --border-glow: rgba(0, 240, 255, 0.35);
    
    --primary: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.5);
    --accent-purple: #8a2be2;
    --accent-gold: #ffb700;
    --accent-green: #00e676;
    --accent-line: #06c755;
    --accent-line-hover: #05b34c;

    --btn-gradient: linear-gradient(135deg, #00f0ff 0%, #7000ff 100%);
    --btn-gold-gradient: linear-gradient(135deg, #ffb700 0%, #ff5500 100%);
    --btn-disabled-gradient: linear-gradient(135deg, #3a4252 0%, #242936 100%);

    --text-main: #ffffff;
    --text-sub: #94a3b8;
    --text-gold: #ffd700;

    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, rgba(5, 8, 17, 0.68) 0%, rgba(5, 8, 17, 0.96) 800px, #050811 100%),
                url('../images/bg_hd_trading.jpg') center top / cover no-repeat fixed;
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.5;
    position: relative;
}

/* Background Ambient Glow Orbs */
.bg-glow-1 {
    position: fixed;
    top: -150px;
    left: -100px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.25) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.bg-glow-2 {
    position: fixed;
    bottom: -150px;
    right: -100px;
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header & Top Bar */
.top-navbar {
    background: rgba(5, 8, 17, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-card);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    width: 100%;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.brand-logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--btn-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px var(--primary-glow);
    flex-shrink: 0;
}

.brand-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.2;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.co-hosts-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-sub);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-right-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Language Selector Dropdown */
.lang-dropdown-wrapper {
    position: relative;
    flex-shrink: 0;
}

.lang-select-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-card);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.lang-select-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
}

.lang-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: rgba(13, 20, 36, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 8px;
    min-width: 130px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
}

.lang-menu.show {
    display: flex;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--text-sub);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-option:hover, .lang-option.active {
    background: rgba(0, 240, 255, 0.15);
    color: #ffffff;
}

/* Line Login Button & User Profile Link */
.btn-line-login {
    background: var(--accent-line);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(6, 199, 85, 0.4);
    flex-shrink: 0;
}

.btn-line-login:hover {
    background: var(--accent-line-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.6);
}

.btn-line-login svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    flex-shrink: 0;
}

.user-profile-pill {
    background: rgba(6, 199, 85, 0.15);
    border: 1px solid rgba(6, 199, 85, 0.4);
    color: #06c755;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.user-profile-pill:hover {
    background: rgba(6, 199, 85, 0.25);
    border-color: #06c755;
}

.btn-my-records {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-card);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-my-records:hover {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--primary);
}

/* Hero Section */
.hero-section {
    padding: 65px 0 45px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 800;
    padding: 8px 26px;
    border-radius: 30px;
    margin-bottom: 24px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 15%, #b866ff 55%, #00f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 15px 35px rgba(0, 240, 255, 0.4));
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #e2e8f0;
    max-width: 840px;
    margin: 0 auto 45px;
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
}

/* DATA DASHBOARD BOARD */
.data-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 55px;
}

.data-dash-card {
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: 18px;
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.dash-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.dash-card-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
}

.data-dash-value {
    font-family: var(--font-heading);
    font-size: 2.0rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.data-dash-label {
    font-size: 0.88rem;
    color: var(--text-sub);
    font-weight: 600;
}

/* SBI Champion Poster Card */
.sbi-champion-poster-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 2px solid var(--border-glow);
    box-shadow: 0 25px 60px rgba(0,0,0,0.7), 0 0 35px rgba(255, 183, 0, 0.25);
    margin-bottom: 60px;
    background: #000000;
}

.sbi-poster-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sbi-champion-poster-card:hover .sbi-poster-img {
    transform: scale(1.02);
}

.poster-overlay-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: none !important;
    backdrop-filter: none !important;
    border-top: none !important;
    padding: 26px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.poster-badge-title {
    text-align: left;
}

.poster-badge-title h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.champ-badge {
    background: var(--btn-gold-gradient);
    color: #000000;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 183, 0, 0.5);
    text-transform: uppercase;
    display: inline-block;
}

.poster-stats-row {
    display: flex;
    gap: 16px;
}

.poster-stat-item {
    background: rgba(13, 20, 36, 0.9);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-glow);
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    min-width: 110px;
}

.stat-icon-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.stat-icon-title svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.2;
}

.poster-stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.poster-stat-txt {
    font-size: 0.78rem;
    color: var(--text-sub);
}

/* Region Tabs Section */
.region-tabs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tab-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-card);
    color: var(--text-sub);
    padding: 11px 24px;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-item:hover {
    color: #ffffff;
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.12);
}

.tab-item.active {
    background: var(--btn-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 18px var(--primary-glow);
}

/* Team Grid Cards - 2 COLUMNS ON PC */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 70px;
}

.team-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 45px rgba(0, 240, 255, 0.25);
}

.team-card-header {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 22px;
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 8px 25px var(--primary-glow);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.03);
}

.team-title-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 4px;
}

.team-region-tag {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.rank-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(13, 20, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    z-index: 10 !important;
    backdrop-filter: blur(10px);
}

.team-card.rank-1 .rank-badge {
    background: var(--btn-gold-gradient);
    color: #000000;
    border: none;
    box-shadow: 0 0 15px rgba(255, 183, 0, 0.6);
}

.team-details-list {
    margin-bottom: 24px;
    font-size: 0.92rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #cbd5e1;
    line-height: 1.5;
}

.detail-row strong {
    color: #ffffff;
    min-width: 100px;
    font-weight: 700;
}

.vote-count-display {
    background: rgba(0, 240, 255, 0.06);
    border: 1px dashed var(--border-glow);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.vote-count-val {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.btn-vote-trigger {
    width: 100%;
    padding: 15px;
    border-radius: 16px;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    background: var(--btn-gradient);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px var(--primary-glow);
    animation: breathingGlow 3s infinite ease-in-out;
}

.btn-vote-trigger:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.6);
}

.btn-vote-trigger.disabled, .btn-vote-trigger:disabled {
    background: var(--btn-disabled-gradient) !important;
    color: #64748b !important;
    box-shadow: none !important;
    animation: none !important;
    cursor: not-allowed !important;
}

@keyframes breathingGlow {
    0% { box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3); }
    50% { box-shadow: 0 8px 30px rgba(112, 0, 255, 0.7); }
    100% { box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3); }
}

/* SBI Champion Algorithm Section */
.sbi-performance-section {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-card);
    border-radius: 26px;
    padding: 40px;
    margin-bottom: 70px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.5);
}

.sec-head {
    text-align: center;
    margin-bottom: 30px;
}

.sec-title {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
}

.sec-desc {
    color: var(--text-sub);
    font-size: 0.95rem;
}

.perf-dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.perf-dash-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
}

.perf-val {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 4px;
}

/* REAL-TIME TOAST POPUP BROADCAST NOTIFICATION */
.toast-broadcast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 95;
    pointer-events: none;
    max-width: 440px;
}

.toast-broadcast-card {
    background: rgba(13, 20, 36, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(25px) scale(0.92);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-broadcast-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-icon-pulse {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.2);
    border: 1px solid rgba(0, 230, 118, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.4);
}

.toast-icon-pulse svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 2.2;
}

.toast-body {
    flex: 1;
}

.toast-badge-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.toast-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: blink 1.2s infinite ease-in-out;
}

.toast-text-msg {
    font-size: 0.86rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.4;
}

/* Footer Section */
.site-footer {
    background: rgba(3, 5, 10, 0.96);
    border-top: 1px solid var(--border-card);
    padding: 60px 0 90px;
    margin-top: 50px;
}

.footer-logos-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    text-align: center;
}

.partner-logo-wall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 45px;
    opacity: 0.8;
}

.partner-item {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.disclaimer-box {
    font-size: 0.78rem;
    color: #64748b;
    max-width: 820px;
    margin: 0 auto 24px;
    text-align: center;
    line-height: 1.6;
}

.copyright-txt {
    font-size: 0.82rem;
    color: var(--text-sub);
    text-align: center;
}

.copyright-txt a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 6px;
}

/* CLEAN MODAL OVERLAY FIX (Prevents Giant Dark Circles Shining Through) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 17, 0.94); /* Solid opaque glass prevents giant circle bleed */
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-glow);
    border-radius: 26px;
    padding: 35px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 240, 255, 0.3);
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-icon-badge {
    width: 60px;
    height: 60px;
    background: var(--btn-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 0 20px var(--primary-glow);
    flex-shrink: 0;
}

.modal-icon-badge svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.2;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.modal-msg {
    color: #cbd5e1;
    font-size: 0.98rem;
    margin-bottom: 26px;
    line-height: 1.6;
}

/* STYLED CLOSE BUTTON FIX */
.btn-modal-close {
    width: 100%;
    padding: 14px;
    background: var(--btn-gradient);
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.2s ease;
}

.btn-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
}

/* Floating Official Line / WhatsApp CTA Button */
.floating-line-cta {
    position: fixed;
    right: 24px;
    bottom: 95px;
    z-index: 96;
    background: var(--accent-line);
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.5);
    transition: all 0.3s ease;
}

.floating-line-cta.cta-whatsapp {
    background: #25D366;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.floating-line-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(6, 199, 85, 0.7);
}

.floating-line-cta.cta-whatsapp:hover {
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.7);
}

.floating-line-cta svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

/* Legal Modals Styling */
.modal-card-legal {
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.modal-card-legal .modal-legal-body {
    overflow-y: auto;
    max-height: 58vh;
    padding-right: 12px;
    margin: 15px 0 20px;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.75;
}

.modal-card-legal .modal-legal-body h4 {
    color: var(--primary);
    margin: 16px 0 6px;
    font-size: 0.98rem;
}

/* Table Responsive Box */
.table-responsive-box {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* RESPONSIVE MEDIA QUERIES FOR TABLET & MOBILE */
@media (max-width: 992px) {
    .teams-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 3.0rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .poster-overlay-bar { flex-direction: column; text-align: center; }
    .poster-badge-title { text-align: center; }
    .poster-stats-row { justify-content: center; flex-wrap: wrap; }
    .perf-dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-navbar { padding: 10px 0; }
    .brand-title { font-size: 0.95rem; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
    .co-hosts-badge { display: none; }
    .btn-my-records span { display: none; }
    .btn-my-records { padding: 7px 10px; }

    .user-profile-pill span { display: none; }
    .user-profile-pill { padding: 8px 10px; border-radius: 50%; }

    .btn-line-login span { font-size: 0.78rem; }
    .btn-line-login { padding: 7px 10px; }

    .hero-section { padding: 35px 0 25px; }
    .hero-title { font-size: 2.5rem; line-height: 1.15; margin-bottom: 14px; }
    .hero-subtitle { font-size: 1.05rem; line-height: 1.5; margin-bottom: 25px; }

    /* MOBILE DATA DASHBOARD: ROW 1 = 2 COLUMNS ($3,000 USD & 128,450人次), ROW 2 = 1 FULL WIDTH COLUMN (AWS Financial | Web3 Protocol) */
    .data-dashboard-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 35px;
    }
    .data-dash-card {
        padding: 14px 10px !important;
        border-radius: 16px !important;
    }
    .data-dash-card:nth-child(3) {
        grid-column: 1 / -1 !important;
    }
    .dash-card-icon {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 8px !important;
    }
    .dash-card-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    .data-dash-value {
        font-size: 1.25rem !important;
        margin-bottom: 2px !important;
    }
    .data-dash-label {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    /* MOBILE POSTER VISUAL */
    .sbi-champion-poster-card { border-radius: 20px; }
    .poster-overlay-bar { padding: 18px 14px; }
    .poster-badge-title h3 { font-size: 1.4rem; }

    /* Candidate Cards Mobile Layout */
    .team-card { padding: 0 0 24px 0; border-radius: 20px; box-sizing: border-box; }
    .team-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-bottom: 16px;
        position: relative;
    }
    .team-avatar {
        width: 100%;
        height: 220px;
        border-radius: 20px 20px 0 0;
        border: none;
        border-bottom: 3px solid var(--primary);
    }
    .team-title-box {
        padding: 16px 20px 0;
    }
    .team-details-list, .vote-count-display {
        margin-left: 20px;
        margin-right: 20px;
    }

    .btn-vote-trigger {
        width: calc(100% - 40px) !important;
        margin: 0 20px !important;
        box-sizing: border-box !important;
    }

    .rank-badge { top: 14px; right: 14px; }

    /* MOBILE TOAST SNAPPED TO BOTTOM 15px */
    .toast-broadcast-container {
        bottom: 15px !important;
        left: 12px !important;
        right: 12px !important;
        max-width: calc(100vw - 24px) !important;
    }

    /* MOBILE FLOATING LINE / WHATSAPP CTA MOVED UP TO 95px */
    .floating-line-cta {
        bottom: 95px !important;
        right: 18px !important;
        padding: 12px !important;
        border-radius: 50% !important;
    }
    .floating-line-cta span { display: none; }
}
