/* ========== PRACTICE PAGE THEME - ENHANCED ========== */
/* Primary Theme: Blue-Gold (Learning/Development) */
.practice-page {
    --primary-gradient: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    --secondary-gradient: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    --accent-color: #3498db;
    --accent-color-rgb: 52, 152, 219;
    --secondary-color: #ffd700;
    --secondary-color-rgb: 255, 215, 0;
    --numeric-color: #00c8ff;
    --numeric-color-rgb: 0, 200, 255;
    --bg-overlay: rgba(52, 152, 219, 0.05);
    --card-gradient: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
}

/* ========== BACKGROUND PATTERN ========== */
.practice-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(0, 200, 255, 0.03) 0%, transparent 30%);
    pointer-events: none;
}

/* ========== HERO SECTION ========== */
.practice-hero {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.9) 0%, 
        rgba(41, 128, 185, 0.9) 50%, 
        rgba(26, 82, 118, 0.9) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    border-radius: 0 0 30px 30px;
}

.practice-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 1rem;
    border-right: 3px solid #ffd700;
    padding-right: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.practice-logo {
    max-width: 280px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 215, 0, 0.5);
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* ========== TABS ========== */
.type-tabs {
    display: flex;
   background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.9) 0%, 
        rgba(41, 128, 185, 0.9) 50%, 
        rgba(26, 82, 118, 0.9) 100%);
     backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 5px;
    box-shadow: var(--glass-shadow);
}

.type-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 45px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.type-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.type-tab:hover::before {
    left: 100%;
}

.type-tab.active {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    color: white;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.type-tab[data-type="numeric"].active {
    background: linear-gradient(45deg, var(--numeric-color), #0099ff);
    box-shadow: 0 5px 20px rgba(0, 200, 255, 0.4);
}

.tab-badge {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 8px;
    font-weight: 500;
}

/* ========== ENHANCED CARDS ========== */
.nft.practice-card {
    max-width: 340px;
    margin: 2rem auto;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    background: linear-gradient(0deg, var(--card-bg) 0%, rgba(17, 0, 32, 0.5) 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: var(--blur-amount);
    -webkit-backdrop-filter: var(--blur-amount);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: cardFadeIn 0.6s ease-out;
    border: 2px solid transparent;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nft.practice-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color), var(--accent-color));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nft.practice-card.numeric-card::before {
    background: linear-gradient(45deg, var(--numeric-color), #0099ff, var(--numeric-color));
}

.nft.practice-card:hover::before {
    opacity: 0.5;
}

.nft.practice-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.nft.practice-card.numeric-card:hover {
    border-color: var(--numeric-color);
}

/* Card Content */
.practice-card .main {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.tokenImage {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: transform 0.5s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.practice-card:hover .tokenImage {
    transform: scale(1.05);
}

.practice-card h3 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.practice-card .description {
    margin: 0.5rem 0 1rem;
    color: var(--text-primary);
    opacity: 0.9;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Practice Badge */
.practice-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(var(--accent-color-rgb), 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: badgeGlow 2s ease-in-out infinite;
}

.numeric-badge {
    background: linear-gradient(45deg, var(--numeric-color), #0099ff) !important;
    box-shadow: 0 6px 20px rgba(var(--numeric-color-rgb), 0.4) !important;
}

@keyframes badgeGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(var(--accent-color-rgb), 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.6);
    }
}

/* ========== SUPER BUTTON ========== */
.super-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(145deg, #0f0f0f, #1c1c1c);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    z-index: 1;
    width: 100%;
}

.super-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--accent-color), var(--secondary-color), var(--accent-color));
    animation: rotate 4s linear infinite;
    z-index: -2;
}

.super-button.numeric-button::before {
    background: conic-gradient(from 0deg, var(--numeric-color), #0099ff, var(--numeric-color));
}

.super-button::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: #0a0a0a;
    border-radius: inherit;
    z-index: -1;
}

.super-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(var(--accent-color-rgb), 0.3);
}

.super-button.numeric-button:hover {
    box-shadow: 0 0 40px rgba(var(--numeric-color-rgb), 0.3);
}

.super-button:hover .arrow {
    transform: translateX(6px);
}

.arrow {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease-in-out;
    color: var(--accent-color);
}

.numeric-button .arrow {
    color: var(--numeric-color);
}

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

/* ========== PANEL STYLES ========== */
.test-selector-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.test-selector-panel.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.panel-content {
    width: 100%;
    max-width: 900px;
    max-height: 100vh;
    background: var(--modal-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(to right, rgba(var(--accent-color-rgb), 0.1), rgba(255, 215, 0, 0.1));
    border-radius: 20px 20px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.numeric-panel .panel-header {
    background: linear-gradient(to right, rgba(var(--numeric-color-rgb), 0.1), rgba(0, 153, 255, 0.1));
}

.close-panel-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 11;
}

.close-panel-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: rotate(90deg);
    border-color: #ff4444;
}

/* ========== TEST LIST (NO VISIBLE SCROLLBAR) ========== */
.tests-container {
    padding: 0.5rem;
    max-height: calc(70vh - 120px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.tests-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Custom scrollbar that doesn't take space */
.tests-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-color-rgb), 0.3) transparent;
}

.tests-container::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.tests-container::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-color-rgb), 0.3);
    border-radius: 4px;
}

.numeric-panel .tests-container::-webkit-scrollbar-thumb {
    background: rgba(var(--numeric-color-rgb), 0.3);
}

.test-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.test-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.test-item.numeric::before {
    background: linear-gradient(to right, var(--numeric-color), #0099ff);
}

.test-item:hover::before {
    opacity: 1;
}

.test-item:last-child {
    margin-bottom: 0;
}

.test-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(var(--accent-color-rgb), 0.2);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.test-item.numeric:hover {
    border-color: var(--numeric-color);
    box-shadow: 0 10px 25px rgba(var(--numeric-color-rgb), 0.2);
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.test-title {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.test-difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-difficulty.easy {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.test-difficulty.medium {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.test-difficulty.hard {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.test-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.detail-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.test-item.numeric .detail-item i {
    color: var(--numeric-color);
}

.start-test-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-hover));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.start-test-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.start-test-btn:hover::before {
    left: 100%;
}

.start-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--accent-color-rgb), 0.4);
}

.test-item.numeric .start-test-btn {
    background: linear-gradient(45deg, var(--numeric-color), #0099ff);
}

.test-item.numeric .start-test-btn:hover {
    box-shadow: 0 5px 20px rgba(var(--numeric-color-rgb), 0.4);
}

/* ========== LOADING & EMPTY STATES ========== */
.loading-tests {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.numeric-panel .spinner {
    border-top-color: var(--numeric-color);
}

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

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .nft.practice-card {
        max-width: 320px;
    }
}

@media (max-width: 992px) {
    .nft.practice-card {
        max-width: 100%;
        margin: 1rem auto;
    }
    
    .panel-content {
        width: 95%;
        max-width: 95%;
    }
    
    .test-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .practice-hero {
        padding: 50px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .type-tabs {
        flex-direction: column;
        border-radius: 20px;
        gap: 5px;
    }
    
    .type-tab {
        padding: 0.8rem;
        margin-bottom: 0;
    }
    
    .panel-content {
        width: 98%;
        margin: 0.5rem;
        max-height: 95vh;
    }
    
    .panel-header {
        padding: 1rem;
    }
    
    .close-panel-btn {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
    }
    
    .tests-container {
        padding: 1rem;
        max-height: calc(50vh - 100px);
    }
    
    .test-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .test-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .practice-logo {
        max-width: 200px;
    }
    
    .super-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .practice-hero {
        padding: 40px 0;
        border-radius: 0 0 20px 20px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .panel-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .test-selector-panel.active {
        padding: 0;
    }
    
    .tests-container {
        max-height: calc(50vh - 80px);
    }
    
    .test-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .test-difficulty {
        align-self: flex-start;
    }
    
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.5rem;
    }
    
    .col-xl-4, .col-lg-6, .col-md-6, .col-sm-12 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .tokenImage {
        height: 150px;
    }
}

/* ========== LIGHT THEME SUPPORT ========== */
[data-bs-theme="light"] .practice-hero {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.9) 0%, 
        rgba(41, 128, 185, 0.9) 100%);
}

[data-bs-theme="light"] .nft.practice-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(52, 152, 219, 0.05) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .nft.practice-card.numeric-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(0, 200, 255, 0.05) 100%);
}

[data-bs-theme="light"] .type-tabs {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .test-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .test-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ========== ANIMATIONS ========== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.floating-element {
    animation: float 3s ease-in-out infinite;
}

/* ========== BACKGROUND PATTERNS ========== */
.practice-section {
    position: relative;
}

.practice-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233498db' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

/* ========== IMAGE OVERLAY ========== */
.practice-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.5));
    pointer-events: none;
    border-radius: 12px;
}

/* ========== NUMERIC TAG ========== */
.numeric-tag {
    background: linear-gradient(45deg, var(--numeric-color), #0099ff);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 200, 255, 0.3);
}

/* ========== MAIN TITLE ========== */
.practice-main-title {
    text-align: center;
    margin: 2rem 0 3rem;
    position: relative;
}

.practice-main-title h2  {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.practice-main-title .lead {
    font-size: 1.1rem;
    color: var(--accent-color);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== ANIMATED BACKGROUND FOR ENTIRE PAGE ========== */
.practice-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Animated gradient background */
.practice-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(0, 200, 255, 0.08) 0%, transparent 35%),
        linear-gradient(135deg, 
            rgba(52, 152, 219, 0.02) 0%, 
            transparent 20%,
            rgba(255, 215, 0, 0.02) 40%,
            transparent 60%,
            rgba(0, 200, 255, 0.02) 80%,
            rgba(52, 152, 219, 0.02) 100%);
    animation: gradientShift 20s ease infinite;
    background-size: 400% 400%;
}

/* Subtle moving particles */
.practice-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='2' fill='%233498db' fill-opacity='0.1'/%3E%3Ccircle cx='80' cy='80' r='1.5' fill='%23ffd700' fill-opacity='0.1'/%3E%3Ccircle cx='50' cy='50' r='1' fill='%2300c8ff' fill-opacity='0.1'/%3E%3Ccircle cx='30' cy='70' r='1.2' fill='%233498db' fill-opacity='0.1'/%3E%3Ccircle cx='70' cy='30' r='0.8' fill='%23ffd700' fill-opacity='0.1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: particleFloat 30s linear infinite;
    opacity: 0.3;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes particleFloat {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 200px 200px;
    }
}

/* Floating shapes animation */
.practice-background .floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: floatingShape 25s ease-in-out infinite;
    pointer-events: none;
}

.practice-background .floating-shape.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(52, 152, 219, 0.05);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.practice-background .floating-shape.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(255, 215, 0, 0.04);
    bottom: 15%;
    right: 10%;
    animation-delay: 5s;
}

.practice-background .floating-shape.shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(0, 200, 255, 0.03);
    top: 60%;
    left: 80%;
    animation-delay: 10s;
}

@keyframes floatingShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(100px, 50px) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(50px, 100px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
        opacity: 0.4;
    }
}

/* Subtle grid pattern overlay */
.practice-background .grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridShift 60s linear infinite;
}

@keyframes gridShift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Light theme adjustments */
[data-bs-theme="light"] .practice-background::before {
    background: 
        radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(0, 200, 255, 0.03) 0%, transparent 35%),
        linear-gradient(135deg, 
            rgba(52, 152, 219, 0.01) 0%, 
            transparent 20%,
            rgba(255, 215, 0, 0.01) 40%,
            transparent 60%,
            rgba(0, 200, 255, 0.01) 80%,
            rgba(52, 152, 219, 0.01) 100%);
}

[data-bs-theme="light"] .practice-background .floating-shape.shape-1 {
    background: rgba(52, 152, 219, 0.03);
}

[data-bs-theme="light"] .practice-background .floating-shape.shape-2 {
    background: rgba(255, 215, 0, 0.02);
}

[data-bs-theme="light"] .practice-background .floating-shape.shape-3 {
    background: rgba(0, 200, 255, 0.02);
}

[data-bs-theme="light"] .practice-background .grid-overlay {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

/* Add to practice.css */
.subscription-required {
    padding: 40px 20px;
    text-align: center;
}

.subscription-required .btn {
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.subscription-required .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.subscription-required .bi {
    font-size: 48px;
    margin-bottom: 20px;
}

.subscription-required h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.subscription-required p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 30px;
}

/* Theme Variables */
:root {
    --accent-color: #3498db;
    --accent-color-rgb: 52, 152, 219;
    --secondary-color: #ffd700;
    --secondary-color-rgb: 255, 215, 0;
    --numeric-color: #00c8ff;
    --numeric-color-rgb: 0, 200, 255;
    --card-bg: rgba(30, 30, 30, 0.85);
    --modal-bg: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    --blur-amount: blur(12px);
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --accent-hover: #2980b9;
}

[data-bs-theme="light"] {
    --accent-color: #2980b9;
    --accent-color-rgb: 41, 128, 185;
    --secondary-color: #e6b800;
    --secondary-color-rgb: 230, 184, 0;
    --numeric-color: #0099cc;
    --numeric-color-rgb: 0, 153, 204;
    --card-bg: rgba(255, 255, 255, 0.9);
    --modal-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --text-primary: #000000;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent-hover: #1c6ea4;
}
