/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --success: #4cc9f0;
    --warning: #ffba08;
    --danger: #f94144;
    --info: #4361ee;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 12px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f5f7fb;
}

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

/* Header styles */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-greeting {
    font-weight: 500;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background-color: #d81159;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #2563eb; /* a nice blue */
    border: 2px solid var(--primary);
    color: var(--primary);
    color: #2563eb; /* a nice blue */
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Card styles */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

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

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* Auth styles */
.auth-card {
    max-width: 400px;
    margin: 2rem auto;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-link {
    text-align: center;
    color: var(--gray);
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Assessment grid */
.assessments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
    margin-top: 2.0rem;
}

.assessment-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.assessment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.assessment-image {
    height: 160px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.assessment-content {
    padding: 1.5rem;
}

.assessment-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.assessment-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.assessment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
}

.price.free {
    color: var(--success);
}

.price.paid {
    color: var(--accent);
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-free {
    background-color: #e9f5f1;
    color: var(--success);
}

.tag-paid {
    background-color: #fde8ef;
    color: var(--accent);
}

/* Hero section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.8;
}

/* Features section */
.features-section {
    padding: 3rem 0;
    text-align: center;
}

.features-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Footer styles */
footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 20px;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;        /* ✅ Constrain width */
    margin: 0 auto;           /* ✅ Centers horizontally */
    width: 100%; 
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #ccc;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;        /* ✅ Match width to footer content */
    margin: 1.5rem auto 0;    /* ✅ Center it */
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem; /* ⬅️ Increased spacing between links */
  margin-bottom: 1rem;
}

.footer-legal-links a {
  color: #ccc;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: #fff;
  text-decoration: underline;
}



/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Notification system */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.error {
    border-left: 4px solid var(--danger);
}

.notification.info {
    border-left: 4px solid var(--info);
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    padding: 0.25rem;
}

.notification-close:hover {
    color: var(--dark);
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .assessments-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-image {
        font-size: 5rem;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .notification {
        min-width: 250px;
        font-size: 0.9rem;
    }
}

/* =======================
   Assessment Question Styles
   ======================= */


.question-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--secondary);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
}

.option:hover {
    background-color: var(--light-gray);
}

.option-letter {
    font-weight: 600;
    margin-right: 10px;
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.option-text {
    flex: 1;
    color: var(--dark);
}

.option.selected {
    border-color: var(--primary);
    background-color: #eef2ff;
}

/* =======================
   Modern Assessment Page
   ======================= */

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

.progress {
    flex: 1;
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    margin-left: 1rem;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0;
    transition: width 0.3s ease;
}

.timer {
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}



.question-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--secondary);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
    font-size: 1rem;
}

.option:hover {
    background: #f9f9ff;
}

.option input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option.selected {
    border-color: var(--primary);
    background: #eef2ff;
}

.assessment-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.assessment-title {
    text-align: center;
    margin-bottom: 1rem;
}

.assessment-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.assessment-title .subtitle {
    font-size: 1rem;
    color: var(--gray);
}

.assessment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.assessment-header .progress {
    flex: 1;
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.assessment-header .progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.timer {
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.assessment-footer {
    display: flex;
    justify-content: center; /* center button */
    margin-top: 2rem;
}

/* =======================
   Assessment Page Styles
   ======================= */
.assessment-container {
    max-width: 950px; /* increased from 800px */
    margin: 2rem auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem; /* increased from 2rem */
}

.assessment-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.assessment-title .subtitle {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.assessment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.assessment-header .progress {
    flex: 1;
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.assessment-header .progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

#timer-display.timer {
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 55px;
    text-align: center;
}

.question-card {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 2rem; /* increased */
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.question-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.option:hover {
    background-color: #f9f9ff;
}

.option input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option.selected {
    border-color: var(--primary);
    background-color: #eef2ff;
}

.assessment-footer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.assessment-footer .btn {
    min-width: 160px;
    font-size: 1rem;
    font-weight: 600;
}

/* Modern Results Page Styles */
.modern-result-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.result-hero {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.result-hero.failed {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-icon i {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.score-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

/* .circular-progress {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.progress-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--primary) 0%, var(--light-gray) 0%);
    transition: background 1s ease;
}

.progress-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark);
} */

.circular-progress {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
}

.progress-circle {
    width: 100%;
    height: 100%;
    border-radius: 70%;
    background: conic-gradient(var(--primary) 0%, var(--light-gray) 0%);
    position: relative;
}

/* White inner circle (makes it look like a ring) */
.progress-circle::after {
    content: "";
    position: absolute;
    width: 85%;   /* adjust this → more % = bigger white center */
    height: 85%;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;  /* smaller font so it stays inside */
    font-weight: bold;
    color: var(--dark);
    white-space: nowrap;
    z-index: 1;
}


.score-details h2 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.score-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(#020305);
    font-size: 0.9rem;
}

.certificate-notification {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--success);
}

.certificate-notification i {
    font-size: 2rem;
    color: var(--success);
    margin-right: 1rem;
}

.detailed-section {
    margin-bottom: 2rem;
}

.questions-grid {
    display: grid;
    gap: 1rem;
}

.question-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow);
    border-left: 4px solid;
}

.question-card.correct {
    border-left-color: var(--success);
}

.question-card.incorrect {
    border-left-color: var(--danger);
}

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

.question-number {
    font-weight: bold;
    color: var(--dark);
}

.status-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.question-card.correct .status-icon {
    color: var(--success);
}

.question-card.incorrect .status-icon {
    color: var(--danger);
}

.answer-comparison {
    margin-top: 1rem;
}

.answer {
    margin-bottom: 0.5rem;
}

.answer label {
    font-weight: bold;
    color: var(--gray);
    margin-right: 0.5rem;
}

.correct-answer span {
    color: var(--success);
    font-weight: 500;
}

.your-answer span {
    color: var(--dark);
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.user-details-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.user-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 500;
    color: var(--gray);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.status-badge.failed {
    background: #ffebee;
    color: #c62828;
}

/* Responsive Design */
@media (max-width: 768px) {
    .score-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .score-stats {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .circular-progress {
        width: 150px;
        height: 150px;
    }
}

/* Modern Results Page Styles */
.modern-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.results-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.header-content h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.header-content p {
    color: var(--gray);
    font-size: 1.1rem;
}

.header-stats {
    display: grid;
    gap: 1rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark);
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.results-filters {
    display: flex;
    gap: 1rem;
    align-items: end;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    background: white;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid;
    cursor: pointer;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.result-card.passed {
    border-left-color: var(--success);
}

.result-card.failed {
    border-left-color: var(--danger);
}

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

.assessment-title {
    font-size: 1.2rem;
    color: var(--dark);
    margin: 0;
    flex: 1;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 1rem;
}

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

.status-badge.failed {
    background: #ffebee;
    color: #c62828;
}

.card-content {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.circular-progress {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary) calc(var(--percentage) * 1%),
        var(--light-gray) 0
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circular-progress::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
}

.score-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark);
    z-index: 1;
}

.circular-progress.excellent {
    background: conic-gradient(
        var(--success) calc(var(--percentage) * 1%),
        var(--light-gray) 0
    );
}

.circular-progress.average {
    background: conic-gradient(
        var(--warning) calc(var(--percentage) * 1%),
        var(--light-gray) 0
    );
}

.circular-progress.poor {
    background: conic-gradient(
        var(--danger) calc(var(--percentage) * 1%),
        var(--light-gray) 0
    );
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.detail-item i {
    width: 16px;
    color: var(--primary);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.certificate-btn {
    background: linear-gradient(135deg, var(--success), #2e7d32);
    color: white;
    border: none;
}

.certificate-btn:hover {
    background: linear-gradient(135deg, #2e7d32, var(--success));
    transform: translateY(-1px);
}

/* Empty and Error States */
.empty-state, .error-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon, .error-icon {
    font-size: 4rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.error-icon {
    color: var(--danger);
}

.empty-state h2, .error-state h2 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.empty-state p, .error-state p {
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--light-gray);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:not(:disabled):hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-results-container {
        padding: 1rem;
    }

    .results-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .header-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .card-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .circular-progress {
        margin: 0 auto;
    }

    .card-actions {
        flex-direction: column;
    }
}

/* Modern Results Header */
.modern-results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.header-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.header-text {
    flex: 1;
}

.header-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

.header-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    /*backdrop-filter: blur(10px);*/
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 0.8rem;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.header-achievement {
    display: flex;
    justify-content: center;
}

.achievement-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.achievement-badge i {
    color: #ffd700;
    font-size: 1.2rem;
}

.achievement-badge span {
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .header-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .modern-results-header {
        padding: 2rem 1.5rem;
    }
    
    .header-title {
        font-size: 2.2rem;
    }
    
    .header-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-content {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.8rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.7rem;
        color: rgba(255, 255, 255, 0.85);
    }
}

/* Optimized for readability */
.header-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}



.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.3rem;
    color: #1f2937;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Payment Page Styles */
.modern-payment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.premium-header {
    text-align: center;
    margin-bottom: 3rem;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.premium-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7C3AED, #4F46E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0;
}

.premium-subtitle {
    font-size: 1.2rem;
    color: #64748B;
    margin: 0;
}

.modern-payment-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
}

.payment-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #F1F5F9;
}

.assessment-preview {
    text-align: left;
}

.assessment-preview i {
    font-size: 3rem;
    color: #7C3AED;
    margin-bottom: 1rem;
}

.assessment-preview h2 {
    font-size: 1.8rem;
    color: #1E293B;
    margin: 0 0 0.5rem 0;
}

.assessment-preview p {
    color: #64748B;
    margin: 0;
    line-height: 1.6;
}

.price-display {
    text-align: center;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #7C3AED;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.price-info {
    color: #64748B;
    font-size: 0.9rem;
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: #F8FAFC;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #F1F5F9;
    transform: translateY(-2px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7C3AED, #4F46E5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.feature-content h4 {
    margin: 0 0 0.3rem 0;
    color: #1E293B;
    font-size: 1.1rem;
}

.feature-content p {
    margin: 0;
    color: #64748B;
    font-size: 0.9rem;
}

.payment-actions-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn-premium-pay {
    background: linear-gradient(135deg, #7C3AED, #4F46E5);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-premium-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.btn-premium-pay:active {
    transform: translateY(0);
}

.btn-premium-pay.success {
    background: linear-gradient(135deg, #10B981, #059669);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.price-btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-weight: 700;
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid #E2E8F0;
    color: #64748B;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-outline-modern:hover {
    border-color: #7C3AED;
    color: #7C3AED;
}

.security-section {
    margin-bottom: 2.5rem;
}

.security-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: #F8FAFC;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #64748B;
}

.security-item i {
    color: #7C3AED;
}

.trust-pilot {
    text-align: center;
}

.trust-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #F8FAFC;
    border-radius: 20px;
}

.stars {
    color: #FFD700;
    font-size: 1.1rem;
}

.trust-rating span {
    color: #64748B;
    font-size: 0.9rem;
}

.faq-section {
    border-top: 2px solid #F1F5F9;
    padding-top: 2rem;
}

.faq-section h3 {
    text-align: left;
    color: #1E293B;
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background: #F8FAFC;
    cursor: pointer;
    font-weight: 600;
    color: #1E293B;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 1.2rem;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: #64748B;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-payment-container {
        padding: 1rem;
    }
    
    .premium-title {
        font-size: 2.2rem;
    }
    
    .payment-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .security-badges {
        grid-template-columns: 1fr;
    }
    
    .btn-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .premium-title {
        font-size: 1.8rem;
    }
    
    .price-amount {
        font-size: 2.8rem;
    }
    
    .modern-payment-card {
        padding: 1.5rem;
    }
}

/* Ultra Modern Payment Page Styles */
.ultra-modern-payment {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Animated Background */
.payment-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: -10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Glass Container */
.payment-glass-container {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: containerEnter 1s ease-out 0.2s forwards;
}

.payment-glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

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

/* Hero Section */
.payment-hero-section {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.payment-hero-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.premium-crown {
    margin-bottom: 1.5rem;
    animation: crownPulse 2s ease-in-out infinite;
}

.premium-crown i {
    font-size: 4rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.3));
}

@keyframes crownPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.payment-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-text {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.payment-subtitle {
    font-size: 1.25rem;
    color: #64748B;
    font-weight: 400;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Assessment Preview Card */
.assessment-preview-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    position: relative;
    overflow: hidden;
}

.assessment-preview-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.assessment-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366F1, #8B5CF6, #EC4899);
}

.assessment-card-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.assessment-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.assessment-icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

.assessment-info {
    text-align: left;
}

.assessment-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 0.5rem 0;
}

.assessment-desc {
    color: #64748B;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Price Showcase */
.price-showcase {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #F8FAFC, #E2E8F0);
    border-radius: 16px;
    border: 2px solid #E2E8F0;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.currency-symbol {
    font-size: 2rem;
    font-weight: 600;
    color: #6366F1;
}

.price-main {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1E293B;
    line-height: 1;
}

.price-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.one-time {
    color: #6366F1;
    font-weight: 600;
    font-size: 1rem;
}

.lifetime {
    color: #64748B;
    font-size: 0.9rem;
}

/* Premium Features */
.premium-features-section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.premium-features-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.features-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E293B;
    text-align: center;
    margin-bottom: 2rem;
}

.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card-modern {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-icon-modern {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.feature-icon-modern.infinity {
    --gradient: linear-gradient(135deg, #10B981, #059669);
    background: var(--gradient);
}

.feature-icon-modern.analytics {
    --gradient: linear-gradient(135deg, #3B82F6, #1D4ED8);
    background: var(--gradient);
}

.feature-icon-modern.certificate {
    --gradient: linear-gradient(135deg, #F59E0B, #D97706);
    background: var(--gradient);
}

.feature-icon-modern.leaderboard {
    --gradient: linear-gradient(135deg, #8B5CF6, #7C3AED);
    background: var(--gradient);
}

.feature-content-modern h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E293B;
    margin: 0 0 0.5rem 0;
}

.feature-content-modern p {
    color: #64748B;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Payment Action */
.payment-action-section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.payment-action-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.ultra-modern-pay-btn {
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: transparent;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.ultra-modern-pay-btn:hover {
    transform: translateY(-2px);
}

.btn-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.ultra-modern-pay-btn:hover .btn-background {
    background: linear-gradient(135deg, #5B56F0, #7C3AED);
}

.btn-content-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    color: white;
    z-index: 2;
}

.btn-icon {
    font-size: 1.25rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.main-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.price-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.ultra-modern-pay-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 3;
}

.ultra-modern-pay-btn:hover .btn-shine {
    left: 100%;
}

.ultra-modern-pay-btn.loading {
    pointer-events: none;
}

.ultra-modern-pay-btn.loading .btn-background {
    background: linear-gradient(135deg, #64748B, #475569);
}

.ultra-modern-pay-btn.success .btn-background {
    background: linear-gradient(135deg, #10B981, #059669);
}

.back-btn-modern {
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 2px solid rgba(100, 116, 139, 0.2);
    border-radius: 16px;
    color: #64748B;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.back-btn-modern:hover {
    border-color: #6366F1;
    color: #6366F1;
    background: rgba(99, 102, 241, 0.05);
}

/* Trust & Security */
.trust-security-section {
    margin-bottom: 2rem;
    text-align: center;
}

.security-badges-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.security-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.security-badge:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.security-badge i {
    font-size: 1.5rem;
    color: #6366F1;
    margin-bottom: 0.5rem;
}

.security-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1E293B;
}

.testimonial-preview {
    max-width: 400px;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.stars-rating {
    margin-bottom: 1rem;
    color: #F59E0B;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-preview p {
    font-style: italic;
    color: #1E293B;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.5;
}

.testimonial-author {
    color: #64748B;
    font-size: 0.9rem;
    font-weight: 500;
}

/* FAQ Section */
.faq-toggle-section {
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    padding-top: 2rem;
}

.faq-toggle-btn {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1E293B;
}

.faq-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.faq-toggle-btn i {
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.faq-content.active {
    max-height: 400px;
}

.faq-item-modern {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
}

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

.faq-item-modern h5 {
    color: #1E293B;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.faq-item-modern p {
    color: #64748B;
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ultra-modern-payment {
        padding: 1rem;
    }
    
    .payment-glass-container {
        padding: 2rem 1.5rem;
    }
    
    .payment-main-title {
        font-size: 2.5rem;
    }
    
    .assessment-card-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .price-showcase {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .features-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .security-badges-modern {
        grid-template-columns: 1fr;
    }
    
    .btn-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }
    
    .btn-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .payment-main-title {
        font-size: 2rem;
    }
    
    .premium-crown i {
        font-size: 3rem;
    }
    
    .price-main {
        font-size: 2.5rem;
    }
    
    .currency-symbol {
        font-size: 1.5rem;
    }
    
    .assessment-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .assessment-icon-wrapper i {
        font-size: 2rem;
    }
}

/* Loading Animation for Button */
@keyframes buttonPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.ultra-modern-pay-btn.loading .btn-content-wrapper {
    animation: buttonPulse 1.5s ease-in-out infinite;
}

/* Success State Animation */
@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.ultra-modern-pay-btn.success {
    animation: successPulse 0.6s ease;
}

/* Timer Styles */
.timer-container {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    border-radius: 15px;
    min-width: 120px;
}

.timer-display {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.timer-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

/* Progress and difficulty styles */
.assessment-progress {
    margin: 1.5rem 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.difficulty {
    color: #ffd700; /* Gold color for stars */
}

/* Time warning */
.time-warning {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ffba08, #f48c06);
    color: white;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Animations */
.pulse {
    animation: pulse 1s infinite;
}

.shake {
    animation: shake 0.5s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Scope to recent-results only */
.recent-results .result-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recent-results .result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.recent-results .result-info {
  flex: 1;
}

.recent-results .result-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.recent-results .result-info p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  color: #555;
}

/* Score badge only inside recent results */
.recent-results .score-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.recent-results .score-excellent { background: #2ecc71; }  
.recent-results .score-good { background: #3498db; }       
.recent-results .score-average { background: #f39c12; }    
.recent-results .score-poor { background: #e74c3c; }       

/* Scope only to profile page */
.profile-content {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

/* Profile Cards */
.profile-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.profile-card h2 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: #2c3e50;
  font-weight: 600;
}

/* Forms */
.profile-form {
  display: grid;
  gap: 1rem;
}

.profile-form .form-group {
  display: flex;
  flex-direction: column;
}

.profile-form label {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
}

.profile-form .form-control {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.profile-form .form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52,152,219,0.15);
  outline: none;
  background: #fff;
}

/* Buttons */
.profile-form .btn {
  margin-top: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.profile-form .btn-primary {
  background: #3498db;
  color: #fff;
  border: none;
}

.profile-form .btn-primary:hover {
  background: #2980b9;
}

/* Statistics Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 1.5rem;
}

.stat-item {
  background: linear-gradient(135deg,#3498db,#9b59b6);
  border-radius: 14px;
  padding: 1.5rem;
  color: #fff;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.stat-item i {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.9;
}

/* assessment instructions page */
.instructions-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.instructions-card {
  width: 100%;
  max-width: 980px;
  background: #fff;
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
}
.instructions-left h2 {
  margin-bottom: 0.8rem;
}
.instructions-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.instructions-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #eee;
  color: #333;
}
.instructions-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.instructions-notes {
  margin-top: 1rem;
  padding: 0.8rem;
  background: #f9fbff;
  border-radius: 8px;
  color: #444;
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .instructions-card { grid-template-columns: 1fr; }
  .instructions-actions { order: 2; }
}

/* Progress bar styles */
.progress-bar-container {
  margin-top: 10px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4cafef, #2196f3);
  transition: width 0.5s ease-in-out;
}

.progress-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
}

/* Wins Page Modern Styling */
.wins-container {
  max-width: 100%;
  width: 100%;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.wins-header {
  text-align: center;
  margin-bottom: 2rem;
}

.wins-header h1 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wins-header p {
  font-size: 1.1rem;
  color: #666;
}

/* Badge */
.badge-display {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center;     /* Centers vertically (if height > content) */
  align-items: center;
  gap: 1.4rem;
  background: #6a11cb;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  margin: 1rem auto;       /* Ensures it stays centered if inside a wider container */
  color: #ddd;

}

.badge-display i {
  color: #fbbf24;
  font-size: 1.5rem;
  
}

/* Progress / Next Goal */
.next-goal-card {
  margin: 2rem 0;
  padding: 1.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.next-goal-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* Analytics Cards */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.analytics-card {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease;
}
.analytics-card:hover {
  transform: translateY(-4px);
}
.analytics-card i {
  font-size: 1.5rem;
  color: #6a11cb;
  margin-bottom: 0.5rem;
}
.analytics-card .value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
}
.analytics-card .label {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Info sections */
.info-section {
  margin: 2rem 0;
}
.info-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #374151;
}
.info-section p, .info-section li {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
}
.info-section ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* Wins Tab Highlight */
.wins-highlight {
  color: #fff !important;
  background: #dc2626; /* Red background */
  border-radius: 8px;
  padding: 0.4rem 1rem;
  font-weight: 600;
  position: relative;
  animation: pulseHighlight 1.5s infinite ease-in-out;
  transition: transform 0.3s ease;
}

/* Glow Effect */
.wins-highlight::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 12px;
  border: 2px solid rgba(220, 38, 38, 0.6);
  animation: glowPulse 1.5s infinite ease-in-out;
}

/* Pulsating background + scaling */
@keyframes pulseHighlight {
  0%   { transform: scale(1); background: #dc2626; }
  50%  { transform: scale(1.1); background: #b91c1c; }
  100% { transform: scale(1); background: #dc2626; }
}

/* Outer glowing border */
@keyframes glowPulse {
  0%   { opacity: 0.6; transform: scale(1); }
  50%  { opacity: 0.2; transform: scale(1.2); }
  100% { opacity: 0.6; transform: scale(1); }
}


.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98); /* Increased opacity for clarity */
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 0.8rem;
    color: #1f2937; /* Ensure text color stays strong */
    font-weight: 600;
}

.stat-item * {
    position: relative;
    z-index: 1; /* Keep text/icons above any background layers */
}

.badge-logo {
  height: 50px;    /* pick any value between 40px–60px */
  width: auto;     /* keeps aspect ratio */
  display: inline-block;
  vertical-align: middle; /* aligns nicely with text/menu */
}

.instructions-violations {
  width: 100%;
  background: #fff4f4;
  border: 2px solid #f5c2c2;
  border-left: 8px solid #e63946;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 12px;
  font-size: 1.05rem;
  line-height: 1.6;
}


.instructions-violations h3 {
  margin-bottom: 1.2rem;
  font-size: 1.4rem;              /* bigger heading */
  font-weight: 700;
  color: #e63946;
}

.instructions-violations ul {
  margin: 0;
  padding-left: 1.5rem;
}

.instructions-violations li {
  margin-bottom: 0.8rem;          /* bigger spacing between points */
  line-height: 1.6;
}

.violation-note {
  margin-top: 1.5rem;
  font-style: italic;
  font-size: 0.95rem;
  color: #555;
}

/* Wins Page Styles */
.recent-results {
    margin-top: 2rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.status.passed {
    color: #10b981;
    font-weight: 600;
}

.status.failed {
    color: #ef4444;
    font-weight: 600;
}


.next-goal-card small {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Enhanced Responsive Header Styles */

/* Mobile menu toggle button (hamburger) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Logo responsive adjustments */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.badge-logo {
    height: 40px;
    width: auto;
    margin-right: 8px;
    display: inline-block;
}

.logo span {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Navigation improvements for smaller screens */
nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

/* User menu improvements */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-greeting {
    font-weight: 500;
    white-space: nowrap;
}

/* Wins highlight responsive */
.wins-highlight {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Enhanced responsive breakpoints */

/* Large tablets and small desktops: 1024px and below */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .logo span {
        font-size: 1.6rem;
    }
}

/* Tablets: 768px and below */
@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    
    .header-content {
        position: relative;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Logo adjustments */
    .logo {
        order: 1;
        flex: 1;
    }
    
    .logo span {
        font-size: 1.4rem;
    }
    
    .badge-logo {
        height: 35px;
    }
    
    /* Hide navigation by default on mobile */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border-radius: 0 0 12px 12px;
        box-shadow: var(--shadow);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        order: 4;
        width: 100%;
    }
    
    /* Show navigation when active */
    nav.mobile-menu-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        width: 100%;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: var(--transition);
        width: 100%;
    }
    
    nav ul li:last-child a {
        border-bottom: none;
    }
    
    nav ul li a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    /* User menu responsive */
    .user-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
        padding: 0 1rem;
    }
    
    .user-greeting {
        text-align: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        white-space: normal;
    }
    
    .logout-button {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Wins highlight mobile */
    .wins-highlight {
        margin: 0.5rem 1rem;
        text-align: center;
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    /* Buttons responsive */
    .btn-sm {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

/* Small tablets: 640px and below */
@media (max-width: 640px) {
    header {
        padding: 0.8rem 0;
    }
    
    .logo span {
        font-size: 1.3rem;
    }
    
    .badge-logo {
        height: 32px;
    }
    
    .mobile-menu-toggle {
        font-size: 1.3rem;
        padding: 0.4rem;
    }
    
    nav ul li a {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .user-greeting {
        font-size: 0.9rem;
    }
}

/* Mobile phones: 480px and below */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    header {
        padding: 0.7rem 0;
    }
    
    .logo span {
        font-size: 1.2rem;
    }
    
    .badge-logo {
        height: 28px;
    }
    
    .mobile-menu-toggle {
        font-size: 1.2rem;
    }
    
    nav ul li a {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .user-greeting {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    .wins-highlight {
        font-size: 0.9rem;
        padding: 0.6rem;
        margin: 0.3rem 0.5rem;
    }
    
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Very small screens: 360px and below */
@media (max-width: 360px) {
    .logo span {
        font-size: 1.1rem;
    }
    
    .badge-logo {
        height: 26px;
    }
    
    nav ul li a {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 0.5rem 0;
    }
    
    .logo span {
        font-size: 1.3rem;
    }
    
    .badge-logo {
        height: 30px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .badge-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Focus styles for accessibility */
@media (max-width: 768px) {
    .mobile-menu-toggle:focus {
        outline: 2px solid rgba(255, 255, 255, 0.8);
        outline-offset: 2px;
    }
    
    nav ul li a:focus {
        background: rgba(255, 255, 255, 0.2);
        outline: none;
    }
}

/* Smooth transitions for all responsive changes */
* {
    transition: font-size 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.career-impact {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #f9faff 0%, #eef1ff 100%);
}

.career-impact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

/* LEFT COLUMN */
.career-left {
  flex: 1;
  max-width: 600px;
}

.career-left h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #1f1f3b;
}

.career-left p {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Benefits Grid */
.career-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2rem;
  margin-bottom: 2.5rem;
}

.benefit {
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.benefit i {
  font-size: 1.6rem;
  color: #4f46e5;
  flex-shrink: 0;
}

.benefit p {
  font-size: 1.05rem;
  margin: 0;
  color: #333;
  line-height: 1.6;
}

/* CTA */
.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.2s ease, background 0.3s ease;
}

.cta-button:hover {
  background: linear-gradient(90deg, #db2777, #7c3aed);
  transform: translateY(-3px);
}

/* RIGHT COLUMN */
.career-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.career-right img {
  width: 100%;
  max-width: 650px;
  height: auto;
  object-fit: contain;
  animation: float 4s ease-in-out infinite;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 📱 Responsive */
@media (max-width: 992px) {
  .career-impact-container {
    flex-direction: column;
    text-align: center;
  }

  .career-left {
    max-width: 100%;
  }

  .career-benefits-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto 2rem;
  }

  .career-right img {
    max-width: 500px;
    margin-top: 2rem;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* 🌟 Main Container */
.result-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  font-family: 'Inter', sans-serif;
}

/* Hero Section */
.result-hero {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  margin-bottom: 2rem;
}
.result-hero.failed {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}
.result-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}
.result-hero .result-date {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}
.score-circle {
  background: rgba(255, 255, 255, 0.15);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.score-circle .circle-value {
  font-size: 2.5rem;
  font-weight: bold;
}
.score-circle .circle-status {
  font-size: 1.2rem;
  margin-top: 0.3rem;
}

/* Stats Grid */
.result-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s;
}
.stat-card:hover {
  transform: translateY(-4px);
}
.stat-card i {
  font-size: 2rem;
  color: #4f46e5;
  margin-bottom: 0.5rem;
}
.stat-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #555;
}
.stat-card p {
  font-size: 1.3rem;
  font-weight: 700;
}

/* Detailed Questions */
.detailed-section {
  margin-top: 3rem;
}
.detailed-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.question-card {
  background: #fff;
  border-left: 5px solid #ddd;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.question-card.correct {
  border-left-color: #22c55e;
}
.question-card.incorrect {
  border-left-color: #ef4444;
}
.question-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.question-text {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.answers {
  font-size: 0.95rem;
}
.answers .correct {
  color: #22c55e;
}

/* Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .score-circle {
    width: 120px;
    height: 120px;
  }
  .score-circle .circle-value {
    font-size: 2rem;
  }
  .result-hero h1 {
    font-size: 2rem;
  }
}


.expanded-report {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.performance-breakdown {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin: 2.5rem 0;
  text-align: center;
}

.performance-breakdown h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.breakdown-grid {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
}

.breakdown-item {
  text-align: center;
}
.breakdown-item strong {
  font-size: 2rem;
  display: block;
}
.breakdown-item.correct strong { color: #22c55e; }
.breakdown-item.incorrect strong { color: #ef4444; }
.breakdown-item.skipped strong { color: #f59e0b; }

.analysis-text {
  font-size: 1.1rem;
  margin-top: 1rem;
}

.next-steps {
  background: #f9faff;
  padding: 2rem;
  border-radius: 16px;
  margin: 2.5rem 0;
}
.next-steps h2 {
  margin-bottom: 1rem;
}
.next-steps ul {
  padding-left: 1.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
}


/* 📊 Performance Breakdown Section */
.performance-breakdown {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin: 2.5rem 0;
  text-align: center;
}

.performance-breakdown h2 {
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.breakdown-item {
  background: #f9f9ff;
  padding: 1.2rem;
  border-radius: 14px;
  text-align: center;
  transition: transform 0.2s ease;
}

.breakdown-item:hover {
  transform: translateY(-4px);
}

.breakdown-item strong {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.4rem;
}

.breakdown-item span {
  font-size: 1rem;
  color: #555;
  line-height: 1.3;
}

/* Color accents */
.breakdown-item.total strong { color: #1e293b; }
.breakdown-item.correct strong { color: #22c55e; }
.breakdown-item.incorrect strong { color: #ef4444; }
.breakdown-item.skipped strong { color: #f59e0b; }

.analysis-text {
  font-size: 1.1rem;
  margin-top: 1rem;
  color: #333;
}

/* 📱 Mobile Responsive Fix */
@media (max-width: 768px) {
  .breakdown-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 1rem;
  }

  .breakdown-item {
    padding: 1rem;
  }

  .breakdown-item strong {
    font-size: 1.6rem;
  }

  .performance-breakdown h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .breakdown-grid {
    grid-template-columns: 1fr; /* Stack vertically on small phones */
  }

  .breakdown-item {
    width: 100%;
  }
}


/* 📊 Performance Breakdown */
.performance-breakdown {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin: 2.5rem 0;
  text-align: center;
}

.performance-breakdown h2 {
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.breakdown-item {
  background: #f9f9ff;
  padding: 1.2rem;
  border-radius: 14px;
  text-align: center;
  transition: transform 0.2s ease;
}
.breakdown-item:hover {
  transform: translateY(-4px);
}

.breakdown-item strong {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.4rem;
}

.breakdown-item span {
  font-size: 1rem;
  color: #555;
}

.breakdown-item.total strong { color: #1e293b; }
.breakdown-item.correct strong { color: #22c55e; }
.breakdown-item.incorrect strong { color: #ef4444; }
.breakdown-item.skipped strong { color: #f59e0b; }

.analysis-text {
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* 📱 Responsive Fix */
@media (max-width: 768px) {
  .breakdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* 📱 Smaller Wins button on mobile */
@media (max-width: 768px) {
  .wins-highlight {
    font-size: 1rem;         /* reduce text size */
    padding: 0.4rem 0.8rem;  /* reduce padding */
    border-radius: 6px;      /* slightly smaller corners */
    max-width: 200px;        /* limit button width */
    margin: 0 auto;          /* center it */
  }
}


/* 📱 Fix header going out of screen only on mobile */
@media (max-width: 768px) {
  .modern-results-header {
    display: block;
    padding: 1rem;
    overflow-x: hidden;
  }

  .header-main {
    width: 100%;
  }

  .header-text {
    text-align: center;
    margin-bottom: 1rem;
  }

  .header-title {
    font-size: 1.5rem;
  }

  .header-subtitle {
    font-size: 0.95rem;
  }

  .header-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .stat-item {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .header-achievement {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
  }

  .achievement-badge {
    font-size: 1rem;
    padding: 0.6rem 1rem;
    text-align: center;
  }
}


/* 🧾 Default desktop table styles */
.results-table {
  width: 100%;
  overflow-x: auto;
}

.results-table table {
  width: 100%;
  border-collapse: collapse;
}

.results-table th,
.results-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.results-table th {
  background: #f3f4f6;
  font-weight: 600;
}

/* ✅ Mobile Card View */
@media (max-width: 768px) {
  .results-table table,
  .results-table thead,
  .results-table tbody,
  .results-table th,
  .results-table td,
  .results-table tr {
    display: block;
    width: 100%;
  }

  .results-table thead {
    display: none; /* hide header row */
  }

  .results-table tr {
    background: #fff;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 1rem;
  }

  .results-table td {
    border: none;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Add label before each value */
  .results-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
    flex: 0 0 50%;
    text-align: left;
  }

  /* Optional: style status badges */
  .status {
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
  }

  .status.passed {
    background: #dcfce7;
    color: #15803d;
  }

  .status.failed {
    background: #fee2e2;
    color: #b91c1c;
  }
}


@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.4rem;       /* smaller text so it fits in one line */
    white-space: nowrap;     /* prevent wrapping */
  }

  .page-header p {
    font-size: 0.95rem;      /* slightly smaller subtitle */
    line-height: 1.4;
  }
}


.modern-payment-container {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.payment-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.premium-header {
  margin-bottom: 1rem;
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  background: #ffd7001a;
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  color: #d4a017;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.premium-title {
  font-size: 2rem;
  margin: 0.3rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.feature-item i {
  font-size: 1.5rem;
  color: #4a90e2;
}

.faq-section {
  margin-top: 2rem;
}

.faq-item {
  margin-bottom: 1rem;
}

.payment-right .modern-payment-card {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  position: sticky;
  top: 2rem;
}

.price-display {
  text-align: center;
  margin-bottom: 1.5rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: bold;
  color: #2b8a3e;
}

.btn-premium-pay {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  background: #2b8a3e;
  color: #fff;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: 0.2s;
}

.btn-premium-pay:hover {
  background: #257030;
}

.btn-outline-modern {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  background: transparent;
  border: 1.5px solid #ccc;
  border-radius: 0.6rem;
  cursor: pointer;
}

.security-section {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #555;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.trust-rating {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: #444;
}

@media (max-width: 900px) {
  .payment-layout {
    grid-template-columns: 1fr;
  }
  .payment-right .modern-payment-card {
    position: relative;
    top: 0;
  }
}



.btn-premium-pay {
  white-space: nowrap; /* ✅ Prevent text from breaking into 2 lines */
}

.btn-premium-pay {
  min-width: 260px; /* ✅ Increase width to fit text */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.faq-section h3 {
  text-align: left;   /* 👈 Force left alignment */
  font-size: 1.6rem;  /* (optional) make it slightly larger */
  font-weight: 600;
  margin-bottom: 1rem;
}


.faq-section {
  margin-top: 2rem;
  text-align: left;
}

.faq-section h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #4a90e2;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}



.logo {
  display: flex;
  align-items: center;
  text-decoration: none;   /* removes underline */
  color: inherit;          /* ✅ keeps the original text color */
}

.logo span {
  color: inherit;          /* ✅ ensures span text uses the parent color */
}

.logo:visited,
.logo:active,
.logo:focus {
  color: inherit;          /* ✅ prevent any visited/active color change */
  text-decoration: none;
}

.logo:hover {
  opacity: 0.95; /* optional subtle hover effect, can remove if not needed */
}

/* 🌟 Modern filter toolbar */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #f9f9fb;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  flex-wrap: wrap; /* ✅ responsive */
}

/* Filter dropdown */
.filter-select {
  padding: 0.7rem 1rem;
  border: 1px solid #d0d0d5;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
  min-width: 200px;
}

.filter-select:hover,
.filter-select:focus {
  border-color: #4f46e5; /* primary accent */
}

/* Search group */
.search-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #d0d0d5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  min-width: 280px;
  transition: box-shadow 0.2s ease;
}

.search-wrapper:focus-within {
  box-shadow: 0 0 0 2px #4f46e5;
}

.search-input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: none;
  outline: none;
  font-size: 1rem;
}

.search-btn {
  background: #4f46e5;
  border: none;
  padding: 0.7rem 1rem;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.search-btn:hover {
  background: #4338ca;
}

/* 📱 Responsive behavior */
@media (max-width: 700px) {
  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-select,
  .search-wrapper {
    width: 100%;
  }
}

/* ✅ Only affect home page featured assessments */
/* ✅ Home page featured section - horizontal scroll but same card look */
.featured-assessments .assessments-grid.home-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  margin: 1.5rem 0;
}

.featured-assessments .assessments-grid.home-scroll::-webkit-scrollbar {
  display: none;
}

.featured-assessments .assessments-grid.home-scroll .assessment-card {
  flex: 0 0 300px; /* ✅ match minmax(300px, 1fr) from grid */
  max-width: 300px;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

@media (max-width: 600px) {
  .featured-assessments .assessments-grid.home-scroll .assessment-card {
    flex: 0 0 85%; /* ✅ Wider card on mobile for swipe UX */
    max-width: 85%;
  }
}


/* ✅ Force the toggle group to be horizontal */
.filter-group.toggle-group {
  display: inline-flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: 8px;
  background: #f1f3f9;
  border: 1px solid #d0d4e4;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ✅ Make each button share equal space and stay side by side */
.filter-group.toggle-group .toggle-btn {
  display: inline-block !important;
  width: auto;
  flex: 1 1 auto;
  padding: 0.6rem 1.8rem;
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  border: none;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

/* ✅ Remove focus outline */
.filter-group.toggle-group .toggle-btn:focus {
  outline: none;
}

/* ✅ Hover and active state */
.filter-group.toggle-group .toggle-btn:hover {
  background: #e6e9f3;
}

.filter-group.toggle-group .toggle-btn.active {
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #4f46e5;
}

/* CSS for profile page tags and banner */

/* Dashboard Styles */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Welcome Section */
.welcome-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
}

.welcome-content h1 {
  margin: 0 0 10px 0;
  font-size: 2.2em;
  font-weight: 700;
}

.welcome-content p {
  margin: 0 0 20px 0;
  font-size: 1.1em;
  opacity: 0.9;
}

.welcome-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.welcome-badge {
  text-align: center;
}

.badge-display-large {
  background: rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.badge-display-large i {
  font-size: 3em;
  margin-bottom: 10px;
  display: block;
}

.badge-display-large span {
  font-size: 1.2em;
  font-weight: 600;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
  margin-bottom: 40px;
}

.dashboard-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 15px;
  border-left: 4px solid #007bff;
}

.stat-card.success { border-left-color: #28a745; }
.stat-card.warning { border-left-color: #ffc107; }
.stat-card.info { border-left-color: #17a2b8; }

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}

.stat-card.primary .stat-icon { color: #007bff; background: #e3f2fd; }
.stat-card.success .stat-icon { color: #28a745; background: #e8f5e8; }
.stat-card.warning .stat-icon { color: #ffc107; background: #fff8e1; }
.stat-card.info .stat-icon { color: #17a2b8; background: #e1f5fe; }

.stat-value {
  font-size: 1.8em;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  color: #6c757d;
  font-size: 0.9em;
  margin-top: 5px;
}

/* Cards */
.progress-card,
.recent-activity-card,
.recommendations-card,
.skill-gap-card,
.quick-actions-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* Prevent content from overflowing */
}

.card-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header h3 {
  margin: 0;
  font-size: 1.3em;
}

.see-all {
  color: #007bff;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
}

/* Progress Section */
.progress-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 15px;
}

.current-level {
  background: #e3f2fd;
  color: #007bff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
}

.progress-description {
  color: #6c757d;
  margin-bottom: 20px;
}

.progress-bar-container {
  margin-bottom: 15px;
}

.progress-text {
  text-align: center;
  color: #6c757d;
  font-size: 0.9em;
  margin-top: 8px;
}

/* Premium Upsell */
.premium-upsell {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff8e1;
  border: 1px solid #ffeaa7;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.premium-upsell i {
  color: #f39c12;
  font-size: 1.5em;
}

.upsell-content {
  flex: 1;
}

.upsell-content strong {
  display: block;
  margin-bottom: 4px;
}

.upsell-content p {
  margin: 0;
  font-size: 0.9em;
  color: #666;
}

/* Activity List */
/* 📊 Activity List Container */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 🪩 Each Activity Row */
.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 12px;
  background: #f9fafb;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.activity-item:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

/* 🟢 Icon */
.activity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-right: 15px;
}

.activity-icon.passed {
  background: #e8f5e8;
  color: #28a745;
}

.activity-icon.failed {
  background: #ffeaea;
  color: #dc3545;
}

/* 📘 Info Section (Title + Date) */
.activity-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0; /* ✅ prevents wrapping */
}

.activity-info h4 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* ✅ long titles truncate */
}

.activity-info small {
  font-size: 0.85rem;
  color: #6b7280;
}

/* 📈 Score + Status aligned right */
.activity-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.activity-score {
  font-weight: 600;
  font-size: 0.95rem;
}

.activity-score.passed {
  color: #28a745;
}

.activity-score.failed {
  color: #dc3545;
}

/* 🏷️ Free / Premium Tag */
.activity-tag {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.premium-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}


/* Recommendations */
.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recommendation-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.2s;
}

.recommendation-item:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.recommendation-icon {
  width: 40px;
  height: 40px;
  background: #e3f2fd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007bff;
}

.recommendation-details {
  flex: 1;
}

.recommendation-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.recommendation-meta {
  display: flex;
  gap: 10px;
  font-size: 0.8em;
  color: #6c757d;
}

.recommendation-meta span {
  padding: 2px 8px;
  border-radius: 12px;
  background: #f8f9fa;
}

.difficulty.beginner { background: #e8f5e8; color: #28a745; }
.difficulty.intermediate { background: #fff3cd; color: #856404; }
.difficulty.advanced { background: #f8d7da; color: #721c24; }

/* Skill Gaps */
.skill-gaps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-gap-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.skill-gap-item.positive {
  border-color: #d4edda;
  background: #f8fff9;
}

.skill-gap-item i {
  color: #ffc107;
  font-size: 1.2em;
}

.skill-gap-item.positive i {
  color: #28a745;
}

.skill-info {
  flex: 1;
}

.skill-info strong {
  display: block;
  margin-bottom: 2px;
}

.skill-info p {
  margin: 0;
  font-size: 0.85em;
  color: #6c757d;
}

/* Quick Actions */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 10px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  border-color: #007bff;
  background: #f8f9fa;
  transform: translateY(-2px);
}

.action-btn i {
  font-size: 1.5em;
  color: #007bff;
}

.action-btn span {
  font-size: 0.85em;
  font-weight: 500;
}

/* Getting Started */
.getting-started-section {
  background: white;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.getting-started-section h2 {
  margin-bottom: 30px;
  color: #333;
}

.getting-started-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.step-card {
  padding: 25px;
  border-radius: 12px;
  background: #f8f9fa;
  position: relative;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: #007bff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step-content h4 {
  margin: 15px 0 10px 0;
  color: #333;
}

.step-content p {
  color: #666;
  margin: 0;
  font-size: 0.95em;
}

.getting-started-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Profile Banner */
.profile-completeness-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 30px;
  overflow: hidden;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
}

.banner-icon {
  font-size: 2em;
}

.banner-text {
  flex: 1;
}

.banner-text h4 {
  margin: 0 0 5px 0;
  font-size: 1.2em;
}

.banner-text p {
  margin: 0;
  opacity: 0.9;
}

.banner-progress {
  padding: 0 25px 25px 25px;
}

/* Responsive */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .welcome-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .actions-grid {
    grid-template-columns: 1fr;
  }
  
  .banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .getting-started-steps {
    grid-template-columns: 1fr;
  }
}

/* Empty States */
.empty-activity,
.empty-skills {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.empty-activity i,
.empty-skills i {
  font-size: 3em;
  color: #dee2e6;
  margin-bottom: 15px;
  display: block;
}

.empty-dashboard,
.error-dashboard {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.empty-content,
.error-content {
  max-width: 500px;
  padding: 40px;
}

.empty-icon,
.error-icon {
  font-size: 4em;
  color: #dee2e6;
  margin-bottom: 20px;
}

.error-icon {
  color: #dc3545;
}

.empty-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.tag {
  background: #007bff;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
}

.remove-tag {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
}

/*recomendation overflow*/

/* Recommendations Card Fixes */
.recommendations-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* Prevent content from overflowing */
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px; /* Limit height and enable scrolling if needed */
  overflow-y: auto;
}

.recommendation-item {
  display: flex;
  align-items: flex-start; /* Align items to top */
  gap: 12px;
  padding: 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.2s;
  min-height: 80px; /* Ensure consistent height */
}

.recommendation-item:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.recommendation-icon {
  flex-shrink: 0; /* Prevent icon from shrinking */
  width: 40px;
  height: 40px;
  background: #e3f2fd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007bff;
  margin-top: 2px; /* Align with text */
}

.recommendation-details {
  flex: 1;
  min-width: 0; /* Allow text truncation */
  overflow: hidden; /* Prevent overflow */
}

.recommendation-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommendation-meta {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap */
  gap: 8px;
  align-items: center;
  font-size: 0.75em;
  color: #6c757d;
}

.recommendation-meta span {
  padding: 3px 8px;
  border-radius: 12px;
  background: #f8f9fa;
  white-space: nowrap; /* Prevent text wrapping within badges */
  font-size: 0.7em;
}

/* Specific styles for different meta items */
.category {
  background: #e3f2fd !important;
  color: #1976d2 !important;
}

.difficulty.beginner {
  background: #e8f5e8 !important;
  color: #2e7d32 !important;
}

.difficulty.intermediate {
  background: #fff3cd !important;
  color: #856404 !important;
}

.difficulty.advanced {
  background: #f8d7da !important;
  color: #721c24 !important;
}

.duration {
  background: #f3e5f5 !important;
  color: #7b1fa2 !important;
}

.premium-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  font-weight: 600;
}

/* Button styles */
.recommendation-item .btn {
  flex-shrink: 0; /* Prevent button from shrinking */
  white-space: nowrap;
  margin-left: auto; /* Push button to the right */
  align-self: center; /* Center vertically */
}

/* Responsive fixes */
@media (max-width: 768px) {
  .recommendation-item {
    flex-wrap: wrap; /* Allow wrapping on mobile */
    gap: 10px;
  }
  
  .recommendation-details {
    min-width: 100%; /* Take full width on mobile */
  }
  
  .recommendation-item .btn {
    margin-left: 0;
    width: 100%; /* Full width button on mobile */
  }
  
  .recommendation-meta {
    gap: 6px;
  }
  
  .recommendation-meta span {
    font-size: 0.65em;
    padding: 2px 6px;
  }
}

/* Scrollbar styling for recommendations */
.recommendations-list::-webkit-scrollbar {
  width: 4px;
}

.recommendations-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.recommendations-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.recommendations-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/*render activity type badge*/
/* Activity Type Badges */
.activity-type {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 1em;
  font-weight: 600;
  white-space: nowrap;
}

.activity-type.premium-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.activity-type.free-badge {
  background: linear-gradient(135deg, #e8f5e8 0%, #764ba2 100%);
  color: #2e7d32;
}

.activity-type i {
  margin-right: 3px;
  font-size: 1em;
}

/* Update activity meta to accommodate the new badge */
.activity-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.8em;
  color: #6c757d;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.activity-score.passed { 
  color: #28a745; 
  font-weight: 600; 
}

.activity-score.failed { 
  color: #dc3545; 
  font-weight: 600; 
}

/* Make activity items more compact to fit the new badge */
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.2s;
  border: 1px solid #f0f0f0;
}

.activity-item:hover {
  background: #f8f9fa;
  border-color: #e0e0e0;
}

/* Responsive adjustments for activity items */
@media (max-width: 768px) {
  .activity-meta {
    gap: 8px;
  }
  
  .activity-type {
    font-size: 0.65em;
    padding: 2px 6px;
  }
  
  .activity-item {
    padding: 10px;
    gap: 10px;
  }
}

/* Alternative layout for activity items if space is tight */
.activity-details {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*Skill Insights section*/
.skill-insights {
  margin-top: 2rem;
}

.skill-section {
  margin-bottom: 2rem;
}

.skill-section h4 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #333;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.skill-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-3px);
}

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

.skill-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.skill-meta {
  font-size: 0.9rem;
  color: #555;
}

.progress-wrapper {
  margin-top: 0.4rem;
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 8px;
  background: #4f46e5;
}

.show-more {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  cursor: pointer;
}

/*--------Skill filter assessments page--------*/

.skill-filter-banner {
  background: #f0f7ff;
  border: 1px solid #cde4ff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.skill-filter-banner h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #1e40af;
}

.skill-filter-banner p {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: #374151;
}

/*Welcome screen button*/
.btn-secondary {
  background-color: #10B981;
  color: white;
}

.btn-secondary:hover {
  background-color: #10B981;
  transform: translateY(-2px);
}

/*Unlock premium button on wins*/
.premium-lock .btn-premium {
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #1e293b;
  font-weight: 600;
  font-size: 0.8rem;          /* 👈 smaller text */
  padding: 0.35rem 0.9rem;    /* 👈 smaller height & width */
  border: none;
  border-radius: 30px;        /* 👈 slightly smaller rounded corners */
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: pulseGlow 2.5s infinite ease-in-out;
  margin-left: 3rem;
}

.premium-lock .btn-premium:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.6);
}

.premium-lock .btn-premium:active {
  transform: scale(0.98);
}

/* ✨ Pulse Glow Animation */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0px rgba(250, 204, 21, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.9);
  }
  100% {
    box-shadow: 0 0 0px rgba(250, 204, 21, 0.5);
  }
}

/* Optional: Add a subtle shine effect */
.premium-lock .btn-premium::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.premium-lock .btn-premium:hover::after {
  left: 130%;
}

/* 📱 Full Mobile Optimization for Wins Page */
@media (max-width: 768px) {

  /* 📊 Container fixes */
  .dashboard-container,
  .dashboard-grid,
  .dashboard-column,
  .wins-container,
  .page-container {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* 🧩 Grid layouts: convert to single column */
  .dashboard-grid,
  .stats-grid,
  .actions-grid,
  .skill-grid,
  .getting-started-steps {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* 📈 Stat cards and other cards */
  .stat-card,
  .progress-card,
  .recent-activity-card,
  .recommendations-card,
  .skill-gap-card,
  .quick-actions-card,
  .next-goal-card,
  .info-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 1rem;
  }

  /* 📊 Activity list */
  .activity-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
  }

  .activity-meta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* 📚 Recommendations list */
  .recommendations-list {
    max-height: none;
    overflow: visible;
  }

  .recommendation-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 1rem;
  }

  .recommendation-item .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  /* 💡 Skill insights cards */
  .skill-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skill-card {
    padding: 1rem;
    text-align: center;
  }

  /* 🪩 Progress bars and next goal */
  .progress-bar,
  .progress-bar-container,
  .progress-fill {
    width: 100%;
    max-width: 100%;
  }

  /* 📊 Quick actions buttons */
  .action-btn {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1rem;
  }

  /* 📈 Remove side margins causing overflow */
  .premium-lock .btn-premium {
    margin-left: 0;
    margin-top: 1rem;
  }

  /* 📦 Cards general styling */
  .stat-card,
  .skill-card,
  .recommendation-item,
  .activity-item {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
  }
}

/* 📱 Ultra-small devices (<480px) */
@media (max-width: 480px) {
  .welcome-content h1 {
    font-size: 1.4rem;
  }

  .welcome-content p {
    font-size: 0.9rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .skill-header h4 {
    font-size: 1rem;
  }

  .recommendation-title {
    font-size: 0.9rem;
  }
}

/* Premium Assessments Container */
/* Tabs */
.premium-tabs {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.premium-tab {
  padding: 10px 20px;
  font-weight: 500;
  border-radius: 8px 8px 0 0;
  background: #f3f4f6;
  color: #555;
  cursor: pointer;
  transition: 0.3s;
}

.premium-tab:hover {
  background: #e5e7eb;
}

.premium-tab.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 -2px 8px rgba(37, 99, 235, 0.3);
}

/* Tab Content */
.premium-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.premium-tab-content.active {
  display: block;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Premium Assessment Item - Compact 2-line Layout */
.premium-assessment-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 100%; /* prevent overflow */
  overflow: hidden;
}

.premium-assessment-item:hover {
  background: #eef2ff;
  transform: translateY(-2px);
}

/* ---------- First Row: Title + Button ---------- */
.premium-assessment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.premium-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75%;
}

.premium-assessment-item button {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.premium-assessment-item button:hover {
  background: #1e40af;
}

.premium-assessment-item.expired button {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
}

/* ---------- Second Row: Compact Details ---------- */
.premium-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #4b5563;
  margin-top: 2px;
}

.premium-details span {
  white-space: nowrap;
}

/* Status badges */
.premium-details strong {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.premium-details strong.Active {
  background: #dcfce7;
  color: #166534;
}

.premium-details strong.Completed {
  background: #e0f2fe;
  color: #075985;
}

.premium-details strong.Expired {
  background: #fee2e2;
  color: #991b1b;
}

/* Adjust list container to prevent overflow */
.premium-assessments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
  overflow-x: hidden;
}

/*Scroll in my premium section*/
/* 📦 Premium Assessments Section (white card like others) */
.premium-assessments-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  margin-top: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #e5e7eb;
}

/* Header */
.premium-assessments-card .card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tabs container */
.premium-tabs {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.premium-tab {
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 8px 8px 0 0;
  background: #f3f4f6;
  color: #555;
  cursor: pointer;
  transition: 0.3s;
}

.premium-tab:hover {
  background: #e5e7eb;
}

.premium-tab.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 -2px 8px rgba(37, 99, 235, 0.3);
}

/* 📜 Tab content scroll area */
.premium-tab-content {
  max-height: 280px; /* 👈 ~3 records visible */
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

/* Make scrollbar subtle */
.premium-tab-content::-webkit-scrollbar {
  width: 6px;
}
.premium-tab-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}
.premium-tab-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Each assessment card */
.premium-assessment-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  font-size: 0.85rem;
  line-height: 1.4;
  transition: background 0.2s ease, transform 0.2s ease;
}

.premium-assessment-item:hover {
  background: #eef2ff;
  transform: translateY(-2px);
}

/* Title + button on first line */
.premium-assessment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.premium-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75%;
}

/* Button */
.premium-assessment-item button {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.premium-assessment-item button:hover {
  background: #1e40af;
}

.premium-assessment-item.expired button {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
}

/* Second line details */
.premium-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #4b5563;
}

.premium-details span {
  white-space: nowrap;
}

.premium-details strong {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.premium-details strong.Active {
  background: #dcfce7;
  color: #166534;
}

.premium-details strong.Completed {
  background: #e0f2fe;
  color: #075985;
}

.premium-details strong.Expired {
  background: #fee2e2;
  color: #991b1b;
}

/*fix*/

/* 📦 Premium Assessments Section - Final Polished Style */
.premium-assessments-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  margin-top: 20px;
  width: 100%;
  max-width: 900px; /* ✅ Match the width of the card above */
  min-height: 340px; /* ✅ Fix minimum height even if only 1 record */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid #e5e7eb;
  box-sizing: border-box;
}

/* Tabs */
.premium-tabs {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  gap: 8px;
  margin-bottom: 16px;
}

.premium-tab {
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 8px 8px 0 0;
  background: #f3f4f6;
  color: #555;
  cursor: pointer;
  transition: 0.3s;
}

.premium-tab:hover {
  background: #e5e7eb;
}

.premium-tab.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 -2px 8px rgba(37, 99, 235, 0.3);
}

/* 📜 Tab content with fixed height + scroll */
.premium-tab-content {
  flex: 1;
  max-height: 240px; /* ✅ show ~3 assessments */
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.premium-tab-content::-webkit-scrollbar {
  width: 6px;
}
.premium-tab-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}
.premium-tab-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Each assessment row */
.premium-assessment-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  font-size: 0.85rem;
  line-height: 1.4;
  transition: background 0.2s ease, transform 0.2s ease;
}

.premium-assessment-item:hover {
  background: #eef2ff;
  transform: translateY(-2px);
}

/* First line: title + button */
.premium-assessment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.premium-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.premium-assessment-item button {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.premium-assessment-item button:hover {
  background: #1e40af;
}

.premium-assessment-item.expired button {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
}

/* Second line: details */
.premium-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #4b5563;
}

.premium-details span {
  white-space: nowrap;
}

/* Status color labels */
.premium-details strong {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.premium-details strong.Active {
  background: #dcfce7;
  color: #166534;
}

.premium-details strong.Completed {
  background: #e0f2fe;
  color: #075985;
}

.premium-details strong.Expired {
  background: #fee2e2;
  color: #991b1b;
}


/*Responsive mobile*/
/* 📱 Mobile Optimization */
@media (max-width: 768px) {

  /* Give each card more breathing room */
  .premium-assessments-card,
  .level-progress-card,
  .recommended-card,
  .recent-activity-card,
  .quick-actions-card,
  .skill-insight-card {
    border-radius: 16px;
    padding: 16px;
    margin: 16px auto;
    width: 92%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  /* Reduce font sizes slightly */
  h3, h4, h5 {
    font-size: 1rem;
  }

  p, span, .premium-details span, .premium-title {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Space between sections */
  section, .dashboard-section {
    margin-bottom: 20px;
  }

  /* Better spacing between cards */
  .premium-assessment-item {
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  /* Tabs - more compact and rounded */
  .premium-tabs {
    gap: 6px;
    margin-bottom: 14px;
  }

  .premium-tab {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 8px;
  }

  /* Buttons - smaller & consistent */
  .btn, .premium-assessment-item button {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
  }

  /* Card header spacing */
  .card-header h3 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  /* Keep scrollable sections inside fixed height */
  .premium-tab-content {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
  }

  /* Quick actions - stacked nicely */
  .quick-actions-card .action-item {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
  }

  /* Improve spacing between main dashboard cards */
  .dashboard-section > div {
    margin-bottom: 22px;
  }

  /* Optional: reduce top margin of main container */
  .dashboard-container {
    padding-top: 12px;
  }
}

/* 📱 Fix Recent Activity layout only on mobile */
@media (max-width: 480px) {

  /* Card container */
  .recent-activity-card {
    padding: 16px;
    margin: 16px auto;
    border-radius: 16px;
    width: 92%;
  }

  /* List spacing */
  .activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
  }

  /* Individual activity items */
  .activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    border-radius: 12px;
    transition: background 0.2s ease;
  }

  .activity-item:hover {
    background: #eef2ff;
  }

  /* Left side: icon + details */
  .activity-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  .activity-icon.success {
    background: #dcfce7;
    color: #166534;
  }

  .activity-icon.failed {
    background: #fee2e2;
    color: #991b1b;
  }

  .activity-details {
    display: flex;
    flex-direction: column;
  }

  .activity-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
  }

  .activity-date {
    font-size: 0.75rem;
    color: #6b7280;
  }

  /* Right side: score + badge */
  .activity-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .activity-score {
    font-size: 0.9rem;
    font-weight: 600;
  }

  .activity-score.success {
    color: #16a34a;
  }

  .activity-score.failed {
    color: #dc2626;
  }

  .activity-badge {
    font-size: 0.7rem;
    background: linear-gradient(to right, #6366f1, #a855f7);
    color: #fff;
    padding: 3px 6px;
    border-radius: 10px;
  }
}

/* 📱 Global Mobile Card Optimization */
@media (max-width: 480px) {

  /* Make all dashboard sections/cards use nearly full width */
  .premium-assessments-card,
  .level-progress-card,
  .recent-activity-card,
  .recommended-card,
  .skill-insight-card,
  .quick-actions-card,
  .dashboard-card,
  .premium-tab-content,
  .activity-list,
  .recommended-section,
  .in-progress-section {
    width: 95% !important;
    max-width: 95% !important;
    margin: 0 auto 20px auto !important;
    border-radius: 16px;
    padding: 16px !important;
    box-sizing: border-box;
  }

  /* Ensure inner elements don’t shrink */
  .premium-assessment-item,
  .activity-item,
  .recommended-item,
  .insight-card,
  .quick-action-item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0;
  }

  /* Header and title alignment */
  .card-header h3,
  .section-title {
    font-size: 1rem;
    text-align: left;
  }

  /* Buttons & tabs slightly smaller */
  .btn,
  .premium-assessment-item button,
  .premium-tab {
    width: auto;
    min-width: 90px;
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  /* Improve spacing between sections */
  section, .dashboard-section, .dashboard-card {
    margin-bottom: 22px !important;
  }

  /* Remove unnecessary side margins or paddings on container */
  .dashboard-container,
  main,
  .main-content {
    padding: 0 !important;
  }
}

@media (max-width: 480px) {

  /* 🛠️ Fix horizontal scroll for activity section */
  .recent-activity-card,
  .activity-list,
  .activity-item {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
  }

  /* Activity list */
  .activity-list {
    padding: 0 8px;
    margin: 0;
    overflow-x: hidden !important;
  }

  /* Fix individual activity card layout */
  .activity-item {
    display: flex;
    flex-direction: column;     /* ✅ Stack everything vertically on mobile */
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 12px;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  /* Icon positioning */
  .activity-icon {
    align-self: flex-start;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 4px;
  }

  /* Stack title and date nicely */
  .activity-info {
    width: 100%;
    word-break: break-word;
  }

  .activity-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .activity-date {
    font-size: 0.8rem;
    color: #6b7280;
  }

  /* Score and badge side by side */
  .activity-meta {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 4px;
    font-size: 0.85rem;
  }

  .activity-score {
    font-weight: 600;
  }

  .activity-type {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {

  /* Container for tabs */
  .premium-tabs,
  .premium-assessments-card .tab-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 6px;
    flex-wrap: nowrap; /* ✅ Prevent them from wrapping into 2 lines */
    margin-bottom: 14px;
  }

  /* Each tab button */
  .premium-tab,
  .premium-assessments-card .tab {
    flex: 1; /* ✅ Make each tab share equal width */
    text-align: center;
    white-space: nowrap; /* ✅ Prevent text from breaking */
    font-size: 0.85rem;
    padding: 8px 0;
    border-radius: 10px;
    min-width: 0;
  }

  /* Optional: reduce padding globally to save width */
  .premium-tab.active {
    font-weight: 600;
  }
}

/* 🛠️ Recommended Section - Prevent horizontal scroll */
.recommendations-card {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Make sure the list never exceeds the parent */
.recommendations-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Recommended item styling (if flex/grid is used) */
.recommendations-list > * {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Optional: if using horizontal cards */
.recommendations-list::-webkit-scrollbar {
  display: none; /* hide scrollbar if accidentally added */
}

/* Fix for any rogue element */
.recommendations-card * {
  max-width: 100%;
  box-sizing: border-box;
}

/*Assessments page filter*/

.advanced-filters {
  display: flex;
  gap: 1rem;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  min-width: 180px;
}

.filter-select:focus {
  outline: none;
  border-color: #007bff;
}

/*-------------------------------------*/
/* Make every card equal height */
.assessment-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Content wrapper takes full height */
.assessment-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  padding-bottom: 1rem;
}

/* Title spacing */
.assessment-content h3 {
  min-height: 50px; /* ensures 2 lines space */
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Description spacing */
.assessment-content p {
  min-height: 80px;  /* forces consistent card height */
  max-height: 80px;  /* truncates long text */
  overflow: hidden;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Price & tag row stays fixed size */
.assessment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin-bottom: 1rem;
}

/* 🧩 Button always sticks to bottom */
.assessment-button {
  margin-top: auto;
  display: block;
  width: 100%;
}

/*------------------------------------------------------*/
/* 🔥 Trending Badge */
/* 🔥 Trending Badge */
/* The card just needs to be positioned */
/* ▶ Variant: put the badge on the RIGHT if ever needed */


/* Slightly smaller on narrow screens */
@media (max-width: 560px){
  .trending-badge{ font-size:.75rem; padding:5px 10px; }
}

/* Card container */
.assessment-card {
  position: relative;
  overflow: hidden;
}

/* 🔥 Trending Badge */
.trending-badge { position: absolute; top: 12px; left: -12px; background: linear-gradient(135deg, #ff5722, #ff9800); color: #fff; padding: 6px 14px; font-size: 0.85rem; font-weight: 600; border-radius: 0 8px 8px 0; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); transform: rotate(-3deg); z-index: 5; }

/* Optional icon styling */


/* ✅ Subtle folded curl (refined version) */


/* Hover effect (optional – looks premium) */
.trending-badge:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

/*------------------------------------------------------------*/
/* 📊 Assessment Info Section */
.assessment-info {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 16px;
  background: #f9f9fc;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #333;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.info-item i {
  color: #6366f1;
  font-size: 0.9rem;
}

/* 🎯 Difficulty colors */
.difficulty-beginner span { color: #4caf50; }
.difficulty-intermediate span { color: #ff9800; }
.difficulty-advanced span { color: #e53935; }
.difficulty-expert span { color: #9c27b0; }


/*----------------------------------------------------*/
.stat-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.stat-card .stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 4px;
  color: #4f46e5;
}
