/* =========================================================
   SSC MOCK TEST WEBSITE - CLEAN & CORRECTED CSS
   All existing class names are preserved.
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f8fc;
    color: #09183d;
    overflow-x: hidden;
}

button {
    font-family: inherit;
    cursor: pointer;
}

button:hover {
    transform: none;
}

a {
    text-decoration: none;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    min-height: 68px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3.5%;
    border-bottom: 1px solid #eeeeee;
    position: relative;
    z-index: 10000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 35px;
}

.logo h2 {
    font-size: 26px;
}

.logo h2 span {
    color: #175fe6;
}

.logo p {
    font-size: 10px;
    color: #555;
    margin-top: 2px;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    color: #09183d;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

nav a:hover {
    color: #175fe6;
}

nav .active {
    color: #175fe6;
    border-bottom: 2px solid #175fe6;
    padding-bottom: 20px;
}

nav small {
    font-size: 12px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.search {
    background: transparent;
    border: none;
    font-size: 25px;
    color: #09183d;
    padding: 5px;
}

.search:hover {
    color: #175fe6;
}

.login,
.register {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.login {
    background: white;
    color: #175fe6;
    border: 1px solid #175fe6;
}

.login:hover {
    background: #eef4ff;
    transform: translateY(-2px);
}

.register {
    background: #175fe6;
    color: white;
    border: 1px solid #175fe6;
}

.register:hover {
    background: #124dcc;
    transform: translateY(-2px);
}

/* =========================
   HERO
========================= */
.hero {
    min-height: 480px;
    display: flex;
    background:
        radial-gradient(circle at 65% 45%, #273ca3, transparent 30%),
        linear-gradient(115deg, #061542, #101e6b);
    color: white;
    padding-left: 10%;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 100px;
    left: 25px;
    top: 40px;
    background-image: radial-gradient(#7784bf 1.5px, transparent 1.5px);
    background-size: 13px 13px;
    opacity: .4;
}

.hero-left {
    width: 45%;
    padding-top: 38px;
    position: relative;
    z-index: 3;
}

.trust {
    display: inline-block;
    border: 1px solid #6676b7;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 10px;
    margin-bottom: 18px;
}

.hero-left h1 {
    font-size: 54px;
    line-height: 1.02;
    margin-bottom: 18px;
}

.hero-left h1 span {
    color: #ffc400;
}

.hero-text {
    max-width: 470px;
    font-size: 15px;
    line-height: 1.6;
    color: #e1e6f8;
    margin-bottom: 18px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.hero-tags span {
    border: 1px solid #5367a6;
    border-radius: 20px;
    padding: 7px 11px;
    font-size: 9px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.start-test {
    background: #ffc400;
    border: none;
    border-radius: 6px;
    padding: 13px 25px;
    font-size: 13px;
    font-weight: bold;
    color: #111;
}

.start-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 196, 0, .25);
}

.start-test b {
    margin-left: 15px;
}

.explore {
    background: transparent;
    border: 1px solid #8b96bf;
    color: white;
    border-radius: 6px;
    padding: 13px 25px;
    font-weight: bold;
}

.explore:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.08);
}

.students {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.students strong {
    color: #ffc400;
    font-size: 14px;
}

.students p {
    color: #e0e5f6;
}

.avatars {
    display: flex;
}

.avatars span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dce2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    margin-right: -5px;
}

/* =========================
   HERO RIGHT
========================= */
.hero-right {
    width: 55%;
    height: 480px;
    position: relative;
}

.girl {
    position: absolute;
    width: 470px;
    height: 380px;
    left: -50px;
    bottom: 0;
    z-index: 2;
}

.girl img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

/* =========================
   AI CARD
========================= */
.ai-card {
    position: absolute;
    left: 487px;
    top: 280px;
    width: 165px;
    background: white;
    color: #101b3d;
    padding: 16px;
    border-radius: 12px;
    z-index: 5;
    box-shadow: 0 15px 30px rgba(0,0,0,.25);
}

.ai-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1px;
}

.robot {
    font-size: 33px;
}

.ai-heading h3 {
    color: #165fe6;
    font-size: 12px;
}

.ai-card p {
    font-size: 10px;
    line-height: 1.6;
    color: #4b5568;
    margin-bottom: 2px;
}

.ai-card button {
    background: rgb(255, 241, 241);
    border: 2px solid #0f3c91;
    color: #165fe6;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
}

.ai-card button:hover {
    transform: translateY(-2px);
    background: #eef4ff;
}

/* =========================
   PROGRESS CARD
========================= */
.progress-card {
    position: absolute;
    right: 8px;
    top: 10px;
    width: 175px;
    background: rgba(13, 29, 75, .9);
    border: 1px solid #4a5d9a;
    border-radius: 12px;
    padding: 17px;
    z-index: 6;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

.progress-title p {
    font-size: 10px;
    margin-bottom: 3px;
}

.progress-title h3 {
    font-size: 12px;
}

.progress-circle {
    width: 63px;
    height: 63px;
    border-radius: 50%;
    border: 7px solid #8b5cf6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: bold;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 10px 0;
    font-size: 13px;
    color: #ccd4eb;
}

.progress-item p {
    flex: 1;
}

.progress-item b {
    color: white;
}

.report {
    width: 100%;
    border: none;
    background: #214de1;
    color: white;
    padding: 9px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 3px;
}

.report:hover {
    transform: translateY(-2px);
    background: #173db8;
}

/* =========================
   FEATURE BAR
========================= */
.features {
    width: 94%;
    margin: -20px auto 0;
    position: relative;
    z-index: 7;
    background: white;
    border-radius: 14px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.feature {
    display: flex;
    gap: 9px;
    padding: 8px;
    border-right: 1px solid #e5e7ed;
}

.feature:last-child {
    border-right: none;
}

.feature-icon {
    min-width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
}

.blue { background: #e9f1ff; }
.green { background: #e6f8ee; }
.pink { background: #fff0f5; }
.purple { background: #f0ebff; }
.orange { background: #fff1e7; }
.dark { background: #e8eaff; }

.feature h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.feature p {
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}

/* =========================
   AI EXPERIENCE
========================= */
.ai-experience {
    width: 92%;
    margin: 20px auto;
    background: linear-gradient(100deg, #151969, #24227b);
    border-radius: 11px;
    padding: 15px 22px;
    display: flex;
    align-items: center;
    gap: 17px;
    color: white;
}

.ai-logo {
    font-size: 32px;
}

.ai-content {
    flex: 1;
}

.ai-content > span {
    background: #ffc400;
    color: #111;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 7px;
    font-weight: bold;
}

.ai-content h2 {
    font-size: 15px;
    margin: 5px 0 3px;
}

.ai-content p {
    font-size: 9px;
    color: #d5daf0;
}

.ai-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.ai-feature > div {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-feature h3 {
    font-size: 10px;
}

.ai-feature p {
    color: #ccd2ed;
    font-size: 8px;
    margin-top: 3px;
}

.try-ai {
    background: linear-gradient(90deg, #5550e5, #bb42d8);
    color: white;
    border: none;
    padding: 10px 17px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
}

.try-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(85,80,229,.3);
}

/* =========================
   MOCK TESTS
========================= */
.mock-section {
    width: 92%;
    margin: 28px auto;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 17px;
}

.section-heading h2 {
    font-size: 20px;
}

.section-heading p {
    display: inline-block;
    color: #667085;
    font-size: 15px;
    margin-left: 8px;
}

.section-heading button {
    background: white;
    border: 1px solid #165fe6;
    color: #165fe6;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 15px;
}

.section-heading button:hover {
    transform: translateY(-2px);
    background: #eef4ff;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.mock-card {
    background: white;
    border: 1px solid #e4e7ed;
    border-radius: 10px;
    padding: 17px;
    position: relative;
    transition: .25s;
}

.mock-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.popular {
    position: absolute;
    top: -9px;
    left: 70px;
    background: #fff0ea;
    color: #ff6333;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
}

.mock-icon {
    width: 43px;
    height: 43px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-bottom: 12px;
}

.mock-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.mock-card p {
    color: #667085;
    font-size: 13px;
    margin-bottom: 6px;
}

.mock-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 17px;
}

.mock-bottom span {
    color: #066132;
    font-size: 13px;
}

.mock-bottom button {
    background: white;
    color: #165fe6;
    border: 1px solid #165fe6;
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.mock-bottom button:hover {
    transform: translateY(-2px);
    background: #eef4ff;
}

/* =========================
   STATS
========================= */
.stats {
    width: 92%;
    margin: 20px auto 40px;
    padding: 18px;
    background: white;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

.stats > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-right: 1px solid #9baee9;
}

.stats > div:last-child {
    border-right: none;
}

.stats > div > span {
    width: 40px;
    height: 40px;
    background: #f0ebff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.stats h2 {
    font-size: 17px;
}

.stats p {
    color: #667085;
    font-size: 13px;
    margin-top: 3px;
}

/* =========================
   EXAM SERIES
========================= */
.exam-series {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px;
    background: #53eefc;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.exam-series h2 {
    font-size: 34px;
    font-weight: 800;
    color: #189ac2;
    margin-bottom: 25px;
    transition: .3s ease;
}

.exam-series h2:hover {
    background: rgba(84,255,42,.767);
    transform: translateX(8px);
    cursor: pointer;
}

.series-line {
    font-size: 20px;
    font-weight: 600;
    color: #334155;
    line-height: 1.8;
    margin: 8px 0;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color .3s ease, background .3s ease, transform .3s ease;
}

.series-line:hover {
    color: #2563eb;
    background: #acdb8d;
    transform: translateX(8px);
    cursor: pointer;
}

.explore-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fafafa;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: color .3s ease, background .3s ease, transform .3s ease, box-shadow .3s ease;
}

.explore-btn:hover {
    background: #45ad00;
    transform: translate(8px, -3px);
    box-shadow: 0 8px 20px rgba(37,99,235,.3);
}

/* =========================
   MOCK TESTS DROPDOWN
========================= */
.dropdown {
    position: relative;
}

.drop-btn {
    background: transparent;
    border: none;
    color: #09183d;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0;
}

.drop-btn span {
    font-size: 13px;
    margin-left: 4px;
    transition: .3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 48px;
    left: -20px;
    width: 280px;
    background: white;
    border-radius: 14px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .drop-btn span,
.dropdown:focus-within .drop-btn span {
    display: inline-block;
    transform: rotate(180deg);
}

.exam-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border-radius: 10px;
    color: #09183d;
    margin-bottom: 4px;
    transition: all .25s ease;
}

.exam-option > span {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eef4ff;
    font-size: 20px;
    transition: .25s ease;
}

.exam-option div {
    flex: 1;
}

.exam-option strong {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}

.exam-option small {
    display: block;
    font-size: 9px;
    color: #7b8497;
}

.exam-option b {
    color: #175fe6;
    font-size: 18px;
    opacity: 0;
    transform: translateX(-5px);
    transition: .25s ease;
}

.exam-option:hover {
    background: #eef4ff;
    transform: translateX(5px);
    color: #175fe6;
}

.exam-option:hover > span {
    background: #175fe6;
    transform: scale(1.08);
}

.exam-option:hover b {
    opacity: 1;
    transform: translateX(0);
}

.exam-option:hover small {
    color: #4d72b8;
}

.drop-btn:hover {
    color: #175fe6;
}

/* =========================
   TOPIC TESTS DROPDOWN
========================= */
.topic-dropdown {
    position: relative;
}

.topic-btn {
    background: transparent;
    border: none;
    color: #09183d;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0;
}

.topic-btn span {
    margin-left: 4px;
    transition: .3s ease;
}

.topic-menu {
    position: absolute;
    top: 48px;
    left: -20px;
    width: 285px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 9px;
    box-shadow: 0 18px 45px rgba(0,0,0,.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 1000;
}

.topic-dropdown:hover .topic-menu,
.topic-dropdown:focus-within .topic-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topic-dropdown:hover .topic-btn,
.topic-dropdown:focus-within .topic-btn {
    color: #175fe6;
}

.topic-dropdown:hover .topic-btn span,
.topic-dropdown:focus-within .topic-btn span {
    display: inline-block;
    transform: rotate(180deg);
}

.subject-item {
    position: relative;
}

.subject-main {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px;
    border-radius: 10px;
    cursor: pointer;
    transition: .25s ease;
}

.subject-main > div {
    flex: 1;
}

.subject-main strong {
    display: block;
    font-size: 13px;
    color: #09183d;
    margin-bottom: 3px;
}

.subject-main small {
    display: block;
    font-size: 9px;
    color: #7b8497;
}

.subject-main > b {
    color: #175fe6;
    font-size: 17px;
    opacity: 0;
    transform: translateX(-5px);
    transition: .25s ease;
}

.subject-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    background: #eef4ff;
    transition: .25s ease;
}

.subject-main:hover {
    background: #eef4ff;
    transform: translateX(3px);
}

.subject-main:hover strong {
    color: #175fe6;
}

.subject-main:hover > b {
    opacity: 1;
    transform: translateX(0);
}

.subject-main:hover .subject-icon {
    background: #175fe6;
    transform: scale(1.08);
}

.topic-submenu {
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    width: 285px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 9px;
    box-shadow: 0 18px 45px rgba(0,0,0,.16);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all .25s ease;
    z-index: 1100;
}

.subject-item:hover .topic-submenu,
.subject-item:focus-within .topic-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.topic-submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border-radius: 9px;
    color: #09183d;
    transition: .25s ease;
}

.topic-submenu a > span {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5ff;
    font-size: 16px;
    transition: .25s ease;
}

.topic-submenu a div {
    flex: 1;
}

.topic-submenu a strong {
    display: block;
    font-size: 11px;
    margin-bottom: 2px;
}

.topic-submenu a small {
    display: block;
    font-size: 8px;
    color: #7b8497;
}

.topic-submenu a:hover {
    background: #eef4ff;
    color: #175fe6;
    transform: translateX(4px);
}

.topic-submenu a:hover > span {
    background: #175fe6;
    transform: scale(1.08);
}

.topic-submenu a:hover small {
    color: #4d72b8;
}

/* =========================
   LOGIN / REGISTER POPUP
========================= */
.auth-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999999;
}

.auth-modal.active {
    display: flex;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(48,74,255,.22), transparent 38%),
        rgba(3,8,35,.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: overlayShow .3s ease;
}

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

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 430px;
    padding: 38px 36px 30px;
    border-radius: 25px;
    background: linear-gradient(145deg, #fff, #f7f8ff, #f1efff);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 35px 90px rgba(0,0,0,.45), 0 0 50px rgba(67,78,255,.30);
    text-align: center;
    overflow: hidden;
    animation: popupOpen .45s cubic-bezier(.17,.67,.25,1.25);
}

.auth-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -100px;
    left: -80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3155ff, #a855f7);
    filter: blur(55px);
    opacity: .25;
}

.auth-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -100px;
    bottom: -110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    filter: blur(55px);
    opacity: .18;
}

@keyframes popupOpen {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(.75) rotateX(8deg);
    }
    70% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #eef0ff;
    color: #374151;
    font-size: 25px;
    cursor: pointer;
    z-index: 5;
    transition: .3s ease;
}

.auth-close:hover {
    background: linear-gradient(135deg, #2454e8, #8b5cf6);
    color: white;
    transform: rotate(90deg) scale(1.08);
}

.auth-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    font-size: 34px;
    background: linear-gradient(135deg, #1749d1, #635bff, #b642e8);
    box-shadow: 0 12px 30px rgba(62,75,220,.35);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.auth-card h2 {
    position: relative;
    z-index: 2;
    margin-bottom: 7px;
    color: #111936;
    font-size: 28px;
    font-weight: 800;
}

.auth-card > p {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
    color: #737b92;
    font-size: 13px;
    line-height: 1.5;
}

.auth-form {
    position: relative;
    z-index: 2;
}

.auth-input-group {
    text-align: left;
    margin-bottom: 16px;
}

.auth-input-group label {
    display: block;
    margin-bottom: 7px;
    color: #30384f;
    font-size: 12px;
    font-weight: 700;
}

.auth-input-group input {
    width: 100%;
    height: 47px;
    padding: 0 14px;
    border: 1px solid #dfe2ef;
    border-radius: 10px;
    outline: none;
    background: #fbfcff;
    color: #18203b;
    font-size: 13px;
    transition: .3s ease;
}

.auth-input-group input::placeholder {
    color: #a2a8b8;
}

.auth-input-group input:focus {
    border-color: #3155e8;
    background: white;
    box-shadow: 0 0 0 4px rgba(49,85,232,.10);
    transform: translateY(-1px);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 18px;
    font-size: 11px;
}

.auth-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #697187;
}

.auth-options input {
    accent-color: #3155e8;
}

.auth-options a {
    color: #3155e8;
    font-weight: 700;
}

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

.auth-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #1749d1, #4d5cff, #9b3fe3);
    background-size: 200% 100%;
    color: white;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(48,75,210,.30);
    transition: .3s ease;
    animation: gradientMove 4s ease infinite;
}

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

.auth-submit span {
    display: inline-block;
    margin-left: 8px;
    font-size: 18px;
    transition: .3s ease;
}

.auth-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(48,75,210,.40);
}

.auth-submit:hover span {
    transform: translateX(5px);
}

.register-submit {
    background: linear-gradient(90deg, #008fce, #3155e8, #8b3fe3);
}

.auth-bottom {
    position: relative;
    z-index: 2;
    margin-top: 21px;
    color: #737b92;
    font-size: 12px;
}

.auth-bottom button {
    margin-left: 4px;
    padding: 0;
    border: none;
    background: transparent;
    color: #3155e8;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.auth-bottom button:hover {
    text-decoration: underline;
}

/* =========================
   AI CHAT POPUP
========================= */
.ai-chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3,8,35,.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.ai-chat-overlay.active {
    display: flex;
}

.ai-chat-box {
    width: 420px;
    max-width: 92%;
    height: 570px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,.35);
    animation: aiChatOpen .35s ease;
}

@keyframes aiChatOpen {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-chat-header {
    height: 75px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #101b68, #2835a5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-robot {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.ai-chat-title h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.ai-chat-title span {
    font-size: 10px;
    color: #cdd5ff;
}

.ai-close {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: white;
    font-size: 25px;
    cursor: pointer;
    transition: .25s ease;
}

.ai-close:hover {
    background: rgba(255,255,255,.25);
    transform: rotate(90deg);
}

.chatBox {
    height: 420px;
    padding: 18px;
    background: #f5f7fc;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-message {
    align-self: flex-start;
    max-width: 80%;
    background: white;
    color: #27304d;
    padding: 11px 14px;
    border-radius: 12px 12px 12px 3px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 3px 12px rgba(0,0,0,.06);
}

.user-message {
    align-self: flex-end;
    max-width: 80%;
    background: #2454e8;
    color: white;
    padding: 11px 14px;
    border-radius: 12px 12px 3px 12px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.ai-input-area {
    height: 75px;
    padding: 12px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-input-area input {
    flex: 1;
    height: 45px;
    padding: 0 14px;
    border: 1px solid #d9deeb;
    border-radius: 10px;
    outline: none;
    font-size: 13px;
}

.ai-input-area input:focus {
    border-color: #3155e8;
    box-shadow: 0 0 0 3px rgba(49,85,232,.1);
}

.ai-input-area button {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 10px;
    background: #2454e8;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.ai-input-area button:hover {
    background: #173db8;
    transform: translateY(-2px);
}

/* =========================
   RESPONSIVE - 1200px
========================= */
@media (max-width: 1200px) {
    nav {
        gap: 12px;
    }

    nav a,
    .drop-btn,
    .topic-btn {
        font-size: 11px;
    }

    .hero {
        padding-left: 5%;
    }

    .hero-left h1 {
        font-size: 45px;
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .girl {
        width: 430px;
        height: 360px;
        left: -30px;
    }

    .ai-card {
        left: auto;
        right: 125px;
    }
}

/* =========================
   RESPONSIVE - 900px
========================= */
@media (max-width: 900px) {
    .navbar {
        padding: 12px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    nav .active {
        padding-bottom: 5px;
    }

    .hero {
        flex-direction: column;
        padding: 40px 5%;
    }

    .hero-left {
        width: 100%;
        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-right {
        width: 100%;
        margin-top: 25px;
    }

    .hero-tags,
    .hero-buttons,
    .students {
        justify-content: center;
    }

    .girl {
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
    }

    .ai-card {
        left: auto;
        right: 12%;
        top: 250px;
    }

    .progress-card {
        right: 3%;
    }

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

    .ai-experience {
        flex-wrap: wrap;
    }

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

    .stats > div {
        border-right: none;
    }

    .topic-submenu {
        left: auto;
        right: calc(100% + 8px);
    }
}

/* =========================
   RESPONSIVE - 600px
========================= */
@media (max-width: 600px) {
    .navbar {
        padding: 12px 15px;
    }

    .logo h2 {
        font-size: 22px;
    }

    .logo-icon {
        font-size: 29px;
    }

    .nav-buttons {
        width: auto;
        justify-content: center;
    }

    .login,
    .register {
        padding: 8px 12px;
        font-size: 11px;
    }

    nav {
        gap: 10px;
    }

    nav a,
    .drop-btn,
    .topic-btn {
        font-size: 10px;
    }

    .hero {
        padding: 35px 15px;
    }

    .hero-left h1 {
        font-size: 37px;
    }

    .hero-text {
        font-size: 13px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .start-test,
    .explore {
        width: min(100%, 260px);
    }

    .hero-right {
        height: 430px;
    }

    .girl {
        width: 390px;
        height: 430px;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
    }

    .ai-card {
        left: 0;
        right: auto;
        top: 245px;
        width: 170px;
    }

    .progress-card {
        right: 0;
        top: 5px;
        width: 170px;
    }

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

    .feature {
        border-right: none;
        border-bottom: 1px solid #e7c0c0;
    }

    .feature:last-child {
        border-bottom: none;
    }

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

    .section-heading {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

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

    .exam-series {
        width: 94%;
        padding: 20px;
        margin: 35px auto;
    }

    .exam-series h2 {
        font-size: 27px;
    }

    .series-line {
        font-size: 16px;
    }

    .ai-experience {
        width: 94%;
        padding: 18px;
        gap: 14px;
    }

    .ai-feature {
        min-width: 130px;
    }

    .try-ai {
        width: 100%;
    }

    /* Mobile dropdowns stay inside screen */
    .dropdown-menu,
    .topic-menu {
        left: 50%;
        transform: translate(-50%, 10px);
        max-width: calc(100vw - 30px);
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu,
    .topic-dropdown:hover .topic-menu,
    .topic-dropdown:focus-within .topic-menu {
        transform: translate(-50%, 0);
    }

    .topic-submenu {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 5px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 10px;
    }

    .subject-item:hover .topic-submenu,
    .subject-item:focus-within .topic-submenu {
        display: block;
        transform: none;
    }

    .auth-card {
        max-width: 400px;
        padding: 32px 22px 25px;
        border-radius: 21px;
    }

    .auth-card h2 {
        font-size: 25px;
    }

    .auth-icon {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }
}

/* =========================
   AI CHAT MOBILE
========================= */
@media (max-width: 500px) {
    .ai-chat-box {
        height: 90vh;
        width: 94%;
        max-width: 94%;
    }

    .chatBox {
        height: calc(90vh - 150px);
    }

    .ai-chat-header {
        height: 70px;
    }

    .ai-input-area {
        height: 75px;
    }
}

/* =========================
   VERY SMALL DEVICES
========================= */
@media (max-width: 380px) {
    .logo p {
        display: none;
    }

    .logo h2 {
        font-size: 19px;
    }

    .login,
    .register {
        padding: 7px 9px;
        font-size: 10px;
    }

    .hero-left h1 {
        font-size: 32px;
    }

    .girl {
        width: 340px;
    }

    .ai-card {
        width: 155px;
    }

    .progress-card {
        width: 155px;
    }
}