/* Base Styles */
:root {
    --color-dark: #000957;
    --color-primary: #344CB7;
    --color-secondary: #1A237E;
    --color-accent: #2A77F0;
    --color-accent-light: #5B9DFF;
    --color-accent-dark: #1557C6;
    --color-white: #FFFFFF;
    --color-gray: #6c757d;
    --color-dark-gray: #343a40;
    --sidebar-bg: #2A77F0;
    --sidebar-text: rgba(255, 255, 255, 0.8);
    --sidebar-accent: #2A77F0;
    --sidebar-hover-bg: rgba(255, 255, 255, 0.05);
    --sidebar-active-bg: rgba(42, 119, 240, 0.15);
    --sidebar-submenu-bg: rgba(0, 0, 0, 0.15);
}



body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--color-dark);
    color: var(--color-white);
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0a1525 0%, #0d1c30 100%);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23344CB7' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-white);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.main-header {
    background: linear-gradient(45deg, var(--color-accent-dark), var(--color-accent), var(--color-accent-light));
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(42, 119, 240, 0.3);
}

.navbar {
    padding: 0;
}

.welcome-text h2 {
    color: var(--color-white);
    margin-bottom: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    font-weight: 700;
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--color-white);
    margin: 0 1px;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0.6rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--color-dark);
    background-color: rgba(0, 9, 87, 0.15);
    box-shadow: 0 0 10px rgba(0, 9, 87, 0.2);
}

@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.4rem 0.3rem;
        font-size: 0.75rem;
        margin: 0;
    }

    .navbar-dark .navbar-nav .nav-link i {
        font-size: 0.85rem;
        margin-right: 2px;
    }
}

@media (min-width: 1201px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) and (max-width: 1100px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.3rem 0.25rem;
        font-size: 0.7rem;
    }

    .navbar-dark .navbar-nav .nav-link i {
        font-size: 0.75rem;
        margin-right: 1px;
    }
}

.main-nav a {
    display: block;
    padding: 8px 15px;
    color: var(--color-white);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(128, 255, 219, 0.2);
    transition: all 0.3s;
    z-index: -1;
    border-radius: 4px;
}

.main-nav a:hover::before {
    height: 100%;
}

.main-nav a:hover {
    color: var(--color-accent);
}

.main-nav i {
    margin-right: 5px;
}

.mobile-menu-toggle {
    display: none;
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
}

/* Logo Section */
.logo-section {
    padding: 1rem 0;
}

.logo-container {
    display: inline-block;
    position: relative;
    margin: 0 auto;
}

.logo-img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
    transition: all 0.5s ease;
    animation: logoFloat 3s infinite ease-in-out;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(52, 76, 183, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulsate 3s infinite;
}

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

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

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

@keyframes pulsate {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* Points Display Section */
.points-display {
    padding: 1.5rem 0 2rem;
    position: relative;
    z-index: 1;
}

.points-container {
    background: linear-gradient(145deg, rgba(52, 76, 183, 0.2), rgba(0, 9, 87, 0.2));
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(42, 119, 240, 0.2);
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(42, 119, 240, 0.3);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.points-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            rgba(42, 119, 240, 0),
            rgba(87, 123, 193, 0.6),
            rgba(42, 119, 240, 0.6),
            rgba(87, 123, 193, 0.6),
            rgba(42, 119, 240, 0));
    border-radius: 12px;
    z-index: -1;
    animation: rainbow-border 6s linear infinite;
    background-size: 400% 400%;
}

.points-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 50%, rgba(0, 9, 87, 0.5) 100%);
    opacity: 0;
    mix-blend-mode: overlay;
    animation: spotlight 8s ease-in-out infinite;
}

.points-container.counting {
    background: linear-gradient(145deg, rgba(87, 123, 193, 0.3), rgba(0, 9, 87, 0.3));
    transition: background 0.3s;
}

@keyframes rainbow-border {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

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

@keyframes spotlight {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.7;
    }
}

.points-container h2 {
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 0;
    color: var(--color-white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

.points-value {
    color: var(--color-accent-light);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 0 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin: 0 5px;
    animation: glow-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(42, 119, 240, 0.5);
    text-shadow: 0 0 8px rgba(42, 119, 240, 0.8);
}

.points-value::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-accent), transparent, var(--color-accent));
    border-radius: 10px;
    z-index: -1;
    opacity: 0.4;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 10px rgba(42, 119, 240, 0.4);
        text-shadow: 0 0 5px rgba(42, 119, 240, 0.7);
    }

    50% {
        box-shadow: 0 0 20px rgba(42, 119, 240, 0.7);
        text-shadow: 0 0 15px rgba(42, 119, 240, 1);
    }

    100% {
        box-shadow: 0 0 10px rgba(42, 119, 240, 0.4);
        text-shadow: 0 0 5px rgba(42, 119, 240, 0.7);
    }
}

/* Events Section */
.events-section {
    padding: 2rem 0 4rem;
}

.event-card {
    background: linear-gradient(145deg, rgba(87, 123, 193, 0.8), rgba(0, 9, 87, 0.8));
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(87, 123, 193, 0.5);
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: cardPulse 3s infinite alternate ease-in-out;
}

.card-3d {
    transform: translateZ(0);
}

.event-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(87, 123, 193, 0.6),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    animation-play-state: paused;
}

.event-details h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.event-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #2A77F0, #5B9DFF, #1557C6, #2A77F0);
    background-size: 300% 300%;
    z-index: -1;
    border-radius: 15px;
    opacity: 0.7;
    filter: blur(8px);
    transition: opacity 0.5s, transform 0.5s;
    animation: gradientFlow 8s ease infinite;
}

.event-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.event-card:hover::after {
    opacity: 0.7;
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid rgba(87, 123, 193, 0.3);
}

.event-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    z-index: 2;
    transition: 0.75s;
    pointer-events: none;
}

.event-card:hover .event-image::before {
    animation: shimmer 1.5s ease-in-out;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: brightness(0.9);
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(24, 0, 38, 0.9), transparent 70%);
}

.event-card:hover .event-image img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

.event-details {
    padding: 1.5rem;
    position: relative;
}

.event-details h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.event-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.event-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #000957;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-top: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.enter-arena-btn {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 12px;
    background: linear-gradient(to bottom, #5B9DFF, #2A77F0, #1557C6);
    color: var(--color-white);
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(42, 119, 240, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 0 10px rgba(42, 119, 240, 0.6);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transform: translateZ(20px);
    transform-style: preserve-3d;
}

.enter-arena-btn:hover {
    box-shadow: 0 7px 25px rgba(42, 119, 240, 0.6),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        0 0 20px rgba(42, 119, 240, 0.8);
    background: linear-gradient(to bottom, #7DB2FF, #2A77F0, #1557C6);
    transform: translateY(-5px) translateZ(30px);
    color: var(--color-white);
    letter-spacing: 3px;
}

.enter-arena-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, rgba(42, 119, 240, 0), rgba(42, 119, 240, 0.8), rgba(42, 119, 240, 0));
    border-radius: 10px;
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s;
}

/* Footer */
.main-footer {
    background-color: rgba(0, 9, 87, 0.95);
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.color-palette {
    display: flex;
    gap: 10px;
}

.color-chip {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    font-size: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Off-canvas Menu Styles */
.offcanvas {
    background: linear-gradient(135deg, #2A77F0 0%, #192576 100%);
    border-right: 1px solid rgba(42, 119, 240, 0.3);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(42, 119, 240, 0.3);
}

.offcanvas-title {
    color: var(--color-white);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(42, 119, 240, 0.5);
}

.offcanvas .nav-link {
    color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.offcanvas .nav-link:hover {
    background-color: rgba(247, 247, 247, 0.781);
    color: var(--color-accent);
}

.navbar-toggler {
    border: 1px solid rgba(24, 0, 38, 0.5);
    padding: 0.25rem 0.5rem;
    box-shadow: 0 0 10px rgba(24, 0, 38, 0.3);
    background-color: rgba(24, 0, 38, 0.15);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(24, 0, 38, 0.25);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(24, 0, 38, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 991px) {
    .welcome-text h2 {
        font-size: 1.3rem;
    }

    .main-nav ul {
        padding: 0.5rem 0;
    }

    .points-container h2 {
        font-size: 1.8rem;
    }

    .event-details h3 {
        font-size: 1.1rem;
        height: 2.6em;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        position: relative;
        padding-bottom: 10px;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
        background: rgba(0, 0, 0, 0.2);
        padding: 8px 12px;
        border-radius: 4px;
        z-index: 200;
        cursor: pointer;
    }

    .mobile-menu-toggle:hover {
        background: rgba(0, 0, 0, 0.4);
    }

    .main-nav {
        width: 100%;
        padding-top: 15px;
        position: relative;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(24, 0, 38, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 100;
        padding: 10px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active ul {
        display: flex;
    }

    .main-nav li {
        margin: 5px 0;
    }

    .main-nav a {
        padding: 10px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .points-container h2 {
        font-size: 1.5rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .welcome-text h2 {
        font-size: 1.2rem;
    }

    .logo-img {
        max-width: 140px;
    }

    .points-container {
        padding: 0.8rem;
    }

    .points-container h2 {
        font-size: 1.2rem;
    }

    .main-header .container {
        padding: 0 10px;
    }

    .event-image {
        height: 180px;
    }

    .event-details {
        padding: 1.2rem 1rem;
    }

    .event-details h3 {
        font-size: 1rem;
        height: 2.4em;
        letter-spacing: 0.2px;
    }

    .welcome-text {
        position: relative;
        z-index: 5;
        margin-right: 50px;
    }

    .mobile-menu-toggle {
        top: 10px;
        right: 10px;
        z-index: 15;
    }
}

@media (max-width: 420px) {
    .event-details h3 {
        font-size: 0.9rem;
        height: 2.4em;
        letter-spacing: 0px;
        line-height: 1.2;
    }

    .event-details {
        padding: 1rem 0.8rem;
    }

    .event-date {
        font-size: 0.8rem;
    }

    .event-category {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .enter-arena-btn {
        padding: 10px;
        font-size: 0.8rem;
        margin-top: 1rem;
    }

    .logo-img {
        max-width: 120px;
    }

    .logo-section {
        padding: 0.5rem 0;
    }

    .points-container h2 {
        font-size: 1rem;
    }

    .points-value {
        padding: 0 5px;
    }

    .points-value::after {
        width: 6px;
        height: 6px;
        margin-left: 5px;
    }
}

@keyframes cardPulse {
    0% {
        transform: translateZ(0);
    }

    100% {
        transform: translateZ(10px);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 150%;
    }
}

.admin-dashboard {
    display: flex;
    min-height: 100vh;
    background-attachment: fixed;
}

.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 235, 0, 0.3) #000d47;
    padding-bottom: 30px;
}

.sidebar::-webkit-scrollbar {
    width: 3px;
}

.sidebar::-webkit-scrollbar-track {
    background: #000d47;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 235, 0, 0.3);
    border-radius: 4px;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 15px;
    border-bottom: 1px solid rgba(30, 41, 112, 0.5);
    position: sticky;
    top: 0;
    z-index: 10;
    background: #2A77F0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar-logo {
    max-width: 70%;
    height: auto;
    transition: all 0.2s ease;
    margin: 0 auto;
    display: block;
}

.sidebar.collapsed .sidebar-logo {
    max-width: 36px;
    margin: 0 auto;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 18px;
    border-radius: 50%;
    opacity: 0.9;
}

.sidebar-toggle:hover {
    color: var(--sidebar-accent);
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(-90deg);
    opacity: 1;
}

.sidebar-toggle:active {
    transform: scale(0.95) rotate(-90deg);
}

.sidebar-menu {
    padding: 1rem 0;
    margin-top: 0.5rem;
}

.sidebar-menu-item {
    list-style: none;
    position: relative;
    width: 100%;
    margin: 5px 0;
}

.sidebar-menu-item.active {
    background: rgba(255, 235, 0, 0.05);
}

.sidebar-menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5%;
    width: 4px;
    height: 90%;
    background: var(--sidebar-accent);
    box-shadow: 0 0 8px rgba(255, 235, 0, 0.5);
    border-radius: 0 2px 2px 0;

}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.menu-icon {
    min-width: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-menu-item.active .sidebar-link {
    color: var(--color-accent);
}

.has-dropdown .sidebar-link {
    justify-content: space-between;
}

.sidebar-menu-item.active .menu-icon i {
    color: var(--color-accent);
}

.dropdown-icon {
    margin-left: auto;
    transition: transform 0.1s ease;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 5px;
}

.sidebar-menu-item.open .dropdown-icon {
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-menu-item.active.open .dropdown-icon {
    color: var(--color-accent);
}

.submenu {
    padding-left: 35px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.15s ease-in-out, opacity 0.15s ease;
    opacity: 0;
    position: relative;
    list-style: none;
    background: rgba(0, 0, 0, 0.15);
    margin-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu-item.open .submenu {
    max-height: 250px;
    opacity: 1;
    padding-top: 5px;
    padding-bottom: 5px;
}

.submenu-item {
    list-style: none;
    opacity: 0;
    transform: translateY(-2px);
    transition: all 0.15s ease;
    position: relative;
}

.sidebar-menu-item.open .submenu-item {
    opacity: 1;
    transform: translateY(0);
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    position: relative;
    border-left: 2px solid transparent;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

.submenu-link:hover,
.submenu-link.active {
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
    transition: all 0.15s ease;
}

.submenu-link.active {
    border-left: 2px solid var(--color-accent);
    font-weight: 500;
}

.submenu-link::before {
    content: '•';
    margin-right: 10px;
    font-size: 1rem;
    line-height: 0;
}

.submenu-link.active::before {
    color: var(--color-accent);
}

.sidebar.collapsed {
    width: 60px;
    overflow: visible;
}

.sidebar.collapsed .sidebar-header {
    padding: 12px 8px;
    justify-content: center;
}

.sidebar.collapsed .dropdown-icon {
    display: none;
}

.sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 12px 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed .menu-icon {
    min-width: auto;
}

.sidebar.collapsed .menu-icon i {
    font-size: 1.1rem;
    margin: 0 auto;
}

.sidebar.collapsed .submenu {
    position: absolute;
    left: 60px;
    top: 0;
    width: 180px;
    padding: 8px 0;
    background: #000d47;
    border-radius: 6px;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
}

.sidebar.collapsed .sidebar-menu-item:hover .submenu {
    display: block;
    max-height: 300px;
    opacity: 1;
}

.sidebar.collapsed .submenu::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 15px;
    width: 10px;
    height: 10px;
    background: #000d47;
    transform: rotate(45deg);
    border-left: 1px solid #000d47;
    border-bottom: 1px solid #000d47;
    z-index: -1;
}

.sidebar.collapsed .submenu-item {
    opacity: 1;
    transform: none;
    padding: 0;
}

.sidebar.collapsed .submenu-link {
    padding: 8px 15px;
    border-left: none;
}

.sidebar.collapsed .submenu-link.active {
    border-left: 3px solid var(--color-accent);
}

.sidebar.collapsed .sidebar-menu-item {
    position: relative;
    display: flex;
    justify-content: center;
}

.sidebar.collapsed .sidebar-menu-item.active::before {
    width: 4px;
    height: 70%;
    left: 0;
    top: 15%;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
    transition: all 0.15s ease;
}

.sidebar-menu-item.active .sidebar-link {
    color: var(--sidebar-accent);
    background: linear-gradient(to right, rgba(255, 235, 0, 0.15), transparent 80%);
    font-weight: 500;
}

.sidebar-link i {
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-menu-item.active .sidebar-link i {
    color: var(--color-accent);
    text-shadow: 0 0 5px rgba(255, 235, 0, 0.3);
}

.sidebar-link:hover i {
    color: #ffffff;
}

.sidebar-link span {
    transition: all 0.3s ease;
    white-space: nowrap;
    opacity: 1;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    padding-left: 12px;
    letter-spacing: 0.01em;
}

.sidebar-menu-item.active .sidebar-link span {
    font-weight: 500;
}

.sidebar.collapsed .sidebar-link span {
    opacity: 0;
    width: 0;
    display: none;
    transition: opacity 0.2s ease-out;
}

.sidebar.collapsed .sidebar-link i {
    margin-right: 0;
    transition: margin 0.3s ease;
}

.sidebar-link span {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.content-wrapper {
    flex: 1;
    margin-left: 280px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper.expanded {
    margin-left: 60px;
}

.main-header.dashboard-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 99;
    padding: 15px 30px;
    transition: all 0.3s ease;
    background: #2A77F0;
    box-shadow: 0 4px 15px rgba(13, 77, 216, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(13, 77, 216, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-badge {
    position: relative;
    cursor: pointer;
}

.notification-badge i {
    font-size: 1.4rem;
    color: var(--color-dark);
    transition: all 0.3s ease;
}

.notification-badge:hover i {
    color: var(--color-primary);
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff3860;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    animation: pulse 2s infinite;
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 30px;
    transition: all 0.3s ease;
    background-color: rgba(0, 9, 87, 0.1);
}

.user-profile:hover {
    background-color: rgba(0, 9, 87, 0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    border: 2px solid rgba(255, 235, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 235, 0, 0.3);
}

.user-avatar i {
    color: white;
    font-size: 1.2rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--color-primary);
}

.dropdown-toggle::after {
    margin-left: 10px;
    vertical-align: middle;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

@keyframes slideIn {
    from {
        transform: translateX(-10px);
        opacity: 0;
    }

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

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 56, 96, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 56, 96, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 56, 96, 0);
    }
}

@media (min-width: 993px) {
    .sidebar-menu-item {
        animation: fadeIn 0.15s ease forwards;
        opacity: 0;
    }

    .sidebar-menu-item:nth-child(1) {
        animation-delay: 0.02s;
    }

    .sidebar-menu-item:nth-child(2) {
        animation-delay: 0.04s;
    }

    .sidebar-menu-item:nth-child(3) {
        animation-delay: 0.06s;
    }

    .sidebar-menu-item:nth-child(4) {
        animation-delay: 0.08s;
    }

    .sidebar-menu-item:nth-child(5) {
        animation-delay: 0.1s;
    }

    .sidebar-menu-item:nth-child(6) {
        animation-delay: 0.12s;
    }

    .sidebar-menu-item:nth-child(7) {
        animation-delay: 0.14s;
    }

    .sidebar-menu-item:nth-child(8) {
        animation-delay: 0.16s;
    }
}


.notification-badge,
.user-profile {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 235, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 235, 0, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 235, 0, 0.3);
    }
}

.sidebar-link.active {
    transform: translateY(0px);
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 0.7;
    }

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

@keyframes submenuRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

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

.badge-holder {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-accent);
    color: var(--color-dark);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(255, 235, 0, 0.5);
    z-index: 2;
}

@media (max-width: 992px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 300px;
        z-index: 9999;
        background: var(--sidebar-bg);
        box-shadow: none;
        transition: transform 0.2s ease-out;
        position: fixed;
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
        background: var(--sidebar-bg);
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    body.sidebar-open .mobile-overlay {
        display: block;
        opacity: 1;
    }

    body.sidebar-open::after {
        opacity: 1;
        visibility: visible;
    }

    .sidebar-menu-item.active::before {
        width: 5px;
        box-shadow: 0 0 10px rgba(255, 235, 0, 0.6);
    }

    .content-wrapper {
        margin-left: 0;
    }

    .content-wrapper.expanded {
        margin-left: 0;
    }

    .sidebar.collapsed {
        width: 0;
        overflow: hidden;
    }

    .mobile-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--sidebar-bg);
        border: none;
        width: 42px;
        height: 42px;
        transition: all 0.2s ease;
        cursor: pointer;
        border-radius: 8px;
        color: var(--sidebar-text);
    }

    .mobile-sidebar-toggle:hover {
        color: var(--sidebar-accent);
        background: var(--sidebar-bg);
    }

    .mobile-sidebar-toggle i {
        transition: all 0.3s ease;
    }

    .sidebar.show+.content-wrapper .mobile-sidebar-toggle i {
        transform: rotate(90deg);
    }

    .mobile-sidebar-toggle:active {
        transform: scale(0.95);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        background: var(--sidebar-bg);
    }

    .sidebar-link {
        padding: 12px 20px;
    }

    .menu-icon i {
        font-size: 1rem;
    }

    .content-wrapper {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .main-header.dashboard-header {
        padding: 12px 15px;
    }

    .user-info {
        display: none;
    }

    .user-avatar {
        margin-right: 0;
    }

    .sidebar {
        width: 90%;
        max-width: 300px;
        background: var(--sidebar-bg);
    }

    .sidebar-menu {
        padding: 0.5rem 0;
    }

    .sidebar-link {
        padding: 12px 15px;
        min-height: 50px;
    }

    .sidebar-link span {
        font-size: 0.85rem;
    }

    .sidebar-header {
        padding: 15px;
    }

    .submenu {
        padding-left: 25px;
    }

    .submenu-link {
        padding: 10px 15px;
        font-size: 0.8rem;
        min-height: 44px;
    }

    .sidebar-menu-item {
        animation: none;
        opacity: 1;
    }
}

@media (max-width: 350px) {
    .sidebar {
        width: 90%;
    }
}

.sidebar-link {
    position: relative;
    overflow: hidden;
}

.sidebar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--sidebar-accent);
    transition: width 0.3s ease;
    opacity: 0;
}

.sidebar-link:hover::after {
    width: 100%;
    opacity: 0.5;
}

.sidebar-menu-item.active .sidebar-link::after {
    opacity: 0;
}

.sidebar-menu-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar-link:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(255, 235, 0, 0.3);
}

.sidebar-menu::after {
    content: '';
    display: block;
    height: 30px;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

.main-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
    width: 100%;
}

.dashboard-card {
    background: linear-gradient(145deg, rgba(52, 76, 183, 0.2), rgba(0, 9, 87, 0.2));
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 235, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 235, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wide-card {
    grid-column: span 3;
}

.glass-card-container {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.glass-card {
    flex: 1;
    border-radius: 16px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.glass-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0));
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    pointer-events: none;
    z-index: 2;
}

.card-glow {
    position: absolute;
    width: 80%;
    height: 60%;
    top: 20%;
    left: 10%;
    background: radial-gradient(circle,
            rgba(255, 235, 0, 0.1) 0%,
            rgba(0, 13, 71, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(15px);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .glass-card-container {
        flex-direction: column;
    }

    .glass-referral-card {
        padding: 1.2rem;
    }

    .referral-input-group {
        flex-direction: column;
    }

    .referral-input {
        border-radius: 8px;
        margin-bottom: 8px;
    }

    .referral-copy-btn {
        border-radius: 8px;
        margin-left: 0;
        width: 100%;
    }
}

.glass-referral-card {
    position: relative;
    background: rgba(20, 30, 100, 0.2);
    border-radius: 16px;
    padding: 1.8rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
    transform-style: preserve-3d;
    perspective: 1000px;
    z-index: 1;
}

.referral-content {
    position: relative;
    z-index: 3;
}

.referral-title {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.referral-title span {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-left: 1rem;
}

.referral-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.referral-info {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    max-width: 90%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
}

.referral-link-container {
    position: relative;
    margin-top: 1rem;
    z-index: 4;
}

.referral-input-group {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.referral-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 9, 87, 0.4);
    color: rgba(255, 255, 255, 0.95);
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.referral-copy-btn {
    padding: 12px 24px;
    background: linear-gradient(45deg, #2A77F0, #2600ff);
    border: none;
    color: #000d47;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.referral-copy-btn:hover {
    background: linear-gradient(45deg, #ffe100, #ffb700);
    box-shadow: 0 0 15px rgba(255, 235, 0, 0.5);
    transform: translateY(-2px);
}

.referral-decoration-1 {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 235, 0, 0.1), rgba(255, 235, 0, 0));
    bottom: -50px;
    right: -30px;
    filter: blur(20px);
    opacity: 0.4;
    z-index: 1;
}

.referral-decoration-2 {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 235, 0, 0.1), rgba(255, 157, 0, 0.05));
    top: 20px;
    right: 50px;
    filter: blur(15px);
    opacity: 0.5;
}

@keyframes copyPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.copy-pulse {
    animation: copyPulse 1s ease-out;
    border: 1px solid rgba(34, 197, 94, 0.7) !important;
}

.copy-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.copy-notification i {
    font-size: 1.2rem;
}

.show-notification {
    transform: translateY(0);
    opacity: 1;
}

.glass-referral-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-referral-card:hover .referral-decoration-1 {
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes copyPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.3);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.copy-pulse {
    animation: copyPulse 1.5s ease-out;
    border: 1px solid rgba(34, 197, 94, 0.7) !important;
    transition: all 0.3s ease !important;
}

.referral-copy-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.referral-copy-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-15deg);
    transition: all 0.6s ease;
}

.referral-copy-btn:hover:before {
    left: 100%;
}

.referral-input {
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 transparent;
}

.referral-input:focus {
    box-shadow: 0 0 0 2px rgba(255, 235, 0, 0.3);
    border-color: rgba(255, 235, 0, 0.5) !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

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

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(30px);
        opacity: 0;
    }
}

.animate__animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.animate__faster {
    animation-duration: 0.3s;
}

.animate__fadeInRight {
    animation-name: slideInRight;
}

.animate__fadeOutRight {
    animation-name: slideOutRight;
}

.referral-copy-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 235, 0, 0.4);
}

.commission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
}

.commission-card {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #0c1e5a, #192b7a);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 4px solid #344cb7;
}

.accent-card {
    background: linear-gradient(145deg, #1a2c69, #263b8d);
    border-left: 4px solid #ffeb00;
}

.commission-icon-wrapper {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(9, 15, 57, 0.7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.commission-icon-wrapper i {
    color: #ffeb00;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(255, 235, 0, 0.5);
    position: relative;
    z-index: 2;
}

.commission-icon-wrapper::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 235, 0, 0.15);
    filter: blur(10px);
}

.commission-details {
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.commission-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
}

.commission-percentage {
    display: inline-block;
    background: rgba(255, 235, 0, 0.2);
    border-radius: 20px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    color: #ffeb00;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.commission-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.card-shine {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-15deg) translateX(150%);
    transition: transform 0.7s ease;
}

.commission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.commission-card:hover .card-shine {
    transform: skewX(-15deg) translateX(-150%);
}

.commission-card:hover .commission-icon-wrapper i {
    animation: pulse 2s infinite;
}

@media (max-width: 992px) {
    .commission-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .commission-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .commission-grid {
        grid-template-columns: 1fr;
    }

    .commission-title {
        font-size: 0.9rem;
        white-space: normal;
    }
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 235, 0, 0.3);
    border-color: rgba(255, 235, 0, 0.5);
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 235, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card:hover {
    transform: translateY(-5px) rotateX(5deg);
}

.glass-card:hover .glass-reflection {
    opacity: 0.8;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.25),
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0));
}

.premium-card:hover .card-value {
    animation: glowText 2s ease-in-out infinite alternate;
}

.premium-card:hover .card-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

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

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

@keyframes glowText {
    from {
        text-shadow: 0 0 10px rgba(255, 235, 0, 0.5);
    }

    to {
        text-shadow: 0 0 20px rgba(255, 235, 0, 0.8), 0 0 30px rgba(255, 235, 0, 0.3);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.4;
        filter: blur(15px);
    }

    50% {
        opacity: 0.8;
        filter: blur(20px);
    }

    100% {
        opacity: 0.4;
        filter: blur(15px);
    }
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #577BC1, #344CB7, #000957, #577BC1);
    background-size: 300% 300%;
    z-index: -1;
    border-radius: 12px;
    opacity: 0.7;
    filter: blur(8px);
    transition: opacity 0.5s;
    animation: gradientFlow 8s ease infinite;
}

.premium-card {
    position: relative;
    background: rgba(20, 30, 100, 0.2);
    overflow: visible;
    padding: 1.5rem;
    border: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-card::before {
    background: linear-gradient(45deg, rgba(255, 235, 0, 0.2), rgba(255, 157, 0, 0.2));
    background-size: 300% 300%;
    opacity: 0.4;
    filter: blur(8px);
    animation: none;
}

.premium-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 40%);
    z-index: 0;
}

.premium-card .card-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 15px rgba(255, 235, 0, 0.6);
    margin: 0.5rem 0;
    position: relative;
    z-index: 5;
}

.premium-card .card-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 5;
}

.glass-card .card-title {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-decoration {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 235, 0, 0.2);
    opacity: 0.5;
}

.card-ring {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 235, 0, 0.3);
    opacity: 0.5;
    z-index: -1;
}

.card-title {
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.9;
}

.card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(255, 235, 0, 0.3);
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 235, 0, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    position: relative;
}

.card-icon::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 235, 0, 0.5), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.premium-card .card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 235, 0, 0.3);
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 5;
}

.glass-card .card-icon {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.glass-card .card-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    z-index: -1;
    opacity: 0.5;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.card-trend {
    font-size: 0.75rem;
    color: var(--color-white);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

@media (max-width: 992px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-value {
        font-size: 1.5rem;
    }

    .wide-card,
    .half-card {
        grid-column: span 1;
    }

    .premium-card {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }

    .premium-card .card-value {
        font-size: 2rem;
    }

    .premium-card .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .glass-reflection {
        height: 30%;
    }

    .card-glow {
        opacity: 0.4;
    }

    .glass-card {
        margin-bottom: 0.5rem;
    }
}