
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.page-content {
  flex: 1;
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.hero {
  display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 90px 60px 70px;
    max-width: 1200px;
    margin: 0 auto;
}
body.dark .hero {
  background: linear-gradient(160deg, #1A1208 0%, #1C0A0F 50%, #1A1208 100%);
}

.hero-tag {
  display: inline-block;
    background: var(--orange-pale);
    color: var(--orange);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 22px;
}

.hero h1 {
  font-family: 'Syne', sans-serif; font-size: 52px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: var(--text);
}

.hero h1 span {
  color: var(--orange);
}

.hero p {
  font-size: 17px; color: var(--gray); line-height: 1.7; margin-bottom: 36px;
}

.hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
}

.btn-primary {
  background: var(--orange); color: white; border: none; padding: 14px 30px; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--orange-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,92,26,0.25);
}

.btn-secondary {
  background: var(--card-bg); color: var(--text); border: 1.5px solid var(--border); padding: 14px 30px; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--orange); color: var(--orange);
}

.hero-visual {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  animation: fadeUp 0.6s 0.2s ease both, float 4s 0.8s ease-in-out infinite;
  transition: background 0.3s, border-color 0.3s
}

.card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border);
}

.card-icon {
  width: 42px; height: 42px; background: var(--orange-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px;
}

.card-header h3 {
  font-size: 16px; font-weight: 600; color: var(--text);
}

.card-header p {
  font-size: 13px; color: var(--gray);
}

.note-item {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--orange-pale); border-radius: 10px; margin-bottom: 10px; transition: transform 0.2s; cursor: pointer;
}

.note-item:hover {
  transform: translateX(4px);
}

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

.note-left {
  display: flex;
  align-items: center;
  gap: 14px
}

.note-dot {
  width: 8px; height: 8px; background: var(--orange); border-radius: 50%;
}

.note-name {
  font-size: 14px; font-weight: 500; color: var(--text);
}

.note-size {
  font-size: 12px; color: var(--gray);
}

.note-download {
  font-size: 18px; cursor: pointer;
}

.stats {
  display: flex; background: var(--stats-bg); padding: 48px 60px; justify-content: space-around; transition: background 0.3s;
}

.stat {
  text-align: center; color: white;
}

.stat h2 {
  font-family: 'Syne', sans-serif; font-size: 42px; font-weight: 800; color: var(--orange);
}

.stat p {
  font-size: 15px; color: rgba(255,255,255,0.6); margin-top: 4px;
}

.features {
  padding: 80px 60px; max-width: 1200px; margin: 0 auto;
}

.section-tag {
  display: inline-block; background: var(--orange-pale); color: var(--orange); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 100px; margin-bottom: 14px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between
}

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

.feature-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px; transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(255,92,26,0.1);
}

.feature-emoji {
  font-size: 32px; margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--text);
}

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

.semesters {
  background: var(--sem-bg); padding: 80px 60px; transition: background 0.3s;
}

.sem-inner {
  max-width: 1200px; margin: 0 auto;
}

.sem-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 40px;
}

.sem-card {
  background: var(--card-bg); border-radius: 14px; padding: 24px 16px; text-align: center; cursor: pointer; border: 2px solid transparent; transition: all 0.2s;
}

.sem-card:hover {
  border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 8px 20px rgba(255,92,26,0.15);
}

.sem-num {
  font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: var(--orange);
}

.sem-label {
  font-size: 12px; color: var(--gray); margin-top: 4px; font-weight: 500;
}

.how {
  padding: 80px 60px; max-width: 1200px; margin: 0 auto;
}

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px;
}

.step {
  text-align: center; padding: 28px 20px;
}

.step-num {
  width: 48px; height: 48px; background: var(--orange); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; margin: 0 auto 16px;
}

.step h3 {
  font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text);
}

.step p {
  font-size: 14px; color: var(--gray); line-height: 1.6;
}

footer {
  background: var(--stats-bg); color: white; padding: 40px 60px; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s;
}

.footer-logo {
  font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800;
}

.footer-logo span {
  color: var(--orange);
}

footer p {
  color: rgba(255,255,255,0.4); font-size: 14px;
}

.hero-content {
  animation: fadeUp 0.6s ease forwards;
}

.left {
  background: #0D0D0D;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 50px;
    overflow: hidden;
}

.blob {
  position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.blob1 {
  width: 300px; height: 300px; background: #8B1A2E; top: -80px; left: -80px;
}

.blob2 {
  width: 250px; height: 250px; background: #FF3A00; bottom: 60px; right: -60px; opacity: 0.3;
}

.blob3 {
  width: 180px; height: 180px; background: #FF8C00; top: 50%; left: 40%; opacity: 0.2;
}

.grid-overlay {
  position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.left-logo {
  font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: white;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.left-logo span {
  color: #8B1A2E;
}

.left-center {
  position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-center h1 {
  font-family: 'Syne', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 16px;
}

.left-center h1 span {
  color: #8B1A2E;
}

.left-center p {
  color: rgba(255,255,255,0.5);
    font-size: 15px;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 48px;
}

.cartoon-scene {
  position: relative;
    width: 200px;
    height: 160px;
}

.desk {
  position: absolute;
    bottom: 10px; left: 10px;
    width: 170px; height: 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

.desk-leg {
  position: absolute; bottom: -16px; width: 10px; height: 16px; background: rgba(255,255,255,0.1); border-radius: 3px;
}

.desk-leg.left {
  left: 18px;
}

.desk-leg.right {
  right: 18px;
}

.book {
  position: absolute;
    bottom: 22px; left: 26px;
    width: 54px; height: 38px;
    background: white;
    border-radius: 3px 8px 8px 3px;
    box-shadow: -3px 2px 0 rgba(0,0,0,0.2);
}

.book::before {
  content: '';
    position: absolute;
    left: 7px; top: 7px;
    width: 22px; height: 2px;
    background: rgba(255,92,26,0.5);
    border-radius: 2px;
    box-shadow: 0 5px 0 rgba(255,92,26,0.35), 0 10px 0 rgba(255,92,26,0.2), 0 15px 0 rgba(255,92,26,0.12);
}

.book-spine {
  position: absolute; left: 0; top: 0; width: 6px; height: 100%; background: #8B1A2E; border-radius: 3px 0 0 3px; opacity: 0.7;
}

.char {
  position: absolute; bottom: 22px; left: 95px;
}

.char-head {
  width: 46px; height: 46px;
    background: #FDDCB5;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    animation: nod 2.5s ease-in-out infinite;
    transform-origin: bottom center;
}

.char-head::before {
  content: '';
    position: absolute;
    top: -7px; left: 5px;
    width: 36px; height: 18px;
    background: #2C1A0E;
    border-radius: 18px 18px 0 0;
}

.eye {
  position: absolute; top: 17px; width: 6px; height: 7px; background: #2C1A0E; border-radius: 50%; animation: blink 3.5s ease-in-out infinite;
}

.eye.l {
  left: 10px;
}

.eye.r {
  right: 10px;
}

.char-head::after {
  content: '';
    position: absolute;
    bottom: 9px; left: 50%;
    transform: translateX(-50%);
    width: 13px; height: 5px;
    border-bottom: 2.5px solid #c08040;
    border-radius: 0 0 8px 8px;
}

.char-body {
  width: 36px; height: 28px; background: rgba(255,255,255,0.85); border-radius: 8px 8px 4px 4px; margin: 3px auto 0;
}

.char-arm {
  position: absolute;
    bottom: 5px; right: -12px;
    width: 24px; height: 8px;
    background: #FDDCB5;
    border-radius: 4px;
    transform-origin: left center;
    animation: write 1.3s ease-in-out infinite;
}

.pencil {
  position: absolute;
    bottom: 24px; right: 28px;
    width: 5px; height: 24px;
    background: #FFD700;
    border-radius: 2px 2px 0 0;
    transform: rotate(22deg);
    animation: wpencil 1.3s ease-in-out infinite;
}

.pencil::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 5px; height: 5px; background: #8B1A2E; border-radius: 0 0 2px 2px;
}

.star {
  position: absolute; animation: fstar 2s ease-in-out infinite;
}

.star:nth-child(1) {
  top: 8px; left: 12px; font-size: 14px;
}

.star:nth-child(2) {
  top: 16px; right: 10px; font-size: 10px; animation-delay: 0.8s;
}

.star:nth-child(3) {
  top: 2px; right: 35px; font-size: 11px; animation-delay: 1.5s;
}

.left-bottom {
  position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.left-bottom span {
  font-size: 12px;
    color: rgba(255,255,255,0.3);
}

.dot-sep {
  width: 3px; height: 3px; background: rgba(255,255,255,0.2); border-radius: 50%;
}

.right {
  background: #FAFAF8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

.top-controls {
  position: absolute;
    top: 24px; right: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-box {
  width: 100%;
    max-width: 380px;
}

.form-box .brand {
  display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.brand-dot {
  width: 10px; height: 10px;
    background: #8B1A2E;
    border-radius: 50%;
}

.brand-text {
  font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #999;
    letter-spacing: 1px;
}

.form-box h2 {
  font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #1A1208;
    margin-bottom: 6px;
}

.form-box .sub {
  font-size: 14px;
    color: #999;
    margin-bottom: 32px;
}

.step-pills {
  display: flex;
    gap: 6px;
    margin-bottom: 28px;
}

.pill {
  height: 4px;
    border-radius: 4px;
    flex: 1;
    background: #F0EDE8;
    transition: background 0.3s;
}

.pill.active {
  background: #8B1A2E;
}

.pill.done {
  background: #C9A84C;
}

.form-group {
  margin-bottom: 16px
}

label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 7px;
  letter-spacing: 0.5px;
  text-transform: uppercase
}

input {
  width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #F0EDE8;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #1A1208;
    background: white;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
  border-color: #8B1A2E;
}

input.err {
  border-color: #ef4444;
}

.hint {
  font-size: 12px; color: #bbb; margin-top: 5px;
}

.errmsg {
  display: none;
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(239,68,68,0.1);
  border-radius: 8px;
}

.errmsg.show {
  display: block;
}

.phone-row {
  display: flex; gap: 8px;
}

.cc {
  padding: 13px 12px; border: 1.5px solid #F0EDE8; border-radius: 10px; background: white; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; width: 86px; text-align: center; color: #1A1208; flex-shrink: 0;
}

.auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 5px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 11px 10px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: rgba(255,255,255,0.45);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  font-family: inherit;
  letter-spacing: 0.2px;
}

.auth-tab.active {
  background: linear-gradient(135deg, #8B1A2E, #C9A84C);
  color: white;
  box-shadow: 0 4px 20px rgba(139,26,46,0.5);
  transform: scale(1.02);
}

.pass-row {
  position: relative;
    display: flex;
    align-items: center;
}

.pass-row input {
  width: 100%;
    padding-right: 44px;
}

.eye-btn {
  position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    line-height: 1;
}

.pass-rules {
  margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rule {
  font-size: 12px;
    color: #ef4444;
    transition: color 0.2s;
}

.rule.ok {
  color: #22c55e;
}

.otp-row {
  display: flex; gap: 8px; justify-content: space-between;
}

.otp-box {
  width: 50px; height: 54px;
    text-align: center;
    font-size: 20px; font-weight: 700;
    border: 1.5px solid #F0EDE8;
    border-radius: 10px;
    background: white;
    color: #1A1208;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.otp-box:focus {
  border-color: #8B1A2E;
}

.otp-box.err {
  border-color: #ef4444; animation: shake 0.3s ease;
}

.resend-row {
  display: flex; justify-content: space-between; align-items: center; margin-top: 10px;
}

.resend-row span {
  font-size: 12px; color: #bbb;
}

.resend-btn {
  background: none; border: none; color: #8B1A2E; font-size: 12px; font-weight: 700; cursor: pointer; font-family: 'DM Sans', sans-serif;
}

.resend-btn:disabled {
  color: #bbb; cursor: default;
}

.submit-btn {
  width: 100%;
  background: var(--orange);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.submit-btn:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,92,26,0.3)
}

.back-link {
  display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #bbb;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    width: 100%;
}

.back-link:hover {
  color: #8B1A2E;
}

.fstep {
  display: none;
}

.fstep.active {
  display: block;
}

.success-box {
  text-align: center; padding: 10px 0;
}

.success-icon {
  width: 68px; height: 68px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    margin: 0 auto 18px;
    animation: pop 0.4s ease;
}

.success-box h3 {
  font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: #1A1208; margin-bottom: 8px;
}

.success-box p {
  font-size: 13px; color: #999; margin-bottom: 24px;
}

#timer {
  font-weight: 700; color: #8B1A2E;
}

.mobile-anim {
  display: none;
    justify-content: center;
    background: #0D0D0D;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.mobile-anim::before {
  content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: #8B1A2E;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    top: -60px; left: -40px;
}

.sidebar {
  width: 240px;
  min-height: 100vh;
  background: #1C0A0F !important;
  border-right: 1px solid rgba(201,168,76,0.15) !important;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
}

.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid #1E1C1A
}

.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: white;
  text-decoration: none;
  display: block
}

.logo-text span {
  color: var(--orange)
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  overflow-y: auto;
}

.nav-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 12px;
  margin: 16px 0 8px
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
