/* Inter Font Family - Optimized with font-display: swap */
@font-face {
    font-family: 'Inter';
    src: url('../assets/Inter/static/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/Inter/static/Inter_18pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/Inter/static/Inter_18pt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/Inter/static/Inter_18pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/Inter/static/Inter_18pt-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/Inter/static/Inter_18pt-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root{
  /* Primary Colors - Upwork Brand Identity */
  --primary-black: #ffffff;
  --traffic-green: #14a800;
  --traffic-red: #ef4444;
  --traffic-yellow: #f59e0b;
  --traffic-blue: #3b82f6;
  --traffic-gray: #475569;
  --shiny-cta-bg: #14a800;
  --shiny-cta-bg-subtle: #118f00;
  --shiny-cta-fg: #ffffff;
  --shiny-cta-highlight: #14a800;
  --shiny-cta-highlight-subtle: rgba(20, 168, 0, 0.1);
  
  /* Background Colors */
  --bg-dark: #f9fbf9;
  --bg-dark-hover: #f2f7f2;
  --bg-dark-gradient-start: #ffffff;
  --bg-dark-gradient-end: #f9fbf9;
  
  /* Text Colors */
  --color-white: #001e00;
  --color-white-alpha-70: rgba(0, 30, 0, 0.7);
  --color-white-alpha-90: rgba(0, 30, 0, 0.9);
  
  /* White Alpha Values */
  --white-alpha-05: rgba(0, 30, 0, 0.03);
  --white-alpha-10: rgba(0, 30, 0, 0.05);
  --white-alpha-15: rgba(0, 30, 0, 0.08);
  --white-alpha-20: rgba(0, 30, 0, 0.12);
  --white-alpha-30: rgba(0, 30, 0, 0.2);
  --white-alpha-40: rgba(0, 30, 0, 0.3);
  
  /* Logout Button Colors */
  --logout-red: #ef4444;
  --logout-red-alpha-10: rgba(239, 68, 68, 0.08);
  --logout-red-alpha-20: rgba(239, 68, 68, 0.15);
  --logout-red-alpha-30: rgba(239, 68, 68, 0.25);
  
  /* Accent Colors */
  --accent-purple: #14a800;
  --lesson-green: #14a800;
  --lesson-green-alpha-15: rgba(20, 168, 0, 0.08);
  --lesson-green-alpha-20: rgba(20, 168, 0, 0.12);
  --lesson-green-alpha-30: rgba(20, 168, 0, 0.18);
  --test-yellow-alpha-20: rgba(245, 158, 11, 0.1);
  --test-yellow-alpha-30: rgba(245, 158, 11, 0.15);
  
  /* Fonts */
  --font-family: 'Inter', sans-serif;
  --font-heading: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  
  /* Responsive spacing and sizing */
  --spacing-xs: clamp(0.5rem, 0.5vw, 0.75rem);
  --spacing-sm: clamp(0.625rem, 1vw, 1rem);
  --spacing-md: clamp(1.25rem, 1.75vw, 1.75rem);
  --spacing-lg: clamp(1.5rem, 2.25vw, 2.25rem);
  --spacing-xl: clamp(2rem, 3vw, 3rem);
  --spacing-2xl: clamp(2.5rem, 4vw, 4rem);
  
  /* Responsive font sizes */
  --font-xs: clamp(0.75rem, 0.8vw, 0.875rem);
  --font-sm: clamp(0.875rem, 1vw, 1rem);
  --font-md: clamp(1rem, 1.125vw, 1.125rem);
  --font-lg: clamp(1.125rem, 1.25vw, 1.25rem);
  --font-xl: clamp(1.25rem, 1.5vw, 1.5rem);
  --font-2xl: clamp(1.5rem, 1.875vw, 1.875rem);
  --font-3xl: clamp(1.875rem, 2.25vw, 2.25rem);
  
  /* Responsive border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Icon and Avatar Sizes */
  --icon-size-sm: 18px;
  --icon-size-md: 24px;
  --icon-size-lg: 32px;
  --avatar-size-sm: 40px;
  --avatar-size-md: 50px;
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-transform: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bg: background-color 0.3s ease;
  --transition-opacity: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  
  /* Box Shadows - Upwork style clean, light shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 1px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.06);
  
  /* Hover Effects */
  --hover-lift: translateY(-2px);
  --hover-lift-sm: translateY(-1px);
  
  /* Borders - Upwork clean light grey */
  --border-light: 1px solid #e4ebe4;
  --border-medium: 1px solid #d4ddd4;
  --border-thick: 2px solid #e4ebe4;
  
  /* Container widths */
  --container-sm: min(90%, 50rem);
  --container-md: min(90%, 75rem);
  --container-lg: min(95%, 87.5rem);
  
  /* Z-index layers */
  --z-dropdown: 1000;
  --z-mobile-menu-toggle: 1001;
  --z-mobile-overlay: 9998;
  --z-mobile-sidebar: 9999;
  --z-admin-overlay: 5000;
  --z-admin-panel: 5001;
  --z-admin-modal: 5002;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::-webkit-scrollbar {
  display: none;
}

*::-webkit-scrollbar-button {
  display: none;
}

*::-webkit-scrollbar-corner {
  display: none;
}

*::-webkit-scrollbar-thumb {
  display: none;
}

*::-webkit-scrollbar-track {
  display: none;
}

html {
  font-size: 100%;
}

body {
  font-family: var(--font-family);
  background-color: #fcfdfc;
  background-image: radial-gradient(#e4ebe4 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 100vh;
  font-size: var(--font-md);
  color: #001e00;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #001e00;
    font-size: var(--font-xl);
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 24px;
    min-height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e4ebe4;
    z-index: 990;
    transition: all 0.3s ease;
}

.logo img {
    width: clamp(7.5rem, 11vw, 11rem);
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover img {
    transform: scale(1.02);
}

#timer {
    display: none;
    color: var(--traffic-yellow);
    font-size: var(--font-md);
    font-family: var(--font-heading);
    font-weight: 700;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    align-items: center;
    gap: 8px;
}

/* Lessons section */
.lessons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 1.5vw, 1.25rem);
    margin-top: clamp(3rem, 6vh, 5rem);
    width: min(90%, 42rem);
    padding: var(--spacing-md);
    border-radius: 12px;
    margin-inline: auto;
    background: #ffffff;
    border: 1px solid #e4ebe4;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.item {
    width: 100%;
    padding: 1.125rem 1.375rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-family);
    color: #001e00;
    display: flex;
    align-items: center;
    gap: 1.125rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    background: #f9fbf9;
    border: 1px solid #e4ebe4;
}

.item.xatolar-ustida-ishlash {
    grid-column: span 2;
}

.item:hover {
    transform: translateY(-6px);
    border-color: #108a00;
    box-shadow: 0 20px 30px rgba(16, 138, 0, 0.06);
}

.item:active {
    transform: scale(0.97);
}

.item > span {
    flex-grow: 1;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    text-transform: none;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.item > img {
    width: 2.25rem;
    height: 2.25rem;
    display: block;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.item:hover > img {
    transform: scale(1.05);
}

.darslar {
    border-left: 3px solid #14a800;
}
.darslar:hover {
    border-color: #14a800;
    background: #f2f7f2;
}

.oraliq {
    border-left: 3px solid #f59e0b;
}
.oraliq:hover {
    border-color: #f59e0b;
    background: #fcfcf7;
}

.testlar {
    border-left: 3px solid #ef4444;
}
.testlar:hover {
    border-color: #ef4444;
    background: #fff8f8;
}

.imtihon {
    border-left: 3px solid #64748b;
}
.imtihon:hover {
    border-color: #64748b;
    background: #f8fafc;
}

/* Back Button */
.back-button {
    position: fixed;
    bottom: var(--spacing-lg);
    left: 2%;
    background: #ffffff;
    border-radius: 30px;
    border: 1px solid #e4ebe4;
    color: #001e00;
    padding: 0;
    margin-top: 0;
    cursor: pointer;
    width: clamp(2.75rem, 3.5vw, 3.25rem);
    height: clamp(2.75rem, 3.5vw, 3.25rem);
    font-family: var(--font-family);
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: var(--font-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.back-arrow {
    width: 20px;
    height: 20px;
    opacity: 0.85;
    transition: transform 0.3s ease;
    filter: brightness(0);
    flex-shrink: 0;
}

.back-text {
    display: inline-block;
    width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0;
    margin-left: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-button:hover {
    background: #f9fbf9;
    border-color: #14a800;
    color: #14a800;
    transform: translateY(-1px);
    width: auto;
    padding: 0 18px;
    border-radius: 20px;
}

.back-button:hover .back-arrow {
    opacity: 1;
    transform: translateX(-3px);
}

.back-button:hover .back-text {
    width: auto;
    opacity: 1;
    font-size: var(--font-sm);
    margin-left: var(--spacing-xs);
}

/* Chapter Buttons */
.chapter-button,
.Oraliq-chapter-button {
    width: 45%;
    font-family: var(--font-family);
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    cursor: pointer;
    color: #001e00;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: var(--spacing-md) var(--spacing-lg);
    position: relative;
    background: #f9fbf9;
    border: 1px solid #e4ebe4;
}

.chapter-button:nth-child(1),
.Oraliq-chapter-button:nth-child(1) {
    border-left: 4px solid #14a800;
}
.chapter-button:nth-child(1):hover,
.Oraliq-chapter-button:nth-child(1):hover {
    border-color: #14a800;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.chapter-button:nth-child(2),
.Oraliq-chapter-button:nth-child(2) {
    border-left: 4px solid #f59e0b;
}
.chapter-button:nth-child(2):hover,
.Oraliq-chapter-button:nth-child(2):hover {
    border-color: #f59e0b;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.chapter-button:nth-child(3),
.Oraliq-chapter-button:nth-child(3) {
    border-left: 4px solid #ef4444;
}
.chapter-button:nth-child(3):hover,
.Oraliq-chapter-button:nth-child(3):hover {
    border-color: #ef4444;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* Chapter Button Arrow */
.chapter-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: all 0.3s ease;
    color: #001e00;
    stroke: #001e00;
    position: absolute;
    right: 20px;
}

.chapter-button:hover .chapter-arrow,
.Oraliq-chapter-button:hover .chapter-arrow {
    opacity: 1;
    transform: translateX(4px);
    color: #14a800;
}

/* Chapter Section */
.chapters {
    min-height: 80vh;
    width: 90vw;
    padding-top: 4vh;
    gap: var(--spacing-md);
    margin-inline: auto;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    position: relative;
    align-content: start;
}

/* Topics Grid */
.topics {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(clamp(13rem, 16vw, 16rem), 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-md);
    width: var(--container-md);
    margin: 0 auto;
    min-height: 80vh;
}

.topic-item {
    background: #f9fbf9;
    border: 1px solid #e4ebe4;
    border-radius: 12px;
    padding: var(--spacing-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(6.5rem, 8vh, 7.5rem);
}

.topic-item:hover {
    transform: translateY(-2px);
    border-color: #14a800;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.topic-item h3 {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 600;
    color: #001e00;
    margin: 0;
    font-family: var(--font-family);
    text-align: center;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.topic-item:hover h3 {
    color: #14a800;
}

/* Question Interface */
.question-interface {
    display: none;
    width: var(--container-lg);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 85vh;
}

.question-content {
    background: #ffffff;
    border: 1px solid #e4ebe4;
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--spacing-xl);
    align-items: stretch;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.question-answers {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    justify-content: flex-start;
}

.question {
    margin-bottom: var(--spacing-sm);
    color: #001e00;
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    font-family: var(--font-family);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.question img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: var(--spacing-md);
}

.question-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9fbf9;
    border-radius: 12px;
    border: 1px solid #e4ebe4;
    padding: var(--spacing-sm);
    overflow: hidden;
}

.question-image img {
    max-width: 100%;
    max-height: clamp(15rem, 28vh, 20rem);
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid #e4ebe4;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #001e00;
    font-size: clamp(0.9rem, 1.05vw, 1rem);
    line-height: 1.4;
}

.answer:hover {
    background: #f2f7f2;
    border-color: #d4ddd4;
}

.answer.selected {
    background: rgba(20, 168, 0, 0.05);
    border-color: #14a800;
    box-shadow: 0 0 12px rgba(20, 168, 0, 0.1);
    color: #001e00;
}

.answer.correct-answer {
    background: rgba(20, 168, 0, 0.08) !important;
    border-color: #14a800 !important;
    color: #001e00 !important;
    font-weight: 600;
    animation: correctPulse 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.answer.incorrect-answer {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: #ef4444 !important;
    color: #001e00 !important;
    animation: incorrectShake 0.4s ease-in-out forwards;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.option-label {
    background: #f2f7f2;
    border: 1px solid #e4ebe4;
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 12px;
    font-weight: 700;
    min-width: 38px;
    text-align: center;
    font-size: 13px;
    font-family: var(--font-heading);
    color: #001e00;
    transition: all 0.2s ease;
}

.answer:hover .option-label {
    border-color: #14a800;
    color: #14a800;
}

.answer.selected .option-label {
    background: #14a800;
    border-color: #14a800;
    color: #ffffff;
}

.answer.correct-answer .option-label {
    background: #14a800 !important;
    border-color: #14a800 !important;
    color: #ffffff !important;
}

.answer.incorrect-answer .option-label {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

.test-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
    justify-content: center;
}

.nav-box {
    width: 34px;
    height: 34px;
    background: #ffffff;
    border: 1px solid #e4ebe4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #001e00;
    font-family: var(--font-heading);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 13px;
    font-weight: 600;
}

.nav-box:hover {
    border-color: #14a800;
    color: #14a800;
    transform: scale(1.08);
}

.nav-box.active {
    background: rgba(20, 168, 0, 0.05);
    border-color: #14a800;
    color: #14a800;
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(20, 168, 0, 0.08);
}

.nav-box.correct {
    background: rgba(20, 168, 0, 0.12) !important;
    border-color: #14a800 !important;
    color: #001e00 !important;
}

.nav-box.incorrect {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: #ef4444 !important;
    color: #b91c1c !important;
}

.question-controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.question-controls button {
    padding: 10px 24px;
    background: #ffffff;
    color: #001e00;
    border: 1px solid #e4ebe4;
    border-radius: 8px;
    font-family: var(--font-family);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.nav-arrow {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    transition: transform 0.2s ease;
    color: #001e00;
    stroke: #001e00;
}

.question-controls button:hover:not(:disabled) {
    background: #f2f7f2;
    border-color: #14a800;
    color: #14a800;
    transform: translateY(-1px);
}

.question-controls button:disabled {
    background: #f9fbf9;
    border-color: #e4ebe4;
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.question-controls button:hover:not(:disabled) .nav-arrow {
    transform: translateX(2px);
    color: #14a800;
    stroke: #14a800;
}

.question-controls button#prev:hover:not(:disabled) .nav-arrow {
    transform: translateX(-2px);
}

.result {
    text-align: center;
    font-size: var(--font-md);
    font-weight: 600;
    margin: var(--spacing-sm) 0;
    min-height: clamp(1.875rem, 2.25vh, 2.25rem);
    color: #14a800;
}

.percentage-display {
    text-align: center;
    font-size: var(--font-sm);
    font-weight: 600;
    margin: var(--spacing-md) auto;
    padding: 8px 16px;
    background: #f2f7f2;
    border: 1px solid #e4ebe4;
    border-radius: 20px;
    color: #001e00;
    width: fit-content;
}

.percentage-display.low-percentage {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.hidden {
    display: none !important;
}

/* Test Options Interface */
.test-options-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: clamp(22rem, 45vh, 26rem);
}

.test-options {
    text-align: center;
    background: #ffffff;
    border: 1px solid #e4ebe4;
    border-radius: 16px;
    padding: var(--spacing-xl) var(--spacing-lg);
    width: var(--container-sm);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.test-options h2 {
    color: #001e00;
    font-family: var(--font-family);
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
    margin-bottom: var(--spacing-lg);
}

.test-options p {
    color: #475569;
    font-size: var(--font-sm);
    margin-bottom: 20px;
}

.test-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.test-option-btn {
    background: #ffffff;
    border: 1px solid #e4ebe4;
    color: #001e00;
    border-radius: 10px;
    padding: var(--spacing-md) var(--spacing-lg);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--font-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.test-option-btn:nth-child(1) {
    border-left: 4px solid #14a800;
}
.test-option-btn:nth-child(1):hover {
    border-color: #14a800;
    background: #f2f7f2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.test-option-btn:nth-child(2) {
    border-left: 4px solid #ef4444;
}
.test-option-btn:nth-child(2):hover {
    border-color: #ef4444;
    background: #fff8f8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.test-option-btn.imtihon-start {
    border-left: 4px solid #f59e0b;
}
.test-option-btn.imtihon-start:hover {
    border-color: #f59e0b;
    background: #fcfcf7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.test-option-btn small {
    font-size: 12px;
    color: #475569;
    font-weight: normal;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 30, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #ffffff;
    border: 1px solid #e4ebe4;
    border-radius: 16px;
    padding: var(--spacing-lg);
    text-align: center;
    width: clamp(20rem, 28vw, 24rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-title {
    color: #001e00;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: clamp(1.35rem, 1.6vw, 1.5rem);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.modal-subtitle {
    color: #475569;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--font-md);
    margin: var(--spacing-sm) 0 var(--spacing-sm) 0;
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-sm) auto;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.5rem, 1.8vw, 2rem);
    font-weight: 700;
    color: #001e00;
    font-family: var(--font-heading);
}

.modal-stats {
    display: flex;
    justify-content: space-around;
    margin: var(--spacing-md) 0;
    gap: var(--spacing-md);
    width: 100%;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: clamp(1.15rem, 1.35vw, 1.35rem);
    font-weight: 700;
    color: #001e00;
    font-family: var(--font-heading);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 11px;
    color: #475569;
    font-family: var(--font-family);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.modal-button {
    background: #14a800;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: var(--font-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: var(--spacing-xs);
    width: 100%;
    box-shadow: 0 2px 8px rgba(20, 168, 0, 0.15);
}

.modal-button:hover {
    background: #118f00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 168, 0, 0.25);
}

/* Responsive Design for Question Layout */
@media (max-width: 48em) {
    .question-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .question-image {
        order: -1;
    }
    
    .question-image img {
        max-height: clamp(12rem, 16vh, 14rem);
    }
}

/* Home Button */
.home-button {
    position: absolute;
    bottom: var(--spacing-lg);
    right: 5%;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e4ebe4;
    color: #001e00;
    padding: 8px 16px;
    margin-top: var(--spacing-lg);
    font-family: var(--font-family);
    font-weight: 600;
    cursor: pointer;
    width: clamp(8rem, 11vw, 11rem);
    transition: all 0.3s ease;
}

.home-button:hover {
    background: #f2f7f2;
    border-color: #14a800;
    color: #14a800;
    transform: translateY(-1px);
}

/* Footer Styles */
.site-footer {
    background-color: #f9fbf9;
    border-top: 1px solid #e4ebe4;
    padding: 24px 40px;
    margin-top: auto; /* Pushes the footer strictly to the bottom */
    width: 100%;
}

.footer-content {
    max-width: var(--container-md);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright,
.footer-author {
    color: #5e6e5e;
    font-size: 13px;
    margin: 0;
    font-family: var(--font-family);
    line-height: 1.5;
}

.brand-name {
    font-weight: 700;
    color: #5e6e5e;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Share Toast Notification and Button Styles */
.upwork-btn-secondary {
    background: #ffffff;
    color: #001e00;
    border: 1px solid #e4ebe4;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: visible;
}

.upwork-btn-secondary::before {
    content: "↗";
    font-size: 1.1em;
    font-weight: bold;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.upwork-btn-secondary:hover {
    background: #ffffff;
    border-color: #14a800;
    color: #14a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 168, 0, 0.05);
}

.upwork-btn-secondary:hover::before {
    transform: rotate(15deg) scale(1.1);
}

.upwork-btn-secondary:active {
    transform: translateY(0) scale(0.97);
}

/* Success Copied Morph State */
.upwork-btn-secondary.success-copied {
    background: #eaf7ea !important;
    border-color: #14a800 !important;
    color: #14a800 !important;
    animation: popPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.upwork-btn-secondary::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 8px;
    border: 2px solid #14a800;
    opacity: 0;
    pointer-events: none;
}

.upwork-btn-secondary.success-copied::after {
    animation: rippleEffect 0.5s ease-out;
}

@keyframes popPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes rippleEffect {
    0% {
        inset: -1px;
        opacity: 0.8;
    }
    100% {
        inset: -8px;
        opacity: 0;
    }
}

.upwork-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #ffffff;
    border: 1px solid #e4ebe4;
    border-left: 4px solid #14a800;
    border-radius: 8px;
    padding: 12px 24px;
    color: #001e00;
    font-weight: 600;
    font-size: var(--font-sm);
    box-shadow: 0 4px 16px rgba(0, 30, 0, 0.08);
    z-index: 10000;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: none;
}
.upwork-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Empty Error State Layout */
.empty-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e4ebe4;
    max-width: 500px;
    margin: 40px auto;
    box-shadow: 0 12px 40px rgba(0, 30, 0, 0.04);
}

.empty-error-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #001e00;
    margin: 0 0 12px;
}

.empty-error-state p {
    font-size: 14px;
    color: #5e6e5e;
    margin: 0 0 24px;
}

.empty-error-state .upwork-btn-primary {
    background: #14a800;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.empty-error-state .upwork-btn-primary:hover {
    background: #118f00;
    transform: translateY(-1px);
}