/* ==================== HOMEPAGE V2 - MOBILE FRIENDLY LAYOUT ==================== */

/* ==================== CONTENT SECTIONS - LIGHT BACKGROUND ==================== */

/* Main Content Section - Combined Layout */
.homepage-main-content {
    background: url('../images/background/illust-6.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
    isolation: isolate;
}

.homepage-main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(240, 244, 248, 0.88);
    pointer-events: none;
    z-index: -1;
}

.homepage-section-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Three Column Layout: Left - Center - Right */
/* Grid areas defined in responsive section below */

/* Left Column */
.homepage-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Center Column */
.homepage-center-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Right Column */
.homepage-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Full Width Section for News and Screenshots */
.homepage-full-width-section {
    max-width: 1200px;
    margin: 0 auto;
}

.homepage-section-header {
    text-align: center;
    margin-bottom: 30px;
}

.homepage-section-header.left-align {
    text-align: left;
    margin-bottom: 20px;
}

.homepage-section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(74, 144, 194, 0.1);
    color: #4a90c2;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 12px;
}

.homepage-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.homepage-section-title.small {
    font-size: 20px;
    margin: 0;
}

.homepage-section-desc {
    font-size: 14px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* News Section */
/* ==================== NEWS SECTION - COMPACT VERTICAL STYLE ==================== */
.homepage-news-section {
    padding: 0;
    background: transparent;
}

.homepage-news-section .homepage-section-header {
    margin-bottom: 15px;
}

.homepage-news-section .homepage-section-header.left-align {
    text-align: left;
}

.homepage-news-section .homepage-section-header.left-align .homepage-section-title {
    font-size: 18px;
}

/* Featured News Layout - Vertical Stack */
.homepage-news-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.homepage-featured-news {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Featured News Slider Container */
.homepage-featured-news-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.homepage-featured-news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.homepage-featured-news-slide.active {
    position: relative;
    opacity: 1;
}

.homepage-featured-news a {
    display: block;
    text-decoration: none;
}

/* Featured News Dots */
.homepage-featured-dots {
    position: absolute;
    bottom: 12px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.homepage-featured-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.homepage-featured-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.homepage-featured-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.homepage-featured-news-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

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

.homepage-featured-news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.homepage-featured-news-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #4fc3f7;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 8px;
}

.homepage-featured-news-badge.notice { background: #f44336; }
.homepage-featured-news-badge.update { background: #4fc3f7; }
.homepage-featured-news-badge.event { background: #ff9800; }

.homepage-featured-news-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.homepage-featured-news-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* News List Panel - Compact */
.homepage-news-list {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.homepage-news-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f8;
}

.homepage-news-list-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.homepage-news-list-more {
    color: #4a90c2;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.homepage-news-list-more:hover {
    color: #3a7db3;
}

.homepage-news-list-more i {
    transition: transform 0.3s ease;
}

.homepage-news-list-more:hover i {
    transform: translateX(4px);
}

.homepage-news-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f4f8;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.homepage-news-item:hover {
    background: #f8fafc;
    margin: 0 -12px;
    padding: 12px;
    border-radius: 8px;
}

.homepage-news-item-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.homepage-news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-news-item-content {
    flex: 1;
    min-width: 0;
}

.homepage-news-item-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 5px;
}

.homepage-news-item-badge.notice { background: rgba(244, 67, 54, 0.1); color: #f44336; }
.homepage-news-item-badge.update { background: rgba(79, 195, 247, 0.1); color: #4fc3f7; }
.homepage-news-item-badge.event { background: rgba(255, 152, 0, 0.1); color: #ff9800; }

.homepage-news-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.homepage-news-item-date {
    font-size: 11px;
    color: #999;
}

/* ==================== LOGIN CARD ==================== */
.homepage-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.homepage-login-card-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4f8;
}

.homepage-login-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #1a1a2e;
}

.homepage-login-card-header p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.homepage-login-form .form-group {
    margin-bottom: 12px;
}

.homepage-login-form .form-group label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.homepage-login-form .form-input {
    width: 100%;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1a1a2e;
    font-size: 13px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.homepage-login-form .form-input::placeholder {
    color: #999;
}

.homepage-login-form .form-input:focus {
    outline: none;
    border-color: #4fc3f7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.homepage-login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.homepage-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.4);
}

.homepage-login-footer {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #f0f4f8;
    text-align: center;
}

.homepage-login-footer p {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px 0;
}

.homepage-register-link {
    display: inline-block;
    color: #4a90c2;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.homepage-register-link:hover {
    color: #3a7db3;
}

/* Logged in state */
.homepage-user-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.homepage-user-avatar {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.homepage-user-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 3px 0;
    color: #1a1a2e;
}

.homepage-user-email {
    font-size: 11px;
    color: #666;
    margin: 0 0 15px 0;
}

.homepage-user-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

.homepage-stat-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 5px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.homepage-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #4a90c2;
    line-height: 1.2;
}

.homepage-stat-label {
    font-size: 9px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.homepage-user-role {
    font-size: 11px;
    color: #999;
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-weight: 600;
}

.homepage-user-actions {
    display: flex;
    gap: 8px;
}

.homepage-user-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.homepage-user-btn.primary {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: #fff;
}

.homepage-user-btn.secondary {
    background: #f8fafc;
    color: #555;
    border: 1px solid #e2e8f0;
}

/* ==================== FLOATING REWARD BUTTONS ==================== */
.homepage-floating-rewards {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 120;
}

.homepage-floating-reward-btn {
    width: 62px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    position: relative;
}

.homepage-floating-reward-btn:focus-visible {
    outline: none;
}

.homepage-floating-reward-btn:hover .homepage-floating-reward-card,
.homepage-floating-reward-btn:focus-visible .homepage-floating-reward-card {
    transform: translateX(-6px) scale(1.03);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
}

.homepage-floating-reward-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(27, 39, 63, 0.96) 0%, rgba(12, 18, 31, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: rgba(248, 250, 252, 0.96);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    pointer-events: none;
    text-rendering: geometricPrecision;
}

.homepage-floating-reward-label::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 48%, rgba(255,255,255,0.08) 100%);
    pointer-events: none;
}

.homepage-floating-reward-label::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 8px;
    height: 8px;
    background: rgba(17, 24, 39, 0.96);
    transform: translateX(-50%) rotate(45deg);
    border-right: 1px solid rgba(148, 163, 184, 0.14);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.homepage-floating-reward-btn.newbie .homepage-floating-reward-label {
    background: linear-gradient(180deg, rgba(24, 45, 79, 0.97) 0%, rgba(15, 23, 42, 0.97) 100%);
}

.homepage-floating-reward-btn.returning .homepage-floating-reward-label {
    background: linear-gradient(180deg, rgba(36, 38, 84, 0.97) 0%, rgba(19, 24, 48, 0.97) 100%);
}

.homepage-floating-reward-label.top {
    bottom: calc(100% + 9px);
}

.homepage-floating-reward-label.top::after {
    top: calc(100% - 4px);
}

.homepage-floating-reward-label.bottom {
    top: calc(100% + 9px);
}

.homepage-floating-reward-label.bottom::after {
    bottom: calc(100% - 4px);
}

.homepage-floating-reward-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 62px;
    padding: 8px;
    border-radius: 50%;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(203, 213, 225, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.homepage-floating-reward-card::before {
    content: none;
}

.homepage-floating-reward-btn.is-claimable .homepage-floating-reward-card {
    border-color: rgba(59, 130, 246, 0.32);
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.18);
}

.homepage-floating-reward-btn.is-claimed .homepage-floating-reward-card {
    border-color: rgba(250, 204, 21, 0.45);
}

.homepage-floating-reward-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-floating-reward-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(147, 197, 253, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.homepage-floating-reward-btn.returning .homepage-floating-reward-icon {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-color: rgba(165, 180, 252, 0.72);
}

.homepage-floating-reward-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.homepage-floating-reward-copy {
    display: none;
}

.homepage-floating-reward-copy strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
}

.homepage-floating-reward-indicator {
    position: relative;
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-radius: 50%;
    background: #cbd5e1;
    box-shadow: 0 0 0 6px rgba(226, 232, 240, 0.9);
    flex-shrink: 0;
}

.homepage-floating-reward-btn.is-claimable .homepage-floating-reward-indicator {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(220, 252, 231, 0.95);
}

.homepage-floating-reward-btn.is-claimed .homepage-floating-reward-indicator {
    background: #f59e0b;
    box-shadow: 0 0 0 6px rgba(254, 243, 199, 0.95);
}

.homepage-floating-reward-card.is-muted {
    opacity: 0.94;
}

.homepage-reward-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 14, 28, 0.62);
    backdrop-filter: blur(8px);
    z-index: 140;
}

.homepage-reward-modal.active {
    display: flex;
}

.homepage-reward-modal-dialog {
    width: min(460px, 100%);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(12, 21, 37, 0.95) 0%, rgba(14, 25, 43, 0.98) 100%);
    box-shadow: 0 32px 60px rgba(2, 8, 20, 0.45);
    color: #f8fafc;
}

.homepage-reward-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 16px;
}

.homepage-reward-modal-header h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}

.homepage-reward-modal-header p {
    margin: 8px 0 0;
    color: rgba(226, 232, 240, 0.72);
    font-size: 13px;
}

.homepage-reward-modal-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.homepage-reward-modal-body {
    padding: 0 22px 22px;
}

.homepage-reward-modal-panel {
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.homepage-reward-modal-panel h4 {
    margin: 0 0 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #93c5fd;
}

.homepage-reward-modal-panel p,
.homepage-reward-modal-panel li {
    margin: 0;
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.65;
}

.homepage-reward-item-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.homepage-reward-item-list li {
    position: relative;
    padding-left: 18px;
    color: #f8fafc;
    font-size: 13px;
    line-height: 1.6;
}

.homepage-reward-item-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #7dd3fc;
    font-size: 14px;
    font-weight: 700;
}

.homepage-reward-meta-list {
    display: grid;
    gap: 10px;
}

.homepage-reward-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.homepage-reward-meta-row span {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.68);
}

.homepage-reward-meta-row strong {
    font-size: 14px;
    color: #fff;
    text-align: right;
}

.homepage-reward-status-box {
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 18px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.homepage-reward-status-box.claimable {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(74, 222, 128, 0.25);
}

.homepage-reward-status-box.claimed {
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.24);
}

.homepage-reward-status-box.not-eligible {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.18);
}

.homepage-reward-status-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.homepage-reward-status-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
}

.homepage-reward-modal-actions {
    display: flex;
    justify-content: flex-end;
}

.homepage-reward-claim-btn {
    min-width: 170px;
    padding: 14px 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #3cb9ff 0%, #2896e6 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
}

.homepage-reward-claim-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.homepage-reward-claim-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.homepage-user-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .homepage-floating-rewards {
        right: 12px;
    }

    .homepage-floating-reward-label {
        min-width: 102px;
        font-size: 7.5px;
    }
}

@media (max-width: 768px) {
    .homepage-floating-rewards {
        top: auto;
        bottom: 18px;
        transform: none;
        gap: 10px;
    }

    .homepage-floating-reward-btn {
        width: 54px;
    }

    .homepage-floating-reward-card {
        min-height: 54px;
        padding: 6px;
    }

    .homepage-floating-reward-label {
        min-width: 94px;
        padding: 5px 9px;
        font-size: 7px;
    }

    .homepage-floating-reward-icon {
        width: 40px;
        height: 40px;
    }

    .homepage-floating-reward-icon img {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 768px) {
    .hoyo-mobile-menu .hoyo-mobile-auth .hoyo-mobile-btn {
        display: block;
        text-align: center;
        padding: 9px 14px;
        font-size: 13.5px;
        min-width: 0;
        width: 100%;
        margin-bottom: 0;
        border-radius: 25px;
        box-sizing: border-box;
    }

    .hoyo-mobile-menu .hoyo-mobile-auth .hoyo-mobile-btn.primary {
        padding: 9px 14px;
        border-radius: 25px;
        background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
        border-color: #4fc3f7;
    }
}

/* ==================== PANEL STYLES - COMPACT ==================== */
.homepage-panel {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.homepage-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4f8;
}

.homepage-panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.homepage-schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.homepage-schedule-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.homepage-schedule-card:hover {
    background: #f0f4f8;
}

.homepage-schedule-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
}

.homepage-schedule-countdown {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(74, 144, 194, 0.1);
    color: #4a90c2;
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
}

.homepage-schedule-countdown.live {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.homepage-schedule-countdown.far {
    background: #f0f4f8;
    color: #999;
}

/* Top Killers Table - Compact */
.homepage-killers-table {
    width: 100%;
}

.homepage-killers-head {
    display: grid;
    grid-template-columns: 35px 1fr 60px;
    padding: 8px 0;
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #f0f4f8;
}

.homepage-killers-row {
    display: grid;
    grid-template-columns: 35px 1fr 60px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f8;
    align-items: center;
    transition: background 0.3s ease;
}

.homepage-killers-row:last-child {
    border-bottom: none;
}

.homepage-killers-row:hover {
    background: #f8fafc;
    margin: 0 -10px;
    padding: 10px;
    border-radius: 8px;
}

.homepage-killers-rank {
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    color: #1a1a2e;
}

.homepage-killers-rank.gold { color: #ffd700; text-shadow: 0 0 4px rgba(0,0,0,0.3); }
.homepage-killers-rank.silver { color: #c0c0c0; text-shadow: 0 0 4px rgba(0,0,0,0.3); }
.homepage-killers-rank.bronze { color: #cd7f32; text-shadow: 0 0 4px rgba(0,0,0,0.3); }

.homepage-killers-name {
    font-weight: 600;
    font-size: 13px;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.homepage-killers-score {
    text-align: right;
    font-weight: 600;
    font-size: 13px;
    color: #4a90c2;
}

/* ==================== INFO PANELS - Compact ==================== */
.homepage-info-panel {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.homepage-info-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4f8;
}

.homepage-info-panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

.homepage-info-panel-icon.discord { background: linear-gradient(135deg, #5865f2 0%, #7289da 100%); }
.homepage-info-panel-icon.server { background: linear-gradient(135deg, #4a90c2 0%, #67b8e3 100%); }
.homepage-info-panel-icon.population { background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%); }

.homepage-info-panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

/* Discord Panel - Live Widget (White/Clouds Theme) */
.homepage-discord-card {
    background: #fff;
    overflow: hidden;
}

.homepage-discord-card .homepage-info-panel-header {
    border-bottom-color: #5865f2;
}

.homepage-discord-card .homepage-info-panel-header i {
    color: #5865f2;
    font-size: 18px;
}

.homepage-discord-card .homepage-info-panel-header h3 {
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

/* Discord Header Banner */
.homepage-discord-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    border-radius: 10px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.homepage-discord-header::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: discordShimmer 4s infinite;
}

@keyframes discordShimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.homepage-discord-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.homepage-discord-icon i {
    font-size: 22px;
    color: #fff;
}

.homepage-discord-info {
    flex: 1;
}

.homepage-discord-info h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px 0;
}

.homepage-discord-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
}

.homepage-discord-online-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #43b581;
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 1.5s ease-in-out infinite;
}

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

/* Voice Channels Section */
.homepage-discord-voice-section {
    margin-bottom: 10px;
}

.homepage-discord-section-label {
    font-size: 10px;
    font-weight: 700;
    color: #8e9297;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 4px 6px;
}

.homepage-discord-voice-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e8ecf0;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.homepage-discord-voice-channel:hover {
    background: #f0f4f8;
    border-color: #5865f2;
}

.homepage-discord-voice-channel i {
    color: #5865f2;
    font-size: 14px;
    flex-shrink: 0;
}

.homepage-discord-voice-channel .channel-name {
    color: #444;
    font-size: 13px;
    font-weight: 500;
    flex: 1;
}

.homepage-discord-voice-users {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-left: 26px;
    margin-bottom: 6px;
}

.homepage-discord-voice-user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
}

.homepage-discord-voice-user img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.homepage-discord-voice-user span {
    color: #666;
    font-size: 12px;
}

/* Members Section */
.homepage-discord-members-section {
    margin-bottom: 12px;
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(88,101,242,0.3) transparent;
}

.homepage-discord-members-section::-webkit-scrollbar {
    width: 4px;
}

.homepage-discord-members-section::-webkit-scrollbar-thumb {
    background: rgba(88,101,242,0.3);
    border-radius: 4px;
}

.homepage-discord-member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 6px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.homepage-discord-member:hover {
    background: #f0f4f8;
}

.homepage-discord-member-avatar {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.homepage-discord-member-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.homepage-discord-member-avatar .status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.status-dot.online { background: #43b581; }
.status-dot.idle { background: #faa61a; }
.status-dot.dnd { background: #f04747; }

.homepage-discord-member-name {
    color: #333;
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.homepage-discord-member-game {
    color: #43b581;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

/* Join Button */
.homepage-discord-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.homepage-discord-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.homepage-discord-join-btn i {
    font-size: 18px;
}

/* Loading state */
.discord-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #8e9297;
    font-size: 12px;
    gap: 8px;
}

.discord-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Server Info Panel - Compact */
.homepage-server-list {
    background: #fff;
}

.homepage-server-list .homepage-info-panel-header i {
    color: #4a90c2;
    font-size: 16px;
}

.homepage-server-list .homepage-info-panel-header h3 {
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.homepage-server-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Online Character Featured Card (Green Theme) */
.homepage-online-total {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f0f7f0 0%, #e8f5e9 100%);
    border-radius: 10px;
    margin-bottom: 4px;
    border: 1px solid #c8e6c9;
}

.homepage-online-total-label {
    color: #666;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.homepage-online-total-value {
    color: #43a047;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.homepage-server-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e8ecf0;
    transition: all 0.3s ease;
}

.homepage-server-info-row:hover {
    background: #f0f4f8;
    border-color: #4a90c2;
}

.homepage-server-info-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #4a90c2 0%, #67b8e3 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-server-info-icon i {
    color: #fff;
    font-size: 12px;
}

.homepage-server-info-label {
    flex: 1;
    color: #555;
    font-size: 12px;
    font-weight: 500;
}

.homepage-server-info-value {
    font-weight: 700;
    font-size: 13px;
    color: #1a1a2e;
}

.homepage-server-info-value.online {
    color: #43a047;
    background: rgba(67, 160, 71, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.homepage-server-info-value.offline {
    color: #e53935;
    background: rgba(229, 57, 53, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Population Panel - Compact */
.homepage-population-card {
    background: #fff;
}

.homepage-population-card .homepage-info-panel-header i {
    color: #43a047;
    font-size: 16px;
}

.homepage-population-card .homepage-info-panel-header h3 {
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.homepage-population-total {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #e3f0fa 0%, #d1e8f8 100%);
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #b3d4f0;
}

.homepage-population-total-label {
    color: #666;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.homepage-population-total-value {
    color: #2979b9;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.homepage-population-schools {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.homepage-population-school {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e8ecf0;
    transition: all 0.3s ease;
}

.homepage-population-school:hover {
    background: #f0f4f8;
}

.homepage-population-school.sacred { border-left: 3px solid #e53935; }
.homepage-population-school.mystic { border-left: 3px solid #43a047; }
.homepage-population-school.phoenix { border-left: 3px solid #fb8c00; }

.homepage-population-school-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-population-school-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.homepage-population-school.sacred .homepage-population-school-icon { background: rgba(229, 57, 53, 0.1); }
.homepage-population-school.mystic .homepage-population-school-icon { background: rgba(67, 160, 71, 0.1); }
.homepage-population-school.phoenix .homepage-population-school-icon { background: rgba(251, 140, 0, 0.1); }

.homepage-population-school-name {
    flex: 1;
    font-weight: 600;
    font-size: 12px;
    color: #444;
}

.homepage-population-school-count {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 14px;
}

/* ==================== SCREENSHOTS GALLERY ==================== */
/* ==================== SCREENSHOTS/GALLERY - COMPACT FOR CENTER COLUMN ==================== */
.homepage-screenshots-section {
    padding: 0;
    margin-top: 15px;
    background: transparent;
}

.homepage-screenshots-section .homepage-section-header {
    margin-bottom: 12px;
}

.homepage-screenshots-section .homepage-section-header .homepage-section-tag {
    font-size: 10px;
    padding: 3px 8px;
}

.homepage-screenshots-section .homepage-section-header .homepage-section-title {
    font-size: 18px;
}

.homepage-screenshots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.homepage-screenshot-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height:310px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.homepage-screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.homepage-screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.homepage-screenshot-item:hover img {
    transform: scale(1.08);
}

.homepage-screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-screenshot-item:hover .homepage-screenshot-overlay {
    opacity: 1;
}

.homepage-screenshot-overlay i {
    color: #fff;
    font-size: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Screenshot Lightbox */
.homepage-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.homepage-lightbox.active {
    display: flex;
}

.homepage-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.homepage-lightbox-close:hover {
    transform: rotate(90deg);
    color: #ff6b6b;
}

.homepage-lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.homepage-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.homepage-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Account Dropdown Menu */
.hoyo-account-menu {
    position: relative;
    display: inline-block;
}

.hoyo-account-btn {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: transparent;
}

.hoyo-account-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.hoyo-account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 8px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.hoyo-account-menu:hover .hoyo-account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hoyo-account-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: left;
}

.hoyo-account-dropdown a:hover {
    background: #f0f4f8;
    color: #4a90c2;
}

.hoyo-account-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
}

.homepage-lightbox-nav.prev {
    left: 30px;
}

.homepage-lightbox-nav.next {
    right: 30px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Desktop - default 3-column grid layout */
.homepage-three-column-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    grid-template-areas: "left center right";
    gap: 25px;
    margin-bottom: 50px;
}

.homepage-left-column {
    grid-area: left;
}

.homepage-center-column {
    grid-area: center;
}

.homepage-right-column {
    grid-area: right;
}

/* Desktop layout maintained on all devices - no responsive breakpoints */

/* Responsive Layout Adjustment */
html, body {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    background: #0a0a0a !important;
}

.hoyo-page {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    background: #0a0a0a !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.homepage-main-content {
    flex: 1 0 auto !important;
}

/* ==================== GAME ACTIVITY FEED ==================== */
.homepage-activity-feed {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-top: 15px;
}

/* Feed Content - show 5 items, no scroll */
.activity-feed-content {
    /* no scroll - View Full Logs button provides access to all */
}

/* Feed Item */
.activity-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 14px;
    border-bottom: 1px solid #f5f6f8;
    transition: background 0.2s ease;
    animation: feedItemSlideIn 0.4s ease forwards;
    opacity: 0;
    transform: translateY(8px);
}

@keyframes feedItemSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-feed-item:hover {
    background: #fafbfd;
}

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

/* Feed Info */
.activity-feed-info {
    flex: 1;
    min-width: 0;
}

.activity-feed-text {
    font-size: 11.5px;
    line-height: 1.4;
    margin: 0 0 3px;
    color: #555;
}

.activity-highlight-player {
    font-weight: 700;
    color: #2d3436;
}

.activity-highlight-boss {
    font-weight: 700;
    color: #e74c3c;
}

.activity-highlight-level {
    font-weight: 700;
    color: #f39c12;
}

.activity-highlight-level i {
    font-size: 9px;
    color: #f1c40f;
}

.activity-verb {
    color: #888;
}

/* Feed Meta */
.activity-feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.activity-meta-item {
    font-size: 10px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 3px;
}

.activity-meta-item i {
    font-size: 9px;
}

.activity-meta-item.money {
    color: #f39c12;
    font-weight: 600;
}

.activity-meta-item.school.sacred-gate { color: #0984e3; }
.activity-meta-item.school.mystic-peak { color: #6c5ce7; }
.activity-meta-item.school.phoenix { color: #e84393; }

/* Feed Time */
.activity-feed-time {
    font-size: 9px;
    color: #bbb;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
    font-weight: 500;
}

/* Footer / View Full Logs */
.activity-feed-footer {
    padding: 8px 14px;
    border-top: 1px solid #f0f2f5;
    text-align: center;
}

.activity-view-all-btn {
    background: none;
    border: 1px solid #e0e3e8;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.activity-view-all-btn:hover {
    background: #4a90c2;
    border-color: #4a90c2;
    color: #fff;
}

.activity-view-all-btn i {
    margin-right: 5px;
    font-size: 10px;
}

/* Empty State */
.activity-feed-empty {
    text-align: center;
    padding: 30px 16px;
    color: #ccc;
}

.activity-feed-empty i {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.4;
}

.activity-feed-empty p {
    font-size: 11px;
    color: #aaa;
    margin: 0;
}

/* ==================== ACTIVITY MODAL ==================== */
.activity-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

.activity-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 900px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideUp 0.3s ease;
}

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

.activity-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f2f5;
}

.activity-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
}

.activity-modal-header h3 i {
    margin-right: 8px;
}

.activity-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.activity-modal-close:hover {
    color: #e74c3c;
}

.activity-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Modal Table */
.activity-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.activity-modal-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.activity-modal-table thead th {
    background: #f8f9fb;
    color: #666;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #eee;
    white-space: nowrap;
}

.activity-modal-table tbody tr {
    border-bottom: 1px solid #f5f6f8;
    transition: background 0.15s;
}

.activity-modal-table tbody tr:hover {
    background: #fafbfd;
}

.activity-modal-table tbody td {
    padding: 10px 14px;
    color: #555;
    vertical-align: top;
}

.modal-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.modal-type-badge.boss {
    background: #fff5f5;
    color: #e74c3c;
    border: 1px solid #fecaca;
}

.modal-type-badge.levelup {
    background: #fffbeb;
    color: #f39c12;
    border: 1px solid #fde68a;
}

.modal-player {
    font-weight: 700;
    color: #2d3436;
}

.modal-boss-name {
    color: #e74c3c;
}

.modal-level-text {
    color: #f39c12;
}

.modal-drops-cell {
    max-width: 200px;
    word-break: break-word;
    font-size: 11.5px;
    color: #666;
}

.modal-money {
    color: #f39c12;
    font-weight: 600;
}

.modal-time {
    color: #999;
    white-space: nowrap;
    font-size: 11px;
}

/* Modal responsive */
@media (max-width: 768px) {
    .activity-modal {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 10px;
    }
    
    .activity-modal-table {
        font-size: 11px;
    }
    
    .activity-modal-table thead th,
    .activity-modal-table tbody td {
        padding: 8px 10px;
    }
    
    .modal-drops-cell {
        max-width: 120px;
    }
}

/* Modal Pagination */
.activity-modal-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border-top: 1px solid #f0f2f5;
    background: #fafbfc;
    border-radius: 0 0 14px 14px;
}

.activity-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid #e0e3e8;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.activity-page-btn:hover:not(:disabled) {
    background: #f0f2f5;
    border-color: #ccc;
    color: #333;
}

.activity-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.activity-page-info {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

/* Responsive Grid System */
@media (max-width: 1024px) {
    .homepage-three-column-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* Undo column widths and use display: contents to allow reordering children */
    .homepage-left-column,
    .homepage-center-column,
    .homepage-right-column {
        display: contents !important;
    }
    
    .homepage-main-content {
        padding-top: 90px !important; /* Reduce gap on mobile */
    }

    /* Mobile Order: 
       1. Slider
       2. Login Card
       3. Recent Updates
       4. Server Information
       5. Server Population
       6. Event Schedule
       7. Top Killers + Activity Feed
       8. Game Screenshots
       9. Community
    */
    .homepage-hero-wrapper { order: 1 !important; }
    .homepage-login-card, .homepage-user-card { order: 2 !important; }
    .homepage-news-section { order: 3 !important; }
    .homepage-server-list { order: 4 !important; }
    .homepage-population-card { order: 5 !important; }
    .homepage-schedule-panel { order: 6 !important; }
    .homepage-killers-panel { order: 7 !important; }
    .homepage-activity-feed { order: 7 !important; }
    .homepage-screenshots-section { order: 8 !important; }
    .homepage-discord-card { order: 9 !important; }
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    /* Add a little extra breathing room under the nav on mobile */
    .homepage-main-content {
        padding-top: 100px !important;
    }

    .hoyo-nav {
        padding: 0 20px !important;
        height: 65px !important;
    }

    .hoyo-nav-logo {
        display: flex !important;
        align-items: center !important;
    }

    .hoyo-nav-logo img {
        height: 46px !important;
        width: auto !important;
    }

    .hoyo-nav-menu {
        display: none !important;
    }
    
    .hoyo-nav-toggle {
        display: flex !important;
        margin-left: auto !important;
        background: transparent !important;
        border: none !important;
    }
    
    .hoyo-nav-toggle span {
        background-color: #fff !important; /* Ensure lines are white */
    }
    
    .hoyo-nav-auth {
        display: none !important;
    }
}



/* Mobile fix: keep Game Screenshots within the viewport (was overflowing to the right) */
@media (max-width: 768px) {
    .homepage-screenshots-section {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .homepage-screenshots-wrapper,
    .homepage-screenshots-grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Drop the desktop min-height so the 16/9 ratio sizes from the screen width */
    .homepage-screenshot-item {
        min-height: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .homepage-screenshot-item img {
        width: 100% !important;
        height: 100% !important;
    }
}

/* ==================== HERO CLASS-INTRODUCTION SLIDER (restored) ==================== */
/* Hero Banner Section - Compact for Center Column */
.homepage-hero-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.homepage-hero {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: visible;
    z-index: 1;
}

.homepage-hero-slider {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9;
}

.homepage-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.homepage-hero-slide.active {
    opacity: 1;
}

.homepage-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay removed for raw banner display */

.homepage-hero-content {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 10;
    text-align: left;
    max-width: 350px;
}

.homepage-hero-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 15px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.homepage-hero-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.homepage-hero-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px 0;
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.homepage-hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.homepage-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.homepage-hero-btn.primary {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: #fff;
    border: 2px solid transparent;
}

.homepage-hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 195, 247, 0.4);
}

.homepage-hero-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.homepage-hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Slider Navigation Dots */
.homepage-hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 20;
}

.homepage-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.homepage-hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.homepage-hero-dot.active {
    background: #fff;
    transform: scale(1.2);
}
