: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;
}

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

.quiz-img-wrap {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.quiz-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.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 {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 16px;
}

/* =========================================
   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;
}

.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: 800;
    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;
    -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;
}