:root {
    --esquio-primary: #3498db;
    --esquio-secondary: #2ecc71;
    --esquio-glass-bg: rgba(255, 255, 255, 0.7);
    --esquio-glass-border: rgba(255, 255, 255, 0.5);
    --esquio-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --esquio-text-dark: #2c3e50;
    --esquio-text-light: #7f8c8d;
}

/* Dashboard Layout */
.esquio-dashboard-container {
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.esquio-hero {
    background: linear-gradient(135deg, var(--esquio-primary) 0%, #2980b9 100%);
    padding: 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.esquio-hero-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.level-badge-large {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 30px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.level-badge-large span {
    font-size: 3em;
    font-weight: bold;
    line-height: 1;
}

.level-badge-large small {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-progress-container {
    flex-grow: 1;
    margin-right: 30px;
}

.user-progress-container h3 {
    margin: 0 0 10px 0;
    font-weight: 300;
}

.esquio-progress-bar {
    height: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.esquio-progress-bar .progress-bar {
    background-color: var(--esquio-secondary);
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.xp-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    opacity: 0.9;
}

.coin-balance {
    background: white;
    color: #f1c40f;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1.5em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Tabs */
/* Tabs */
.esquio-tabs {
    background: white;
    border-bottom: 2px solid #ecf0f1;
    padding: 0 20px;
    display: flex;
    /* Ensure proper alignment */
    gap: 10px;
}

.esquio-tabs>li {
    margin-right: 0;
    /* Handled by gap */
    margin-bottom: -2px;
    /* Pull down to overlap border */
    position: relative;
}

.esquio-tabs>li>a {
    color: var(--esquio-text-light);
    font-weight: 600;
    padding: 20px 25px;
    /* Increased height */
    border: none !important;
    background: transparent !important;
    display: block;
    transition: color 0.3s;
}

.esquio-tabs>li>a:hover {
    color: var(--esquio-primary);
    background: transparent !important;
}

/* Active State with Bottom Bar */
.esquio-tabs>li.active>a {
    color: var(--esquio-primary);
    border: none !important;
    /* Remove default border */
}

.esquio-tabs>li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--esquio-primary);
    border-radius: 3px 3px 0 0;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.esquio-tab-content {
    padding: 30px;
    background: white;
    min-height: 300px;
}

/* Shop Grid */
.esquio-shop-grid-client {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.esquio-shop-card-client {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
}

.esquio-shop-card-client:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.esquio-shop-card-client .card-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: #ecf0f1;
}

.esquio-shop-card-client .card-body {
    padding: 15px;
    text-align: center;
}

.esquio-shop-card-client h4 {
    margin: 10px 0;
    font-size: 1.2em;
    color: var(--esquio-text-dark);
}

.esquio-shop-card-client .price {
    font-size: 1.3em;
    color: #f1c40f;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Leaderboard */
.esquio-leaderboard-table th {
    background-color: #f8f9fa;
    color: var(--esquio-text-light);
    border-bottom: 2px solid #eee;
    font-weight: 600;
}

.esquio-leaderboard-table tr.is-me {
    background-color: #eaf2f8;
    border-left: 3px solid var(--esquio-primary);
    font-weight: bold;
}

.esquio-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

/* Floating Widget (Existing) */
.esquio-floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.esquio-floating-widget:hover {
    transform: scale(1.1);
}

.esquio-progress-ring {
    position: relative;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.esquio-progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
}

.esquio-level-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #333;
    font-size: 18px;
}

/* Tooltip */
.esquio-widget-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 200px;
    background: var(--esquio-glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--esquio-glass-border);
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--esquio-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.esquio-floating-widget:hover .esquio-widget-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-header {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--esquio-primary);
}

.tooltip-xp,
.tooltip-coins {
    font-size: 14px;
    color: #555;
}

/* Toastify Custom Styles */
.esquio-toast {
    background: var(--esquio-glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--esquio-glass-border) !important;
    border-radius: 10px !important;
    box-shadow: var(--esquio-shadow) !important;
    color: #333 !important;
    font-weight: 600 !important;
    padding: 15px 20px !important;
}

.esquio-toast.success {
    border-left: 5px solid var(--esquio-secondary) !important;
}

.esquio-toast.info {
    border-left: 5px solid var(--esquio-primary) !important;
}

/* Golden Ticket Modal */
.esquio-golden-ticket {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 50px rgba(241, 196, 15, 0.5);
    border: 2px solid #fff;
    position: relative;
    overflow: hidden;
}

.esquio-golden-ticket::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    animation: shine 5s infinite linear;
}

@keyframes shine {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ticket-header h2 {
    font-family: 'Times New Roman', serif;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ticket-body p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.coupon-code-container {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 15px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    border: 2px dashed #333;
    margin-bottom: 20px;
}

#couponCode {
    font-family: monospace;
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 2px;
}

.ticket-footer button {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    transition: all 0.3s;
}

.ticket-footer button:hover {
    background: #fff;
    color: #f39c12;
}