﻿:root {
    --primary-color: #514eb6;
    --primary-dark: #3b3896;
    --secondary-color: #ffc107;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;

    /* Vibrant/Premium Redesign Tokens */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --vibrant-pink: #ff007a;
    --vibrant-blue: #00d2ff;
    --vibrant-purple: #9d50bb;
    --vibrant-orange: #ff9d00;
    --premium-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Testimonials
   ========================================= */
.testimonial-main-block {
    background: #f8faff;
    padding: 80px 0;
    position: relative;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 20px 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.testimonial-quote-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 80px;
    line-height: 1;
    color: rgba(81, 78, 182, 0.05);
    /* Primary color but very faint */
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    pointer-events: none;
}

.testimonial-img-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.testimonial-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: #ffb400;
    margin-bottom: 15px;
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
}

.client-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.client-comment {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    font-style: italic;
    position: relative;
    z-index: 2;
}

/* =========================================
   Blog
   ========================================= */
.blog-main-block {
    padding: 80px 0;
    background: #fff;
}

.custom-blog-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.custom-blog-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-5px);
}

.blog-img-container {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.blog-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.custom-blog-card:hover .blog-img-container img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta-list {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    padding: 0;
    list-style: none;
}

.blog-meta-list li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta-list i {
    color: var(--primary-color);
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #222;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    /* Push button to bottom */
}

.blog-read-btn {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: gap 0.2s, color 0.2s;
    margin-top: auto;
}

.blog-read-btn:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* =========================================
   Newsletter
   ========================================= */
.newsletter-main-block {
    padding: 100px 0;
    background: #fff;
}

.custom-newsletter-wrapper {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    /* Modern Indigo/Violet gradient */
    border-radius: 24px;
    padding: 50px 60px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Decorative circles */
.newsletter-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.newsletter-circle-1 {
    top: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
}

.newsletter-circle-2 {
    bottom: -40px;
    right: 20%;
    width: 150px;
    height: 150px;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    flex: 1;
}

.newsletter-heading {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.2;
}

.newsletter-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 400;
}

.custom-newsletter-form {
    display: flex;
    background: #fff;
    padding: 6px;
    border-radius: 60px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-width: 480px;
    width: 100%;
}

.custom-newsletter-form input {
    border: none;
    padding: 16px 25px;
    border-radius: 60px 0 0 60px;
    flex: 1;
    font-size: 16px;
    outline: none;
    color: #333;
}

.custom-newsletter-form input::placeholder {
    color: #aaa;
}

.custom-newsletter-form button {
    background: #ffc107;
    /* Pop color */
    color: #222;
    font-weight: 700;
    border: none;
    padding: 0 35px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    white-space: nowrap;
}

.custom-newsletter-form button:hover {
    background: #ffdb58;
    transform: scale(1.05);
}

.newsletter-img-wrapper {
    position: relative;
    z-index: 2;
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
    margin-left: 40px;
}

.newsletter-img-wrapper img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* =========================================
   My Friends Page (Premium Redesign)
   ========================================= */
.my-friends-main-block {
    padding: 80px 0;
    background: #fdfdfd;
    position: relative;
    min-height: 80vh;
}

/* Background Decorations */
.friends-bg-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.decor-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 5%;
    left: -100px;
}

.decor-2 {
    width: 250px;
    height: 250px;
    background: #ffc107;
    bottom: 10%;
    right: -50px;
}

/* Header Premium */
.friends-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.friends-main-title {
    font-size: 32px;
    font-weight: 800;
    color: #222;
    margin-bottom: 5px;
}

.friends-subtitle {
    color: #888;
    font-size: 16px;
    margin: 0;
}

.btn-premium-action {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(81, 78, 182, 0.3);
}

.btn-premium-action:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(81, 78, 182, 0.4);
    color: #fff;
}

/* Tabs Premium */
.friends-tabs-wrapper {
    margin-bottom: 30px;
}

.nav-pills-premium {
    display: flex;
    gap: 15px;
    background: rgba(240, 240, 255, 0.5);
    padding: 8px;
    border-radius: 20px;
    width: fit-content;
}

.nav-pills-premium .nav-link {
    padding: 12px 25px;
    border-radius: 15px;
    font-weight: 700;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
}

.nav-pills-premium .nav-link.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.count-pill {
    background: rgba(81, 78, 182, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
}

.badge-danger.count-pill {
    background: #ff4757;
    color: #fff;
}

.pulse {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* Friend Card Premium */
.friend-card-premium {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.friend-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.premium-card-top {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.premium-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
}

.friend-rank-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 15px;
    border-radius: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.premium-card-content {
    padding: 0 25px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.friend-avatar-wrap {
    margin-top: -55px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.friend-avatar-premium {
    width: 110px;
    height: 110px;
    border-radius: 35px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.friend-avatar-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    color: #fff;
}

.status-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    position: absolute;
    bottom: 5px;
    right: 5px;
}

.status-indicator.online {
    background: #2ed573;
}

.friend-name-premium {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.friend-name-premium a {
    color: #222;
    text-decoration: none !important;
    transition: color 0.2s;
}

.friend-name-premium a:hover {
    color: var(--primary-color);
}

.friend-slug-premium {
    color: #aaa;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}

.friend-stats-premium {
    display: flex;
    background: #f8faff;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.stat-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
}

.stat-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-val {
    font-size: 16px;
    font-weight: 800;
    color: #333;
    line-height: 1.2;
}

.stat-lbl {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.div-line {
    width: 1px;
    height: 30px;
    background: #e0e6ed;
    margin: 0 10px;
}

.premium-card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-view-profile {
    flex: 1;
    background: #f0f3ff;
    color: var(--primary-color);
    border-radius: 16px;
    padding: 12px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-view-profile:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-unfriend {
    width: 48px;
    background: #fff0f0;
    color: #ff4757;
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-unfriend:hover {
    background: #ff4757;
    color: #fff;
    transform: rotate(10deg);
}

/* Search and Sort Wrap */
.search-sort-wrap {
    display: flex;
    gap: 15px;
    align-items: center;
}

.premium-search-box {
    position: relative;
    flex: 1;
}

.premium-search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
    pointer-events: none;
}

.premium-search-box input {
    width: 100%;
    background: #f8faff;
    border: 1px solid #eee;
    padding: 15px 15px 15px 50px;
    border-radius: 18px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.premium-search-box input:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(81, 78, 182, 0.1);
}

.btn-premium-sort {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 15px 25px;
    font-weight: 700;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-premium-sort:hover {
    background: #f8faff;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.premium-dropdown {
    border-radius: 20px;
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.premium-dropdown .dropdown-item {
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 12px;
}

.premium-dropdown .dropdown-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.premium-dropdown .dropdown-item:hover {
    background: #f0f3ff;
    color: var(--primary-color);
}

.btn-add-friend-premium {
    width: 48px;
    height: 48px;
    background: #e7f9ee;
    color: #2ed573;
    border: none;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-friend-premium:hover {
    background: #2ed573;
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.suggestion-lst-premium {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    margin-top: 10px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.pagination-premium .pagination {
    justify-content: center;
    gap: 10px;
}

.pagination-premium .page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 1px solid #eee;
    color: #444;
    font-weight: 700;
    transition: all 0.2s;
}

.pagination-premium .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination-premium .page-link:hover {
    background: #f0f3ff;
    color: var(--primary-color);
}

/* Premium Modals */

.premium-modal .modal-content {
    border-radius: 30px;
    border: none;
    overflow: hidden;
}

.premium-gradient-bg {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.request-list-premium {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.request-card-premium {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.request-card-premium:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.request-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.request-avatar {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    overflow: hidden;
}

.request-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials-sm {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.request-details .name {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.request-details .slug {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.btn-cancel-request {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: none;
    transition: all 0.2s;
}

.btn-cancel-request:hover {
    background: #ff4757;
    color: #fff;
}

.request-action-buttons {
    display: flex;
    gap: 10px;
}

.btn-accept {
    background: #2ed573;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-reject {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-accept:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn-reject:hover {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.empty-requests {
    text-align: center;
    padding: 40px 0;
}

.empty-requests i {
    font-size: 50px;
    margin-bottom: 15px;
}

.empty-requests p {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

/* Empty State All Friends */
.empty-state-premium {
    padding: 60px 20px;
}

.empty-icon-wrapper {
    width: 100px;
    height: 100px;
    background: #f0f3ff;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--primary-color);
    font-size: 40px;
}

.empty-title {
    font-weight: 800;
    color: #222;
    margin-bottom: 15px;
}

.empty-desc {
    color: #888;
    max-width: 400px;
    margin: 0 auto 30px;
}

.btn-premium-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 20px;
    font-weight: 800;
    text-decoration: none !important;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(81, 78, 182, 0.2);
}

/* Animations */
.card-animate {
    animation: fadeInScale 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-animate:nth-child(1) {
    animation-delay: 0.1s;
}

.card-animate:nth-child(2) {
    animation-delay: 0.2s;
}

.card-animate:nth-child(3) {
    animation-delay: 0.3s;
}

.card-animate:nth-child(4) {
    animation-delay: 0.4s;
}

.card-animate:nth-child(5) {
    animation-delay: 0.5s;
}

.card-animate:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 991px) {
    .friends-header-premium {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .nav-pills-premium {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .friends-main-title {
        font-size: 26px;
    }

    .friend-card-premium {
        border-radius: 24px;
    }
}

/* =========================================
   Counter / Stats (Rank, Coins, Score)
   ========================================= */
.counter-main-block {
    padding: 60px 0;
    background: transparent;
    position: relative;
    margin-top: -80px;
    /* Overlap with slider or previous section if needed */
    z-index: 10;
}

.custom-counter-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(118, 75, 162, 0.3);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* Removed top border strip */
.custom-counter-card::before {
    display: none;
}

.counter-item {
    text-align: center;
    flex: 1;
    position: relative;
}

/* Dividers */
.counter-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.counter-icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 15px;
    transition: transform 0.3s ease;
}

.custom-counter-card:hover .counter-icon-wrap {
    transform: scale(1.1) rotate(5deg);
    background: #fff;
    color: #764ba2;
}

.counter-title-sm {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
    font-weight: 600;
}

.counter-number-lg {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* =========================================
   Categories (Slider)
   ========================================= */
.categories-main-block {
    padding: 80px 0;
    background: #fff;
}

.custom-category-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 15px;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: block;
    /* For anchor tag */
    text-decoration: none !important;
}

.custom-category-card:hover {
    box-shadow: 0 15px 35px rgba(81, 78, 182, 0.15);
    border-color: transparent;
    transform: translateY(-8px);
}

.category-img-circle {
    width: 80px;
    height: 80px;
    background: #f8f9fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.category-img-circle img {
    max-width: 50%;
    max-height: 50%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.custom-category-card:hover .category-img-circle {
    background: #eef2ff;
}

.custom-category-card:hover .category-img-circle img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.category-title {
    font-weight: 700;
    color: #333;
    font-size: 18px;
    margin: 0;
}

/* Decorative corner blob */
.custom-category-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.05;
    transition: transform 0.3s ease;
}

.custom-category-card:hover::before {
    transform: scale(2.5);
    opacity: 0.1;
}


/* =========================================
   Find Friends Banner
   ========================================= */
.find-friend-main-block {
    padding: 80px 0;
}

.custom-find-friend-banner {
    background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
    /* Warm sunset gradient */
    border-radius: 30px;
    padding: 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(255, 94, 98, 0.3);
}

.ff-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
}

.ff-heading {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.ff-btn {
    background: #fff;
    color: #ff5e62;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ff-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #e04549;
}

.ff-images-grid {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    z-index: 1;
}

.ff-user-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    background: #fff;
    transition: transform 0.3s ease;
}

.ff-user-img:nth-child(even) {
    transform: translateY(20px);
}

.custom-find-friend-banner:hover .ff-user-img {
    transform: scale(1.1);
}

/* =========================================
   Discover Quizzes
   ========================================= */
.discover-main-block {
    padding: 80px 0;
    background: #f4f6fe;
    /* Very faint blue bg */
}

.discover-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.discover-section-title {
    font-size: 32px;
    font-weight: 800;
    color: #222;
}

.discover-see-all {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.discover-see-all:hover {
    background: var(--primary-color);
    color: #fff;
}

.custom-quiz-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    margin: 0 10px;
}

/* Equal Height Fix for Slick Slider */
.discover-slider .slick-track {
    display: flex !important;
}

.discover-slider .slick-slide {
    height: auto !important;
    display: flex !important;
    flex-direction: column;
}

.discover-slider .slick-slide>div {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}


.custom-quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.quiz-img-wrap {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 20px 20px 0 0;
}

.quiz-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.custom-quiz-card:hover .quiz-img-wrap img {
    transform: scale(1.05);
}

.quiz-bookmark-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-bookmark-btn.active,
.quiz-bookmark-btn:hover {
    color: var(--primary-color);
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.quiz-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quiz-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
    line-height: 1.4;
}

.quiz-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.quiz-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.quiz-info-item {
    font-size: 13px;
    color: #666;
}

.quiz-info-item strong {
    display: block;
    color: #333;
    font-size: 14px;
    margin-top: 2px;
}

.quiz-action-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.quiz-play-btn {
    flex: 1;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 12px 0;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.quiz-play-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* .quiz-fee replaced by: */
.quiz-fee-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.quiz-fee-label {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
}

.quiz-fee-amount {
    font-weight: 800;
    color: var(--secondary-color);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.quiz-fee-amount i {
    font-size: 16px;
    color: var(--secondary-color);
}

/* =========================================
   Different Zone
   ========================================= */
.different-zone-main-block {
    padding: 80px 0;
    background: #fff;
}

.custom-zone-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 100%;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    /* Lighter shadow */
    transition: all 0.3s ease;
}

.custom-zone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.zone-img-wrap {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.zone-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-zone-card:hover .zone-img-wrap img {
    transform: scale(1.05);
}

.zone-content {
    padding: 25px;
}

.zone-title {
    font-size: 20px;
    font-weight: 800;
    color: #222;
    margin-bottom: 10px;
}

.zone-desc {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* =========================================
   Blog Comments
   ========================================= */
.user-comment {
    background: #fdfdfd;
    padding: 25px;
    border-radius: 16px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.user-comment:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.02);
}

.comment-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #2d3748;
}

.comment-date {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 500;
    background: #f7fafc;
    padding: 4px 10px;
    border-radius: 20px;
}

.comment-txt {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

.comment-email {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-bottom: 8px;
    font-weight: 500;
}

/* =========================================
   Profile Dashboard (Custom Dashboard UI)
   ========================================= */

.custom-dashboard-ui {
    background-color: #f7f9fc;
    padding-top: 50px;
    padding-bottom: 80px;
}

/* Sidebar */
.custom-dashboard-ui .profile-sidebar {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 30px 20px;
    border: none;
    position: sticky;
    top: 100px;
    /* Adjust based on sticky header */
}

/* User Profile in Sidebar */
.custom-dashboard-ui .user-profile {
    text-align: center;
    margin-bottom: 30px;
}

.custom-dashboard-ui .user-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    position: relative;
}

.custom-dashboard-ui .user-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-dashboard-ui .user-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.custom-dashboard-ui .user-email {
    font-size: 14px;
    color: #888;
}

/* Sidebar Navigation */
.custom-dashboard-ui .nav-tabs {
    border-bottom: none;
    gap: 10px;
}

.custom-dashboard-ui .nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: #666;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-align: left;
}

.custom-dashboard-ui .nav-tabs .nav-link i {
    font-size: 18px;
    color: #999;
    transition: all 0.3s ease;
}

.custom-dashboard-ui .nav-tabs .nav-link:hover {
    background: #f4f6fe;
    color: var(--primary-color);
}

.custom-dashboard-ui .nav-tabs .nav-link:hover i {
    color: var(--primary-color);
}

.custom-dashboard-ui .nav-tabs .nav-link.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(81, 78, 182, 0.3);
}

.custom-dashboard-ui .nav-tabs .nav-link.active i {
    color: #fff;
}

/* Content Area */
.custom-dashboard-ui .tab-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    min-height: 500px;
}

.custom-dashboard-ui .about-heading,
.custom-dashboard-ui .bookmark-heading,
.custom-dashboard-ui .refers-heading,
.custom-dashboard-ui .plans-heading,
.custom-dashboard-ui .setting-block-heading {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.custom-dashboard-ui .about-heading::after,
.custom-dashboard-ui .bookmark-heading::after,
.custom-dashboard-ui .refers-heading::after,
.custom-dashboard-ui .plans-heading::after,
.custom-dashboard-ui .setting-block-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Info Lists */
.custom-dashboard-ui .about-user-lst li {
    background: #f8f9fc;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    color: #555;
    font-weight: 500;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-dashboard-ui .about-user-lst i {
    color: var(--primary-color);
    font-size: 18px;
}

/* Badges */
.custom-dashboard-ui .badge-block {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.custom-dashboard-ui .badge-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Plan Cards */
.custom-dashboard-ui .plan-block {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.custom-dashboard-ui .plan-block:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

/* Settings Forms */
.custom-dashboard-ui .form-control {
    background: #f8f9fc;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 20px;
    height: auto;
}

.custom-dashboard-ui .form-control:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(81, 78, 182, 0.1);
}

/* =========================================
   Custom Profile Dashboard - Bookmarks
   ========================================= */
.custom-dashboard-ui .bookmark-block .discover-block {
    background: #fff;
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.custom-dashboard-ui .bookmark-block .discover-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.custom-dashboard-ui .discover-image {
    margin-bottom: 0;
    position: relative;
    height: 200px;
    overflow: hidden;
}

.custom-dashboard-ui .discover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-dashboard-ui .bookmark-block .discover-block:hover .discover-image img {
    transform: scale(1.1);
}

.custom-dashboard-ui .bookmark-btn {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff5e62;
    border: none;
    z-index: 2;
}

.custom-dashboard-ui .bookmark-btn i {
    font-size: 18px;
}

.custom-dashboard-ui .discover-dtls {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}


.custom-dashboard-ui .discover-title {
    font-size: 22px;
    /* Slightly larger for 2-col layout */
    font-weight: 800;
    margin-bottom: 25px;
    color: #2d3748;
    line-height: 1.3;
    min-height: 56px;
    /* Ensure alignment across cards */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-dashboard-ui .discover-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s;
}

.custom-dashboard-ui .discover-title a:hover {
    color: var(--primary-color);
}

.custom-dashboard-ui .discover-lst {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center items vertically */
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    min-height: 60px;
}

.custom-dashboard-ui .discover-lst li {
    list-style: none;
    text-align: left;
    flex: 1;
    /* Distribute space */
}

/* Hide the divider line li if it exists in structure, or style it */
.custom-dashboard-ui .discover-lst li:nth-child(2) {
    flex: 0 0 1px;
    background: #e2e8f0;
    height: 30px;
    margin: 0 15px;
}

/* Removed old .discover-lst-txt block since it's redefined below with improvements */

.custom-dashboard-ui .discover-lst-title {
    font-size: 13px;
    font-weight: 700;
    color: #4a5568;
    margin: 0;
    white-space: nowrap;
    /* Prevent date wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    /* Limit width */
}

.custom-dashboard-ui .play-btn {
    width: 100%;
    border-radius: 10px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-color);
    border: none;
    box-shadow: 0 4px 12px rgba(81, 78, 182, 0.25);
    color: #fff;
    transition: all 0.3s ease;
}

.custom-dashboard-ui .play-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(81, 78, 182, 0.35);
    color: #fff !important;
}

.custom-dashboard-ui .entry-txt {
    font-size: 12px;
    color: #a0aec0;
    margin-bottom: 0;
    text-align: right;
}

.custom-dashboard-ui .coin-txt {
    font-weight: 800;
    color: #f6ad55;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    line-height: 1;
    margin-bottom: 0;
}

/* Global Fix for invisible text on hover inside discover-block - SUPER SPECIFIC */
.profile-main-block .discover-block:hover,
.profile-main-block .discover-block:hover *,
.custom-dashboard-ui .discover-block:hover,
.custom-dashboard-ui .discover-block:hover * {
    color: initial;
    /* Reset */
}

/* Force dark colors for all text elements on hover */
.profile-main-block .discover-block:hover h4,
.profile-main-block .discover-block:hover h4 a,
.profile-main-block .discover-block:hover h5,
.profile-main-block .discover-block:hover p,
.profile-main-block .discover-block:hover span,
.profile-main-block .discover-block:hover .discover-lst-txt,
.profile-main-block .discover-block:hover .discover-lst-title,
.profile-main-block .discover-block:hover .entry-txt,
.profile-main-block .discover-block:hover .discover-title a {
    color: #2d3748 !important;
    /* Rich Dark Grey */
}

.profile-main-block .discover-block:hover .coin-txt,
.profile-main-block .discover-block:hover .coin-txt i {
    color: #f6ad55 !important;
    /* Gold */
}

.profile-main-block .discover-block:hover .discover-lst-txt i {
    color: #514eb6 !important;
    /* Primary Blue */
}

/* Layout Fit Fixes */
.bookmark-block {
    margin-left: -15px;
    margin-right: -15px;
}

.bookmark-block>[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

.custom-dashboard-ui .discover-lst-txt {
    font-size: 11px;
    color: #718096;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}

/* =========================================
   Custom Profile Dashboard - About
   ========================================= */
.custom-dashboard-ui .about-me-txt {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    background: #fff;
    margin-bottom: 30px;
}

.custom-dashboard-ui .about-user-lst {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0;
}

.custom-dashboard-ui .about-user-lst li {
    background: #fff;
    border: 1px solid #eef0f7;
    padding: 20px;
    border-radius: 16px;
    color: #333;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    /* Icon top, text bottom */
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 0;
    /* Reset margin from previous style */
}

.custom-dashboard-ui .about-user-lst li:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}


.custom-dashboard-ui .about-user-lst li i {
    font-size: 28px;
    color: var(--primary-color);
    background: #eff1fe;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

/* =========================================
   Custom Badge UI
   ========================================= */
.custom-badge-ui {
    background-color: #f7f9fc;
    padding: 80px 0;
}

.custom-badge-ui .badge-block {
    background: #fff;
    border-radius: 24px;
    padding: 35px 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.custom-badge-ui .badge-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(81, 78, 182, 0.2);
}

.custom-badge-ui .badge-img {
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(81, 78, 182, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.custom-badge-ui .badge-block:hover .badge-img {
    transform: scale(1.1);
}

.custom-badge-ui .badge-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.15));
}

/* Optional: Different style for unowned badges if needed */
/* 
.custom-badge-ui .badge-block:not(.owned) {
    opacity: 0.8;
    filter: grayscale(0.5);
} 
*/

.custom-badge-ui .badge-title h6 {
    font-size: 20px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.custom-badge-ui .badge-txt {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 500;
}

/* Owned Status Indicator (Optional Visual Queue) */
.custom-badge-ui .badge-block.owned::after {
    content: '\f00c';
    /* FontAwesome check */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(72, 187, 120, 0.4);
}

/* =========================================
   Responsive Profile Dashboard & UI Fixes
   ========================================= */

/* Ensure text is always visible on hover */
.custom-dashboard-ui .nav-tabs .nav-link:hover {
    background-color: #f4f6fe !important;
    color: var(--primary-color) !important;
}

.custom-dashboard-ui .nav-tabs .nav-link {
    color: #555;
    /* Darker grey for better visibility */
}

/* Sidebar Responsive Improvements */
@media (max-width: 991px) {
    .custom-dashboard-ui {
        padding-top: 30px;
        padding-bottom: 50px;
    }

    .custom-dashboard-ui .profile-sidebar {
        margin-bottom: 30px;
        position: static;
        padding: 20px;
        border-radius: 16px;
    }

    /* Horizontal scrollable tabs for mobile */
    .custom-dashboard-ui .nav-tabs {
        flex-direction: row !important;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        margin-bottom: 0;
        border-bottom: none;
    }

    .custom-dashboard-ui .nav-tabs::-webkit-scrollbar {
        display: none;
        /* Safari and Chrome */
    }

    .custom-dashboard-ui .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 10px 18px;
        font-size: 14px;
        background: #f8f9fc;
        border-radius: 30px;
        justify-content: center;
        border: 1px solid #eee;
    }

    .custom-dashboard-ui .nav-tabs .nav-link i {
        font-size: 16px;
        margin-right: 5px;
    }

    .custom-dashboard-ui .nav-tabs .nav-link.active {
        background: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
        box-shadow: 0 4px 10px rgba(81, 78, 182, 0.3);
    }

    /* Compact User Profile for Mobile Sidebar */
    .custom-dashboard-ui .user-profile {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .custom-dashboard-ui .user-img {
        margin: 0;
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .custom-dashboard-ui .user-img img {
        border-width: 2px;
    }

    .custom-dashboard-ui .user-txt {
        overflow: hidden;
    }

    .custom-dashboard-ui .user-name {
        margin-bottom: 2px;
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .custom-dashboard-ui .user-email {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .custom-dashboard-ui .col-lg-9 {
        padding-left: 15px;
        padding-right: 15px;
    }

    .custom-dashboard-ui .tab-content {
        padding: 25px 20px;
    }
}

/* =========================================
   Battle Page Redesign (Premium)
   ========================================= */
.battle-main-block {
    padding: 80px 0;
    position: relative;
    background: #fdfdfd;
    min-height: 85vh;
}

.battle-hero-section {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.battle-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #222;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #222 0%, #555 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.battle-hero-highlight {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.battle-hero-desc {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.battle-card-premium {
    background: #fff;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.battle-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: rgba(81, 78, 182, 0.1);
}

.battle-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(81, 78, 182, 0.3);
}

.icon-join {
    background: linear-gradient(135deg, #FF9F00, #FF5B00);
    box-shadow: 0 10px 20px rgba(255, 91, 0, 0.3);
}

.battle-card-title {
    font-size: 24px;
    font-weight: 400;
    color: #222;
    margin-bottom: 25px;
}

.battle-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.battle-label {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.battle-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #eee;
    background: #f9f9f9;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.battle-input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 5px 15px rgba(81, 78, 182, 0.1);
    outline: none;
}

.battle-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px 12px;
    appearance: none;
}

.battle-btn-premium {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-create {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 20px rgba(81, 78, 182, 0.3);
}

.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(81, 78, 182, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-join {
    background: linear-gradient(135deg, #FF9F00, #FF5B00);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 91, 0, 0.3);
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 91, 0, 0.4);
    background: linear-gradient(135deg, #FF5B00, #FF9F00);
}

.battle-code-display {
    background: #f0f3ff;
    padding: 20px;
    border-radius: 16px;
    border: 2px dashed #ccd5ff;
    margin-top: 25px;
    display: none;
    /* Hidden by default */
}

.battle-code-display.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.code-text {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 4px;
    margin-bottom: 15px;
    display: block;
}

.btn-copy-code {
    background: rgba(81, 78, 182, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    border: none;
    transition: all 0.3s;
}

.btn-copy-code:hover {
    background: var(--primary-color);
    color: #fff;
}

.battle-img-premium {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.battle-img-premium:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0) scale(1.02);
}


/* =========================================
   Category Redesign (Reference Style - Square Border)
   ========================================= */
.categories-main-block {
    background: #fff;
    padding: 80px 0;
}

.category-card-premium {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: none;
    /* Removed heavy shadow */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    position: relative;
    overflow: hidden;
    margin: 15px;
    text-decoration: none !important;
    border: 1px solid transparent;
    /* Prepare for border hover if needed, or keeping it clean */
}

/* Specific colors for different categories - simulating the reference */
.category-card-premium:nth-child(1) .category-icon-circle {
    border-color: #3b82f6;
}

/* Blue */
.category-card-premium:nth-child(2) .category-icon-circle {
    border-color: #eab308;
}

/* Yellow */
.category-card-premium:nth-child(3) .category-icon-circle {
    border-color: #f97316;
}

/* Orange */
.category-card-premium:nth-child(4) .category-icon-circle {
    border-color: #d946ef;
}

/* Pink */
.category-card-premium:nth-child(5) .category-icon-circle {
    border-color: #06b6d4;
}

/* Cyan */
.category-card-premium:nth-child(6) .category-icon-circle {
    border-color: #22c55e;
}

/* Green */

.category-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    /* Square with rounded corners */
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 2px solid #eee;
    /* Default border */
}

.category-card-premium:hover .category-icon-circle {
    background: #fff;
    transform: scale(1.05);
    /* Border color is handled by nth-child or inline styles if dynamic */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-icon-circle img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: filter 0.3s;
}

/* No invert on hover for this style */
.category-card-premium:hover .category-icon-circle img {
    filter: none;
}

.category-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
    transition: color 0.3s;
}

.category-card-premium:hover .category-title {
    color: #222;
}

/* Remove the top gradient line */
.category-card-premium::before {
    display: none;
}

/* =========================================
   Footer Redesign (Dark 4-Column)
   ========================================= */
.footer-main-block {
    background: #293fcc;
    /* System Blue */
    color: #ffffff;
    font-family: inherit;
    border-top: 5px solid #764ba2;
    position: relative;
    overflow: hidden;
}

.footer-main-block h1,
.footer-main-block h2,
.footer-main-block h3,
.footer-main-block h4,
.footer-main-block h5,
.footer-main-block h6,
.footer-main-block p,
.footer-main-block span,
.footer-main-block i {
    color: #ffffff !important;
}

/* Add a subtle overlay pattern or glow if needed, but keeping it clean for now */
.footer-main-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(118, 75, 162, 0.15), transparent 40%);
    pointer-events: none;
}

/* Footer widget titles */
.footer-widget-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.footer-links li a:hover {
    color: #ffffff;
    padding-left: 8px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}



/* Contact List */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 15px;
}

.contact-list li i {
    font-size: 18px;
    margin-right: 15px;
    margin-top: 3px;
}

.contact-list li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-list li a:hover {
    color: var(--primary-color);
}

/* Social Buttons */
.social-footer-lst {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    /* Force White Background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #293fcc !important;
    /* System Blue Icon */
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    font-size: 20px;
    color: #293fcc !important;
}

.social-btn:hover {
    background: #f1f5f9 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.social-btn:hover i {
    color: #1e1b4b !important;
    /* Darker blue on hover */
}



/* Newsletter Form */
/* Newsletter Form */
.footer-subscribe-form {
    position: relative;
    margin-top: 15px;
}

.footer-subscribe-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    /* Lighter bg for better visibility */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    color: #ffffff;
    outline: none;
    transition: all 0.3s;
}

.footer-subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.footer-subscribe-form input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.footer-subscribe-form button {
    margin-top: 10px;
    background: #ffffff;
    color: #293fcc;
    /* Blue text */
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
}

.footer-subscribe-form button:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer Bottom Links */
.footer-bottom-links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-bottom-links li a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-bottom-links li a:hover {
    color: var(--primary-color);
}

.footer-about-text {
    color: #a0aec0;
    line-height: 1.6;
    font-size: 15px;
}

.footer-bottom-border {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.copyright-text {
    color: #888;
    font-size: 14px;
}

/* =========================================
   Blog Page Redesign (Premium)
   ========================================= */

/* Hero Section */
.blog-hero-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 150px;
    position: relative;
    clip-path: ellipse(150% 100% at 50% 0%);
    text-align: center;
    color: white;
    margin-bottom: -50px;
}

.blog-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
    color: #ffffff !important;
}

.blog-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Blog Detail Hero Specifics */
.blog-hero-premium.detail-hero {
    padding: 120px 0 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-detail-meta {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.blog-detail-meta i {
    margin-right: 8px;
}

/* Sidebar Widgets */
.premium-sidebar {
    position: sticky;
    top: 100px;
}

.premium-widget {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

/* Search Box */
.search-box-premium {
    position: relative;
}

.search-box-premium input {
    width: 100%;
    padding: 15px 20px;
    padding-right: 50px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    transition: all 0.3s;
}

.search-box-premium input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-box-premium button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Category List */
.premium-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-cat-list li {
    margin-bottom: 12px;
}

.premium-cat-list li a {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 10px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.premium-cat-list li a:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    color: #667eea;
    transform: translateX(5px);
}

.cat-arrow i {
    font-size: 10px;
    opacity: 0.5;
}

/* Latest Posts Widget */
.latest-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.lp-img-link {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.lp-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-content h6 a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.lp-content h6 a:hover {
    color: #667eea;
}

.lp-date {
    font-size: 0.8rem;
    color: #a0aec0;
    font-weight: 600;
}

/* Main Content Card */
.premium-content-card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    margin-top: -80px;
    /* Overlap Hero */
    position: relative;
    z-index: 5;
}

.blog-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

.blog-article-content p {
    margin-bottom: 25px;
}

/* Comments Section */
.premium-comment-form .form-control {
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 15px 20px;
    transition: all 0.3s;
}

.premium-comment-form .form-control:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 5px rgba(102, 126, 234, 0.1);
}

.btn-premium-submit {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-premium-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.premium-comment-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #edf2f7;
}

.pc-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-content {
    flex-grow: 1;
}

.pc-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}

.pc-header h5 {
    font-weight: 800;
    margin: 0;
    color: #2d3748;
}

.pc-time {
    font-size: 0.9rem;
    color: #a0aec0;
}




/* Page Layout */
.blog-page-main-block.premium-layout {
    background-color: #f7fafc;
    padding-top: 50px;
    padding-bottom: 100px;
    position: relative;
    z-index: 2;
}

/* Premium Blog Card */
.premium-blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.premium-blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.premium-blog-card:hover .blog-card-img {
    transform: scale(1.1);
}

.blog-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-width: 60px;
}

.blog-date-badge .day {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.blog-date-badge .month {
    font-size: 12px;
    text-transform: uppercase;
    color: #718096;
    font-weight: 700;
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #a0aec0;
    margin-bottom: 15px;
    font-weight: 500;
}

.blog-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s;
}

.premium-blog-card:hover .blog-card-title a {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-footer {
    border-top: 1px solid #edf2f7;
    padding-top: 20px;
    margin-top: auto;
}

.read-more-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.read-more-link:hover {
    gap: 12px;
    color: var(--secondary-color);
}

/* Pagination */
.blog-pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.blog-pagination-wrapper .pagination .page-item .page-link {
    border: none;
    background: white;
    color: #718096;
    margin: 0 5px;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-pagination-wrapper .pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

/* Empty State */
.nothing-here-premium {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    font-size: 60px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.nothing-here-premium h2 {
    font-weight: 800;
    color: #2d3748;
}

/* Animation Helper */
.animate-item {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* =========================================
   Migrated from style.css (Custom Additions)
   ========================================= */

/*======= Cookie Consent ========*/
.cookie-consent {
    background-color: var(--bg-blue);
    text-align: center;
    position: sticky;
    bottom: 0;
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: slide-up 0.6s ease-in-out;
}

.cookie-consent__agree {
    background-color: var(--bg-yellow);
    color: var(--text-white);
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.cookie-consent .btn {
    border-radius: 5px;
}

.cookie-consent .btn-warning {
    background-color: var(--bg-yellow);
    border: 1px solid var(--border-yellow);
}

.cookie-consent .btn-warning:hover {
    color: var(--text-white);
    background-color: #FF9F22;
}

@keyframes slide-up {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent__message {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: bold;
}

/*======= Top Search ========*/
#search-results {
    display: none;
    position: absolute;
    background-color: var(--bg-white);
    border: 1px solid var(--border-lg-grey);
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    width: 300px;
    text-align: left;
    right: 0;
    top: 40px;
}

#search-results a {
    padding: 10px;
    cursor: pointer;
    color: var(--text-black);
    border: 1px solid var(--border-grey);
    display: block;
}

#search-results a:hover {
    background-color: var(--bg-blue);
    color: var(--text-white);
}

#search-results::-webkit-scrollbar {
    width: 6px;
}

#search-results::-webkit-scrollbar-track {
    background: var(--bg-lgt-blue-2);
}

#search-results::-webkit-scrollbar-thumb {
    background: var(--bg-blue);
}

.search-no-result {
    padding: 15px;
    color: var(--text-black);
}

/*======= Invoice Page ========*/
.invoice-main-block {
    padding: 130px 0;
}

.invoice-block {
    padding: 60px;
    background-color: var(--bg-lgt-blue);
}

/*======= Skeleton Loading ========*/
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.skeleton-line {
    height: 20px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-line.short {
    width: 60%;
    margin: 0 auto 10px;
}

.skeleton-line.medium {
    width: 80%;
    margin: 0 auto 10px;
}

.skeleton-line.full {
    width: 100%;
    margin: 0 auto 10px;
}

.vs-section {
    margin-top: -50px;
}

.countdown-center {
    margin-top: 30px;
}

/* =========================================
   Vibrant Premium Redesign System
   (Consolidated from Blade files)
   ========================================= */

/* --- Shared Elements --- */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #667eea;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #9d50bb;
    bottom: -50px;
    right: -50px;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #ff007a;
    top: 40%;
    left: 60%;
}

.animate-item {
    animation: slideUpVibrant 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

@keyframes slideUpVibrant {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

/* --- Friends Pages Shared --- */
.friends-hero-premium {
    background: var(--accent-gradient);
    padding: 100px 0 150px;
    position: relative;
    margin-bottom: -80px;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.friends-hero-content {
    color: white;
    text-align: center;
    position: relative;
    z-index: 2;
}

.premium-breadcrumb {
    margin-bottom: 20px;
}

.premium-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.premium-breadcrumb .breadcrumb-item,
.premium-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.premium-breadcrumb .breadcrumb-item.active {
    color: white !important;
}

.premium-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: "•";
    padding: 0 10px;
}

.btn-premium-action {
    background: white;
    color: #764ba2 !important;
    padding: 16px 40px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-premium-action:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}


.friends-hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 15px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.premium-friend-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--premium-shadow);
}

.premium-friend-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.card-banner {
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-container {
    width: 120px;
    height: 120px;
    background: white;
    padding: 6px;
    border-radius: 40px;
    position: absolute;
    bottom: -40px;
    z-index: 5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 35px;
}

.avatar-letter {
    width: 100%;
    height: 100%;
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
}

.status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #2ed573;
    border: 4px solid white;
    border-radius: 50%;
    z-index: 6;
}

.card-body-content {
    padding: 50px 25px 30px;
    text-align: center;
    flex-grow: 1;
}

.friend-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: #2d3748;
    margin-bottom: 5px;
    text-decoration: none !important;
    display: block;
}

.friend-handle {
    color: #a0aec0;
    font-weight: 600;
    margin-bottom: 25px;
    display: block;
    font-size: 0.95rem;
}

/* --- My Friends Page --- */
.my-friends-page-wrapper {
    background: #f0f4f8;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

.friends-nav-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.nav-pill-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 15px 30px;
    border-radius: 50px;
    color: #4a5568 !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.nav-pill-item:hover,
.nav-pill-item.active {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.2);
    color: #667eea !important;
}

.nav-pill-item .badge-count {
    background: #ff4757;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    background: #f8fafc;
    padding: 15px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #718096;
    font-weight: 700;
    display: block;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2d3748;
}

.btn-profile-vibrant {
    flex-grow: 1;
    background: #edf2f7;
    color: #4a5568 !important;
    padding: 14px;
    border-radius: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-profile-vibrant:hover {
    background: var(--accent-gradient);
    color: white !important;
}

.btn-chat-vibrant {
    width: 54px;
    height: 54px;
    background: #e0f2fe;
    color: #0ea5e9;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-chat-vibrant:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-3px);
}

.btn-unfriend-vibrant {
    width: 54px;
    height: 54px;
    background: #fff5f5;
    color: #f56565;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-unfriend-vibrant:hover {
    background: #f56565;
    color: white;
    transform: translateY(-3px);
}


.card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}

.card-actions form {
    margin: 0;
}


/* Modals Premium */
.premium-modal-v3 .modal-content {
    border-radius: 40px;
    border: none;
    overflow: hidden;
}

.modal-v3-header {
    background: var(--accent-gradient);
    padding: 40px;
    color: white;
    text-align: center;
}

.modal-v3-header h2 {
    font-weight: 900;
    margin: 0;
}

.modal-v3-body {
    padding: 30px;
}

.req-item-card {
    background: #f8faff;
    padding: 20px;
    border-radius: 25px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-accept-vibrant {
    background: #48bb78;
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
}

.btn-decline-vibrant {
    background: transparent;
    color: #718096;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
}

/* --- Find Friends specifics --- */
.find-friends-page-wrapper {
    background: #f0f4f8;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

.search-filter-container {
    position: relative;
    z-index: 10;
    margin-top: -40px;
    margin-bottom: 50px;
}

.glass-search-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.premium-input-group {
    position: relative;
    flex-grow: 1;
}

.premium-input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

.premium-input-group input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    outline: none;
}

.btn-sort-glass {
    background: white;
    color: #4a5568;
    padding: 15px 25px;
    border-radius: 20px;
    font-weight: 800;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-minimal {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.stat-mini {
    text-align: center;
}

.stat-mini .val {
    font-weight: 800;
    color: #2d3748;
    display: block;
}

.stat-mini .lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #a0aec0;
    font-weight: 700;
}

.btn-add-vibrant {
    width: 100%;
    background: var(--accent-gradient);
    color: white !important;
    padding: 14px;
    border-radius: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* --- Category Single Redesign --- */
.cascade-wrapper {
    padding: 60px 0;
    background: var(--accent-gradient);
    min-height: 90vh;
}

.cascade-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.breadcrumb-bar {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-item-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

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

.cascade-column {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    min-height: 400px;
    transition: all 0.3s ease;
}

.cascade-column.active {
    background: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.column-header {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cascade-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.cascade-item.selected {
    background: var(--accent-gradient);
    border-color: #667eea;
    color: white;
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.quiz-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.play-button {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: var(--accent-gradient);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

/* --- Premium Leaderboard --- */
.leaderboard-hero {
    background: var(--accent-gradient);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-icon {
    font-size: 80px;
    margin-bottom: 20px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.leaderboard-tabs {
    margin: 40px 0;
}

.leaderboard-tabs .nav-link {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 12px 30px;
    color: #667eea;
    font-weight: 600;
}

.leaderboard-tabs .nav-link.active {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
}

.podium-container {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 30px;
    padding: 60px 20px;
}

.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
}

.podium-player {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.podium-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: var(--premium-shadow);
}

.podium-rank-1 .podium-avatar {
    width: 140px;
    height: 140px;
    border-color: #FFD700;
}

.podium-score {
    font-size: 24px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.leaderboard-item {
    background: #fff;
    border-radius: 20px;
    padding: 20px 25px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.leaderboard-item:hover {
    transform: translateX(10px);
}

.leaderboard-rank {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.leaderboard-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

/* --- Home Slider Improvements --- */
.home-main-slider {
    margin-bottom: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.home-main-slider.slick-initialized {
    opacity: 1;
}

.home-main-slider .slider-item {
    outline: none;
}

.home-main-slider .slick-dots {
    bottom: -40px;
}

.intro-text p {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ======================
   LEADERBOARD STYLES (Ported for My Friends Page)
   ====================== */

/* Hero Section */
.leaderboard-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.leaderboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Tabs */
.leaderboard-tabs {
    margin: 40px 0;
}

.leaderboard-tabs .nav-pills {
    gap: 15px;
}

.leaderboard-tabs .nav-link {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    color: #667eea;
    transition: all 0.3s ease;
}

.leaderboard-tabs .nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.leaderboard-tabs .nav-link.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.leaderboard-tabs .nav-link i {
    margin-right: 8px;
}

/* Podium Container */
.podium-container {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 30px;
    padding: 60px 20px;
    margin: 40px 0;
    position: relative;
}

.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.podium-player {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: slideUp 0.8s ease-out;
}

.podium-rank-1 {
    animation-delay: 0s;
}

.podium-rank-2 {
    animation-delay: 0.2s;
}

.podium-rank-3 {
    animation-delay: 0.4s;
}

/* Crown Animation */
.crown-animation {
    font-size: 50px;
    position: absolute;
    top: -60px;
    animation: float 3s ease-in-out infinite;
}

/* Medal */
.podium-medal {
    font-size: 40px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.pulse-animation {
    animation: pulse 2s ease-in- out infinite;
}

/* Avatar Wrapper */
.podium-avatar-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.podium-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.podium-rank-1 .podium-avatar {
    width: 140px;
    height: 140px;
    border-color: #FFD700;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.podium-rank-2 .podium-avatar {
    border-color: #C0C0C0;
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.4);
}

.podium-rank-3 .podium-avatar {
    border-color: #CD7F32;
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.4);
}

.podium-avatar:hover {
    transform: scale(1.1);
}

/* Rank Badge */
.rank-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rank-badge-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.rank-badge-2 {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
}

.rank-badge-3 {
    background: linear-gradient(135deg, #CD7F32, #B87333);
}

/* Name & Score */
.podium-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.podium-name:hover {
    color: #667eea;
}

.podium-score {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.podium-score span {
    font-size: 14px;
    opacity: 0.7;
}

/* Podium Base */
.podium-base {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px 15px 0 0;
    position: relative;
    box-shadow: 0 -5px 20px rgba(102, 126, 234, 0.3);
}

.podium-base-1 {
    height: 180px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.podium-base-2 {
    height: 140px;
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
}

.podium-base-3 {
    height: 100px;
    background: linear-gradient(135deg, #CD7F32, #B87333);
}

/* Leaderboard List */
.leaderboard-list {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.leaderboard-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 20px 25px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: slideInLeft 0.6s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.leaderboard-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.leaderboard-rank {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.leaderboard-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.leaderboard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.leaderboard-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.leaderboard-name:hover {
    color: #667eea;
}

.leaderboard-subtitle {
    font-size: 14px;
    color: #666;
}

.leaderboard-score {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 10px;
    white-space: nowrap;
}

.leaderboard-score span {
    font-size: 14px;
    opacity: 0.7;
}

.leaderboard-arrow {
    color: #667eea;
    font-size: 18px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.leaderboard-item:hover .leaderboard-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Empty States */
.nothing-here-card,
.no-data-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    margin: 60px auto;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.nothing-icon,
.no-data-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.nothing-here-card h2,
.no-data-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.nothing-here-card p,
.no-data-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.btn-back-home {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-back-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ======================
   Task: UI Quick Fixes
   ====================== */

/* 1. Remove Leaderboard Arrow */
.leaderboard-arrow i,
.leaderboard-arrow {
    display: none !important;
}

/* 2. Froala Editor 'Powered by' hiding */
.about-me-txt a[href*="froala.com"],
.about-me-txt p[data-f-id="pbf"],
.fr-box a[href*="froala.com"],
a[href*="froala.com"],
.fr-wrapper>div:last-child,
.fr-wrapper .fr-view+div,
div[style*="text-align: right"],
div[style*="position: fixed"],
.fr-box .fr-wrapper>div:last-child,
.fr-box+div,
.fr-element+div,
.fr-view+div {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    font-size: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 3. Circular Profile Image */
.user-profile .user-img img,
.user-img img,
.profile-sidebar .user-img img,
.settings-img {
    border-radius: 50% !important;
    aspect-ratio: 1/1;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ======================
   Dashboard Small Cards Text Color Fix
   ====================== */

/* Ensure text is readable on all gradient backgrounds */
.progress-block .progress-heading,
.progress-block .progress-count {
    color: #2d3748 !important;
}

/* For cards with darker gradients, use white text */
.progress-block.red .progress-heading,
.progress-block.red .progress-count,
.progress-block.purple .progress-heading,
.progress-block.purple .progress-count,
.progress-block.dark_yellow .progress-heading,
.progress-block.dark_yellow .progress-count,
.progress-block.green_blue .progress-heading,
.progress-block.green_blue .progress-count,
.progress-block.lgt_purple .progress-heading,
.progress-block.lgt_purple .progress-count,
.progress-block.cyan .progress-heading,
.progress-block.cyan .progress-count,
.progress-block.dark_red .progress-heading,
.progress-block.dark_red .progress-count {
    color: #ffffff !important;
}

/* For lighter gradient cards, keep dark text */
.progress-block.v_lgt_yellow .progress-heading,
.progress-block.v_lgt_yellow .progress-count {
    color: #2d3748 !important;
}

/* ======================
   Quiz Card Responsive Styles
   ====================== */

/* Tablet and below */
@media (max-width: 991px) {
    .custom-quiz-card {
        margin: 0 8px;
    }

    .quiz-img-wrap {
        height: 180px;
    }

    .quiz-content {
        padding: 20px;
    }

    .quiz-title {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .custom-quiz-card {
        margin: 0 5px;
    }

    .quiz-img-wrap {
        height: 160px;
    }

    .quiz-content {
        padding: 18px;
    }

    .quiz-title {
        font-size: 15px;
    }

    .quiz-info-grid {
        gap: 10px;
    }

    .quiz-action-row {
        flex-direction: column;
        gap: 10px;
    }

    .quiz-fee-container {
        width: 100%;
        align-items: center;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .quiz-play-btn {
        width: 100%;
    }
}

/* =========================================

/* =========================================
   Leaderboard / Friends Page Redesign
   ========================================= */
.leaderboard-section {
    padding: 60px 0;
}

.leaderboard-tabs-wrapper {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.leaderboard-tabs .nav-pills {
    background: #f1f4f8;
    padding: 6px;
    border-radius: 8px;
    display: inline-flex;
}

.leaderboard-tabs .nav-pills .nav-link {
    color: #475569;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.leaderboard-tabs .nav-pills .nav-link.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(81, 78, 182, 0.2);
}

.leaderboard-tabs .badge {
    margin-left: 8px;
    font-size: 0.8em;
    padding: 4px 8px;
}

.leaderboard-list {
    max-width: 960px;
    margin: 0 auto;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.leaderboard-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.leaderboard-rank {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    color: #475569;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-right: 20px;
    flex-shrink: 0;
}

.rank-1 {
    background: #fef3c7 !important;
    color: #d97706 !important;
}

.rank-2 {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

.rank-3 {
    background: #ffedd5 !important;
    color: #9a3412 !important;
}

.leaderboard-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leaderboard-info {
    flex-grow: 1;
}

.leaderboard-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-decoration: none;
}

.leaderboard-subtitle {
    font-size: 13px;
    color: #64748b;
}

.leaderboard-score {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 24px;
    text-align: right;
    min-width: 100px;
}

.leaderboard-score small {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.leaderboard-actions {
    display: flex;
    gap: 12px;
}

.leaderboard-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    transition: all 0.2s;
}

.leaderboard-btn:hover {
    background: #f8fafc;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.leaderboard-btn.btn-delete:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.btn-premium-action {
    background: var(--primary-color);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: all 0.3s;
}

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

/* ==============================
   TOURNAMENT FEATURE STYLES
   ============================== */

/* --- Tournament Cards (Index Page) --- */
.tournament-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.tournament-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(81, 78, 182, 0.12);
    border-color: var(--primary-color);
}

.tournament-card-header {
    padding: 20px 20px 10px;
}

.tournament-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #333;
}

.tournament-card-body {
    padding: 0 20px 15px;
}

.tournament-card-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tournament-card-meta .meta-item {
    font-size: 13px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tournament-card-meta .meta-item i {
    color: var(--primary-color);
}

.tournament-quiz-badge {
    display: inline-block;
    background: #f0f3ff;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.tournament-winner-badge {
    display: inline-block;
    background: #fff8e1;
    color: #f57f17;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.tournament-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

/* --- Tournament Info Bar (Show Page) --- */
.tournament-info-bar {
    background: #fff;
    padding: 16px 24px;
    border-radius: 14px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tournament-info-bar .meta-item {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tournament-info-bar .meta-item i {
    color: var(--primary-color);
}

.tournament-status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tournament-status-badge.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.tournament-status-badge.status-completed {
    background: #e3f2fd;
    color: #1565c0;
}

.tournament-status-badge.status-pending {
    background: #fff8e1;
    color: #f57f17;
}

.tournament-champion-badge {
    background: linear-gradient(135deg, #ffd700, #ffab00);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* ========================================
   BRACKET ARENA — Light Split Layout
   ======================================== */

.bracket-arena {
    background: #f8f9ff;
    border-radius: 20px;
    padding: 30px 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eef1f7;
}

.bracket-arena-title {
    color: #333;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    opacity: 0.6;
}

/* --- Split container: left | center | right --- */
.bracket-split-container {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.bracket-half {
    display: flex;
    flex: 1;
    gap: 0;
}

.bracket-left {
    flex-direction: row;
}

.bracket-right {
    flex-direction: row-reverse;
}

.bracket-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 15px;
    gap: 15px;
}

/* --- Round --- */
.bracket-round {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    flex: 1;
}

.bracket-round-label {
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 14px;
    margin-bottom: 16px;
    background: #eef1ff;
    border-radius: 8px;
    border: 1px solid #dde3f0;
}

.bracket-matches {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    gap: 12px;
    padding: 0 8px;
    position: relative;
}

/* === CONNECTOR LINES === */
/* Left side: horizontal line goes RIGHT from match */
.bracket-left .bracket-round:not(:last-child) .bracket-matches .bracket-match-card::after {
    content: '';
    position: absolute;
    right: -9px;
    top: 50%;
    width: 9px;
    height: 2px;
    background: #c5cbe0;
}

/* Right side: horizontal line goes LEFT from match */
.bracket-right .bracket-round:not(:last-child) .bracket-matches .bracket-match-card::after {
    content: '';
    position: absolute;
    left: -9px;
    top: 50%;
    width: 9px;
    height: 2px;
    background: #c5cbe0;
}

/* Vertical connectors between paired matches (left side) */
.bracket-left .bracket-round:not(:last-child) .bracket-matches .bracket-match-card:nth-child(odd)::before {
    content: '';
    position: absolute;
    right: -9px;
    top: 50%;
    width: 2px;
    height: calc(100% + 12px);
    background: #c5cbe0;
}

/* Vertical connectors between paired matches (right side) */
.bracket-right .bracket-round:not(:last-child) .bracket-matches .bracket-match-card:nth-child(odd)::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 50%;
    width: 2px;
    height: calc(100% + 12px);
    background: #c5cbe0;
}

/* ========================================
   MATCH CARD
   ======================================== */
.bracket-match-card {
    background: #fff;
    border: 2px solid #e8e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bracket-match-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* --- Player Row --- */
.match-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    gap: 8px;
    transition: background 0.2s;
}

.match-player-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.match-player-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #eee;
}

.match-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bracket-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.bracket-avatar-placeholder.champion {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
}

.match-player-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-player-name.bye-label {
    color: #bbb;
    font-style: italic;
    font-weight: 500;
}

.match-player-score {
    font-size: 13px;
    font-weight: 900;
    color: var(--primary-color);
    min-width: 20px;
    text-align: center;
}

.match-winner-badge {
    color: #ffc107;
    font-size: 12px;
    animation: trophyPulse 1.5s ease infinite;
}

@keyframes trophyPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

/* --- Player States --- */
.match-player.winner {
    background: #e8f5e9;
}

.match-player.winner .match-player-name {
    color: #2e7d32;
    font-weight: 800;
}

.match-player.loser {
    background: #fce4ec;
    opacity: 0.6;
}

.match-player.loser .match-player-name {
    color: #c62828;
    text-decoration: line-through;
}

.match-player.empty-slot {
    opacity: 0.35;
}

/* --- Separator --- */
.match-separator {
    height: 1px;
    background: #eee;
}

/* --- Match Actions --- */
.match-action {
    text-align: center;
    padding: 6px;
    background: #fafbff;
}

.btn-match-play {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1a1a2e;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-match-play:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    color: #1a1a2e;
}

.btn-match-play.btn-join {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: #fff;
}

.btn-match-play.btn-join:hover {
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
    color: #fff;
}

.match-bye-badge {
    font-size: 10px;
    font-weight: 700;
    color: #bbb;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ========================================
   CENTER TROPHY & FINAL
   ======================================== */
.bracket-trophy-icon {
    font-size: 48px;
    color: #ffd700;
    animation: trophyGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

@keyframes trophyGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.2));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.4));
        transform: scale(1.05);
    }
}

.bracket-final-match {
    width: 100%;
}

.bracket-final-match .bracket-round-label {
    background: linear-gradient(135deg, #fff8e1, #fff3e0);
    border-color: #ffe082;
    color: #e65100;
}

.bracket-final-match .bracket-match-card {
    border-color: #ffe082;
    background: #fffde7;
}

/* --- Champion Box --- */
.bracket-champion-box {
    text-align: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fff8e1, #fffde7);
    border: 2px solid #ffd54f;
    border-radius: 12px;
    animation: championPulse 3s ease-in-out infinite;
}

@keyframes championPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.25);
    }
}

.champion-avatar-sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 8px;
    border: 3px solid #ffd700;
}

.champion-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.champion-label {
    color: #e65100;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ========================================
   TOURNAMENT INFO BAR
   ======================================== */
.tournament-info-bar {
    background: #fff;
    border-radius: 14px;
    padding: 16px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef1f7;
}

.tournament-info-bar .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.tournament-info-bar .meta-item i {
    color: var(--primary-color);
    font-size: 14px;
}

.tournament-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tournament-status-badge.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.tournament-status-badge.status-completed {
    background: #e3f2fd;
    color: #1565c0;
}

.tournament-status-badge.status-pending {
    background: #fff8e1;
    color: #f57f17;
}

.tournament-champion-badge {
    background: linear-gradient(135deg, #ffd700, #ffab00);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* ========================================
   TOURNAMENT CARDS (Index Page)
   ======================================== */
.tournament-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef1f7;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.tournament-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.tournament-card-header {
    padding: 16px 20px 12px;
}

.tournament-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #222;
}

.tournament-card-body {
    padding: 0 20px 16px;
}

.tournament-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tournament-card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #777;
}

.tournament-card-meta .meta-item i {
    color: var(--primary-color);
    font-size: 13px;
}

.tournament-quiz-badge {
    display: inline-block;
    background: #eef1ff;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.tournament-winner-badge {
    display: inline-block;
    background: #fff8e1;
    color: #e65100;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.tournament-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #fafbff;
    border-top: 1px solid #eef1f7;
}

.tournament-create-btn {
    font-weight: 700;
    border-radius: 12px;
    padding: 10px 24px;
}

/* ========================================
   CREATE FORM
   ======================================== */
.tournament-create-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef1f7;
}

.tournament-create-header {
    margin-bottom: 28px;
}

.tournament-create-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

/* --- Friend Selection Grid --- */
.friend-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
}

.friend-select-item {
    cursor: pointer;
    margin: 0;
}

.friend-select-item input[type="checkbox"] {
    display: none;
}

.friend-select-card {
    text-align: center;
    padding: 12px 6px;
    border-radius: 12px;
    border: 2px solid #eef1f7;
    background: #fff;
    transition: all 0.2s;
    position: relative;
}

.friend-select-item input:checked+.friend-select-card {
    border-color: var(--primary-color);
    background: #f5f7ff;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.15);
}

.friend-select-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 6px;
}

.friend-select-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder-sm {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    border-radius: 50%;
}

.friend-select-name {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-select-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.friend-select-item input:checked+.friend-select-card .friend-select-check {
    display: flex;
}

/* --- Selected Count Bar --- */
.selected-count-bar {
    background: #f5f7ff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.bracket-info {
    font-size: 12px;
    font-weight: 600;
    color: #888;
}

/* --- Empty State --- */
.tournament-empty-state {
    background: #fafbff;
    border-radius: 20px;
    border: 2px dashed #dde3f0;
    padding: 60px 20px;
}

/* --- BYE Auto-advance compact card --- */
.bracket-match-card.bye-auto {
    background: #f0f2f5;
    border: 1px dashed #d0d4dd;
    border-radius: 8px;
}

.bracket-match-card.bye-auto .match-player {
    padding: 6px 10px;
}

.match-bye-auto-label {
    font-size: 9px;
    font-weight: 800;
    color: #aaa;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #e8eaf0;
    padding: 2px 8px;
    border-radius: 10px;
}

.match-player-name.tbd-label {
    color: #bbb;
    font-style: italic;
    font-weight: 500;
}

.match-status-label {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.match-status-label.live {
    color: #e53935;
    animation: livePulse 1.5s ease infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}


/* --- Tournament Chat --- */
.tournament-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.chat-header {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-body {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    height: 400px;
    background: #f8f9fa;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-input-area {
    padding: 10px;
    background: #fff;
    border-top: 1px solid #eee;
}

.chat-input-area .form-control {
    border-radius: 20px 0 0 20px;
    box-shadow: none;
    font-size: 0.9rem;
}

.chat-input-area .btn {
    border-radius: 0 20px 20px 0;
}

/* Scrollbar for chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

@media (max-width: 576px) {
    .tournament-chat-container {
        width: 100%;
        /* Full width on mobile when open? Or slightly less */
        right: 0;
        bottom: 0;
        border-radius: 12px 12px 0 0;
    }

    .chat-body {
        height: 60vh;
    }
}

/* --- Tournament Rules Block --- */
.tournament-rules-block .rules-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.rules-icon-wrap {
    width: 65px;
    height: 65px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    margin: 0 auto 20px;
}

@media (min-width: 768px) {
    .rules-icon-wrap {
        margin: 0;
    }
}

.rules-title {
    color: #222;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rules-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.rules-list li {
    font-size: 13px;
    color: #b45309;
    line-height: 1.5;
    position: relative;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(146, 64, 14, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
}

.rules-list li:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(146, 64, 14, 0.05);
    border-color: rgba(146, 64, 14, 0.2);
}

.rules-list li i {
    color: #f59e0b;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.rules-list li span strong {
    display: block;
    margin-bottom: 2px;
}

.rules-list li strong {
    color: #92400e;
}

/* ========================================
   LARGE BRACKET SUPPORT (32/64 players)
   ======================================== */
.bracket-arena.bracket-large {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bracket-arena.bracket-large .bracket-split-container {
    min-width: 1200px;
}

/* Compact match cards for 32+ player brackets */
.bracket-arena.bracket-large .bracket-match-card {
    padding: 6px 10px;
    min-width: 140px;
}

.bracket-arena.bracket-large .bracket-player-row {
    padding: 4px 6px;
    font-size: 12px;
}

.bracket-arena.bracket-large .bracket-player-avatar {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.bracket-arena.bracket-large .bracket-player-avatar img {
    width: 22px;
    height: 22px;
}

.bracket-arena.bracket-large .bracket-matches {
    gap: 6px;
}

.bracket-arena.bracket-large .bracket-round {
    min-width: 160px;
}

/* Scroll hint indicator */
.bracket-scroll-hint {
    text-align: center;
    padding: 8px;
    color: #888;
    font-size: 12px;
    display: none;
}

.bracket-arena.bracket-large+.bracket-scroll-hint {
    display: block;
}

/* ========================================
   LOBBY / PUBLIC INDEX STYLES
   ======================================== */
.lobby-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.lobby-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9ff;
    border-radius: 10px;
    border: 1px solid #e8eaf6;
}

.lobby-info-item i {
    font-size: 20px;
    color: var(--primary-color, #4e73df);
    width: 24px;
    text-align: center;
}

.lobby-info-item div {
    display: flex;
    flex-direction: column;
}

.lobby-info-item small {
    font-size: 11px;
}

.lobby-info-item strong {
    font-size: 14px;
}

.lobby-invite-box .invite-code-display {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--primary-color, #4e73df);
    font-family: monospace;
    background: #f0f2ff;
    display: inline-block;
    padding: 8px 24px;
    border-radius: 10px;
    border: 2px dashed #c5cbe0;
}

.lobby-participants h5 {
    border-bottom: 2px solid #e8eaf6;
    padding-bottom: 8px;
}

.lobby-player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.lobby-player-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #f8f9ff;
    border: 1px solid #e8eaf6;
    position: relative;
}

.lobby-player-card.creator {
    border-color: #fbbf24;
    background: #fffbeb;
}

.lobby-player-card.empty {
    opacity: 0.5;
    border-style: dashed;
}

.lobby-player-avatar img,
.lobby-player-avatar .avatar-placeholder-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6366f1;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.lobby-player-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lobby-host-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    color: #f59e0b;
    font-size: 12px;
}

.lobby-fill-bar {
    height: 6px;
    background: #e8eaf6;
    border-radius: 3px;
    overflow: hidden;
}

.lobby-fill-progress {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #4e73df);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.tournament-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tournament-meta-grid .meta-item {
    font-size: 13px;
    color: #555;
}

.tournament-meta-grid .meta-item i {
    width: 20px;
    text-align: center;
    margin-right: 4px;
    color: var(--primary-color, #4e73df);
}

/* Tournament type toggle */
.tournament-type-toggle {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e8eaf6;
    margin-bottom: 20px;
}

.tournament-type-toggle label {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9ff;
    color: #666;
}

.tournament-type-toggle input[type="radio"] {
    display: none;
}

.tournament-type-toggle input[type="radio"]:checked+label {
    background: var(--primary-color, #4e73df);
    color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .bracket-split-container {
        flex-direction: column;
    }

    .bracket-half {
        flex-direction: column !important;
    }

    .bracket-center {
        min-width: auto;
        padding: 15px;
    }

    .bracket-round {
        min-width: 140px;
    }

    .bracket-arena {
        padding: 15px 10px;
    }

    .bracket-left .bracket-round:not(:last-child) .bracket-matches .bracket-match-card::after,
    .bracket-right .bracket-round:not(:last-child) .bracket-matches .bracket-match-card::after,
    .bracket-left .bracket-round:not(:last-child) .bracket-matches .bracket-match-card:nth-child(odd)::before,
    .bracket-right .bracket-round:not(:last-child) .bracket-matches .bracket-match-card:nth-child(odd)::before {
        display: none;
    }
}