@media (max-width: 767px) {
  .page-content {
    margin-left: 0 !important;
  }
  .app-layout .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 240px;
    z-index: 100;
  }
  .app-layout .sidebar.open {
    transform: translateX(0);
  }
  .overlay, #dashOverlay, #calcOverlay, #calOverlay, #holOverlay, #attOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
  }
  .overlay.show, #dashOverlay.show, #calcOverlay.show, #calOverlay.show, #holOverlay.show, #attOverlay.show {
    display: block !important;
  }
  .top-nav .hamburger {
    display: flex !important;
  }
}

.cbtn {
  padding: 16px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
}
.cbtn:active { transform: scale(0.92); }
.cbtn-op { background: var(--orange-pale); color: var(--orange); }
.cbtn-fn { background: rgba(139,26,46,0.08); color: #8B1A2E; font-size: 13px; }
.cbtn-eq { background: rgba(26,92,139,0.1); color: #1A5C8B; font-weight: 700; }
body.dark .cbtn-fn { color: #C9A84C; background: rgba(201,168,76,0.1); }

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}
.cal-day:hover { background: rgba(139,26,46,0.1); }
.cal-day.today { background: #8B1A2E; color: white; font-weight: 700; }
.cal-day.selected { background: #C9A84C; color: #1A1208; font-weight: 700; }
.cal-day.holiday { color: #ef4444; font-weight: 700; }
.cal-day.empty { cursor: default; }
.cal-day.holiday-dot::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ef4444;
  position: absolute;
  bottom: 2px;
}

.holiday-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
}
.holiday-date-box {
  background: linear-gradient(135deg, #8B1A2E, #C9A84C);
  color: white;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  min-width: 48px;
  flex-shrink: 0;
}
.holiday-date-num { font-family: Syne, sans-serif; font-size: 20px; font-weight: 800; }
.holiday-date-mon { font-size: 10px; opacity: 0.85; }
.holiday-name { font-weight: 600; color: var(--text); font-size: 14px; }
.holiday-type { font-size: 11px; color: var(--gray); margin-top: 2px; }

.att-subject-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.att-subject-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 10px;
}
.att-progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}
.att-progress-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.4s ease;
}
.att-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}
.att-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.att-present { background: rgba(27,67,50,0.15); color: #52B788; }
.att-absent { background: rgba(239,68,68,0.1); color: #ef4444; }
.att-delete { background: transparent; border: 1px solid var(--border) !important; color: var(--gray); flex: 0; padding: 10px 14px; border-radius: 10px; cursor:pointer; font-size:13px; font-family:'DM Sans',sans-serif; }

#pg-home nav {
  background: #1C0A0F;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.dark #pg-home nav {
  background: #0D0408;
}
#pg-home .logo { color: white !important; }
#pg-home
#pg-home
#pg-home .theme-toggle { background: rgba(255,255,255,0.15) !important; }
#pg-home .theme-toggle:hover { background: rgba(255,255,255,0.25) !important; }
#pg-home .hero-section {
  background: linear-gradient(160deg, #FDF6F0 0%, #FAE8E8 100%);
}
body.dark #pg-home .hero-section {
  background: linear-gradient(160deg, #1C0A0F 0%, #2A1018 100%);
}
#pg-home .hero h1 { color: #1A1208; }
#pg-home .hero h1 span { color: #8B1A2E; }
body.dark #pg-home .hero h1 { color: #F5F0EB !important; -webkit-text-fill-color: #F5F0EB !important; }
body.dark #pg-home .hero h1 span { color: #C9A84C !important; -webkit-text-fill-color: #C9A84C !important; }
#pg-home .hero p { color: #444; }
body.dark #pg-home .hero p { color: rgba(255,255,255,0.72) !important; }
#pg-home .btn-primary { background: linear-gradient(135deg, #8B1A2E, #C9A84C); }
#pg-home .home-option-card { background: white; }
body.dark #pg-home .home-option-card { background: #2A1018; border-color: rgba(255,255,255,0.1); }
body.dark #pg-home .hoc-title { color: white; }
body.dark #pg-home .hoc-desc { color: rgba(255,255,255,0.5); }
body.dark #pg-home .home-options-section { background: #1C0A0F; }
body.dark #pg-home .stats { background: #0D0408 !important; }

#pg-home .logo,
#pg-home h1,
#pg-home .stat h2,
#pg-home .section-title,
#pg-home .sem-num,
#pg-home .step-num,
#pg-home .footer-logo {
  font-family: 'Syne', sans-serif !important;
}
#pg-home .hero h1 {
  font-family: 'Syne', sans-serif !important;
  font-size: clamp(42px, 6vw, 72px) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -2px !important;
}
#pg-home .hero h1 span {
  font-style: italic;
  color: #C9A84C !important;
}
#pg-home nav {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(139,26,46,0.1) !important;
}
body.dark #pg-home nav {
  background: rgba(17,16,16,0.85) !important;
  border-bottom: 1px solid rgba(201,168,76,0.12) !important;
}

#pg-home .hero-section {
  position: relative;
  overflow: hidden;
  background: transparent !important;
}

#pg-home .hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(139,26,46,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(201,168,76,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 0%, rgba(139,26,46,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#pg-home .hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}
#pg-home .hero {
  position: relative;
  z-index: 1;
}

#pg-home .hero-tag {
  background: linear-gradient(135deg, rgba(139,26,46,0.12), rgba(201,168,76,0.12)) !important;
  border: 1px solid rgba(139,26,46,0.2);
  color: #8B1A2E !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

#pg-home .btn-primary {
  background: linear-gradient(135deg, #8B1A2E 0%, #A52035 50%, #C9A84C 100%) !important;
  background-size: 200% 200% !important;
  animation: btnShimmer 3s ease infinite !important;
  border-radius: 14px !important;
  font-family: 'Syne', sans-serif !important;
  font-size: 15px !important;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 32px rgba(139,26,46,0.3), 0 2px 8px rgba(0,0,0,0.1) !important;
}
@keyframes btnShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
#pg-home .btn-primary:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 16px 40px rgba(139,26,46,0.4), 0 4px 12px rgba(0,0,0,0.15) !important;
}

#pg-home .hero-visual {
  background: linear-gradient(145deg, #fff 0%, #fdf8f5 100%) !important;
  border: 1px solid rgba(139,26,46,0.12) !important;
  box-shadow: 0 24px 80px rgba(139,26,46,0.1), 0 4px 16px rgba(0,0,0,0.06) !important;
  border-radius: 24px !important;
  transform-origin: center;
  animation: heroCardFloat 6s ease-in-out infinite !important;
}
body.dark #pg-home .hero-visual {
  background: linear-gradient(145deg, #1E1C1A 0%, #252220 100%) !important;
  border-color: rgba(201,168,76,0.15) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4) !important;
}
@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0px) rotate(-0.5deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}

#pg-home .stats {
  background: linear-gradient(135deg, #0D0A07 0%, #1A0A10 50%, #1A1208 100%) !important;
  padding: 60px !important;
  position: relative;
  overflow: hidden;
}
#pg-home .stats::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,26,46,0.25), transparent 70%);
  pointer-events: none;
}
#pg-home .stats::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,0.15), transparent 70%);
  pointer-events: none;
}
#pg-home .stat h2 {
  font-size: 52px !important;
  background: linear-gradient(135deg, #fff 30%, #C9A84C) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: countUp 1s ease both;
}
#pg-home .stat p {
  font-size: 13px !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45) !important;
}

#pg-home .feature-card {
  border-radius: 20px !important;
  padding: 32px !important;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
  overflow: hidden;
}
#pg-home .feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #8B1A2E, #C9A84C);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
#pg-home .feature-card:hover::before { transform: scaleX(1); }
#pg-home .feature-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 60px rgba(139,26,46,0.12), 0 4px 16px rgba(0,0,0,0.08) !important;
  border-color: rgba(139,26,46,0.2) !important;
}
#pg-home .feature-emoji {
  font-size: 38px !important;
  display: block;
  margin-bottom: 18px;
  animation: iconBob 3s ease-in-out infinite;
}
@keyframes iconBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
#pg-home .feature-card h3 {
  font-family: 'Syne', sans-serif !important;
  font-size: 18px !important;
  margin-bottom: 10px;
}

#pg-home .sem-card {
  border-radius: 18px !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  background: var(--card-bg) !important;
  border: 1.5px solid transparent !important;
  position: relative;
  overflow: hidden;
}
#pg-home .sem-card::after {
  content: 'SEM';
  position: absolute;
  top: 8px; right: 8px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gray);
  opacity: 0.4;
}
#pg-home .sem-card:hover {
  border-color: #8B1A2E !important;
  transform: translateY(-8px) scale(1.03) !important;
  box-shadow: 0 16px 40px rgba(139,26,46,0.18) !important;
}
#pg-home .sem-num {
  font-size: 36px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, #8B1A2E, #C9A84C) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

#pg-home .home-option-card {
  border-radius: 20px !important;
  padding: 20px !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  border-left: 4px solid var(--card-color) !important;
}
#pg-home .home-option-card:hover {
  transform: translateY(-6px) translateX(4px) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1) !important;
}
#pg-home .hoc-title {
  font-family: 'Syne', sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

#pg-home .hero-tag    { animation: heroReveal 0.7s 0.1s ease both; }
#pg-home .hero h1     { animation: heroReveal 0.8s 0.2s ease both; }
#pg-home .hero p      { animation: heroReveal 0.7s 0.35s ease both; }
#pg-home .hero-btns   { animation: heroReveal 0.7s 0.5s ease both; }
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

#pg-home .step-num {
  background: linear-gradient(135deg, #8B1A2E, #C9A84C) !important;
  width: 52px !important; height: 52px !important;
  font-size: 20px !important;
  box-shadow: 0 8px 24px rgba(139,26,46,0.3) !important;
  font-family: 'Syne', sans-serif !important;
  font-style: italic;
}

#pg-home footer {
  background: linear-gradient(135deg, #0D0A07, #1A0A10) !important;
}

#pg-login {
  background: linear-gradient(135deg, #080308 0%, #140810 40%, #1A0A18 100%) !important;
  position: relative;
}
#pg-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(139,26,46,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(201,168,76,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 60% 10%, rgba(100,10,30,0.3) 0%, transparent 50%);
  pointer-events: none;
  animation: auroraShift 8s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  from { opacity: 0.8; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.05); }
}

#pg-login .login-logo {
  font-family: 'Syne', sans-serif !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px;
}
#pg-login .login-logo span { color: #C9A84C !important; }

#pg-login .login-headline {
  font-family: 'Syne', sans-serif !important;
  font-size: clamp(36px, 4vw, 58px) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: -1.5px !important;
  color: white !important;
}
#pg-login .login-headline-gold {
  font-style: italic !important;
  background: linear-gradient(135deg, #C9A84C, #F0D080, #C9A84C) !important;
  background-size: 200% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: goldShimmer 3s linear infinite !important;
}
@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

#pg-login .login-card {
  background: rgba(255,255,255,0.04) !important;
  backdrop-filter: blur(40px) !important;
  -webkit-backdrop-filter: blur(40px) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 28px !important;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

#pg-login .auth-tabs {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  padding: 4px !important;
}
#pg-login .auth-tab {
  border-radius: 10px !important;
  color: rgba(255,255,255,0.5) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
}
#pg-login .auth-tab.active {
  background: linear-gradient(135deg, #8B1A2E, #C9A84C) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(139,26,46,0.4) !important;
}

#pg-login .input-wrap {
  position: relative;
}
#pg-login .input-wrap input {
  background: rgba(255,255,255,0.06) !important;
  border: 1.5px solid rgba(255,255,255,0.1) !important;
  border-radius: 14px !important;
  color: white !important;
  font-size: 15px !important;
  transition: all 0.25s ease !important;
  padding: 14px 14px 14px 46px !important;
}
#pg-login .input-wrap input:focus {
  border-color: #C9A84C !important;
  background: rgba(201,168,76,0.08) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15) !important;
}
#pg-login .input-wrap input::placeholder {
  color: rgba(255,255,255,0.25) !important;
}
#pg-login label {
  color: rgba(255,255,255,0.7) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
}

#pg-login .login-submit-btn {
  background: linear-gradient(135deg, #8B1A2E 0%, #A52035 40%, #C9A84C 100%) !important;
  background-size: 200% 200% !important;
  border-radius: 14px !important;
  font-family: 'Syne', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  height: 52px !important;
  box-shadow: 0 8px 32px rgba(139,26,46,0.4) !important;
  transition: all 0.3s ease !important;
  animation: btnPulseGold 3s ease-in-out infinite 2s !important;
}
@keyframes btnPulseGold {
  0%, 100% { box-shadow: 0 8px 32px rgba(139,26,46,0.4); }
  50% { box-shadow: 0 8px 40px rgba(201,168,76,0.5), 0 0 60px rgba(139,26,46,0.3); }
}
#pg-login .login-submit-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 48px rgba(139,26,46,0.5) !important;
  animation: none !important;
}

#pg-login .login-avatar {
  background: linear-gradient(135deg, #8B1A2E, #C9A84C) !important;
  color: white !important;
  width: 52px !important; height: 52px !important;
  border-radius: 16px !important;
  font-size: 24px !important;
  border: none !important;
}

#pg-login .login-welcome-title {
  color: white !important;
  font-family: 'Syne', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}
#pg-login .login-welcome-sub {
  color: rgba(255,255,255,0.5) !important;
  font-size: 13px !important;
}

#pg-login a[href="#"] {
  color: #C9A84C !important;
}

#pg-login .errmsg { color: #ff6b6b !important; }

#pg-login .particle { opacity: 0.6 !important; }
#pg-login .orb1 { background: rgba(139,26,46,0.3) !important; }
#pg-login .orb2 { background: rgba(201,168,76,0.2) !important; }

#pg-login .rule { color: rgba(255,100,100,0.7) !important; font-size: 12px !important; }
#pg-login .rule.ok { color: #4ade80 !important; }

#pg-login .eye-btn {
  background: none !important;
  border: none !important;
  color: rgba(255,255,255,0.4) !important;
  position: absolute !important;
  right: 14px !important; top: 50% !important;
  transform: translateY(-50%) !important;
  cursor: pointer !important;
  font-size: 16px !important;
}

#pg-login .login-badge {
  background: rgba(201,168,76,0.15) !important;
  border: 1px solid rgba(201,168,76,0.3) !important;
  color: #C9A84C !important;
  border-radius: 100px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

#pg-login .login-sub {
  color: rgba(255,255,255,0.5) !important;
  line-height: 1.7 !important;
  font-size: 15px !important;
}

.deco-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: decoFloat 0s ease infinite;
}

body.dark #pg-home .hero h1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body.dark #pg-home .hero h1 span {
  color: #C9A84C !important;
  -webkit-text-fill-color: #C9A84C !important;
  font-style: italic;
}
body.dark #pg-home .hero p {
  color: rgba(255,255,255,0.7) !important;
}
body.dark #pg-home .hero-tag,
body.dark #pg-home [style*="display:inline-block"] {
  color: #C9A84C !important;
  background: rgba(201,168,76,0.12) !important;
  border-color: rgba(201,168,76,0.25) !important;
}
body.dark #pg-home .hero-section {
  background: linear-gradient(135deg, #0D0A07 0%, #180810 60%, #1A1208 100%) !important;
}
body.dark #pg-home .hero-section::before {
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(139,26,46,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(201,168,76,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 0%, rgba(80,5,20,0.4) 0%, transparent 70%) !important;
}

body.dark #pg-home nav {
  background: rgba(13,10,7,0.92) !important;
  border-bottom: 1px solid rgba(201,168,76,0.1) !important;
}

body.dark #pg-home p,
body.dark #pg-home .hero-content p {
  color: rgba(255,255,255,0.65) !important;
}

body.dark #pg-home .section-tag,
body.dark #pg-home .section-title {
  color: #ffffff !important;
}

body.dark #pg-home .step h3 {
  color: #ffffff !important;
}
body.dark #pg-home .step p {
  color: rgba(255,255,255,0.6) !important;
}

body.dark #pg-home .feature-card {
  background: #1A1612 !important;
  border-color: rgba(255,255,255,0.06) !important;
}
body.dark #pg-home .feature-card h3 {
  color: #ffffff !important;
}
body.dark #pg-home .feature-card p {
  color: rgba(255,255,255,0.55) !important;
}

body.dark #pg-home .home-option-card {
  background: #1A1612 !important;
  border-color: rgba(255,255,255,0.06) !important;
}
body.dark #pg-home .hoc-title {
  color: #ffffff !important;
}
body.dark #pg-home .hoc-desc {
  color: rgba(255,255,255,0.5) !important;
}

body.dark #pg-home .sem-card {
  background: #1A1612 !important;
  border-color: rgba(255,255,255,0.06) !important;
}
body.dark #pg-home .sem-label {
  color: rgba(255,255,255,0.7) !important;
}
body.dark #pg-home .sem-count {
  color: rgba(255,255,255,0.4) !important;
}

body.dark #pg-home .how,
body.dark #pg-home .features,
body.dark #pg-home .semesters {
  background: #0D0A07 !important;
}

body.dark #pg-home footer p {
  color: rgba(255,255,255,0.4) !important;
}

body.dark #pg-home .home-options-section {
  background: #0D0A07 !important;
}

#pg-login {
  background: linear-gradient(160deg, #0A0308 0%, #1C0510 50%, #0F0A02 100%) !important;
  min-height: 100vh;
}
#pg-login::before {
  background:
    radial-gradient(ellipse 70% 50% at 15% 25%, rgba(139,26,46,0.5) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 85% 75%, rgba(201,168,76,0.25) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 55% 5%, rgba(100,10,30,0.4) 0%, transparent 50%) !important;
}

#pg-login .login-card {
  background: rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  border: 1.5px solid rgba(255,255,255,0.18) !important;
  border-radius: 28px !important;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.15) !important;
  padding: 28px 24px !important;
}

#pg-login .auth-tabs {
  background: rgba(0,0,0,0.3) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 16px !important;
  padding: 5px !important;
  margin-bottom: 24px !important;
}
#pg-login .auth-tab {
  border-radius: 12px !important;
  color: rgba(255,255,255,0.45) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 10px 0 !important;
  transition: all 0.25s ease !important;
  border: none !important;
  background: none !important;
}
#pg-login .auth-tab.active {
  background: linear-gradient(135deg, #8B1A2E, #C9A84C) !important;
  color: white !important;
  box-shadow: 0 4px 20px rgba(139,26,46,0.5) !important;
}

#pg-login .input-wrap input {
  background: rgba(255,255,255,0.12) !important;
  border: 1.5px solid rgba(255,255,255,0.2) !important;
  border-radius: 14px !important;
  color: white !important;
  font-size: 15px !important;
  padding: 14px 14px 14px 48px !important;
  height: 52px !important;
  transition: all 0.2s !important;
  -webkit-text-fill-color: white !important;
}
#pg-login .input-wrap input::placeholder {
  color: rgba(255,255,255,0.35) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.35) !important;
}
#pg-login .input-wrap input:focus {
  background: rgba(201,168,76,0.12) !important;
  border-color: #C9A84C !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2) !important;
  outline: none !important;
}

#pg-login .input-icon {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 18px !important;
  z-index: 1 !important;
}

#pg-login label {
  color: rgba(255,255,255,0.8) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
  display: block !important;
}

#pg-login .login-welcome {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}
#pg-login .login-avatar {
  background: linear-gradient(135deg, #8B1A2E, #C9A84C) !important;
  border-radius: 14px !important;
  width: 48px !important;
  height: 48px !important;
  font-size: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
#pg-login .login-welcome-title {
  color: white !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  margin-bottom: 2px !important;
}
#pg-login .login-welcome-sub {
  color: rgba(255,255,255,0.5) !important;
  font-size: 13px !important;
}

#pg-login .login-submit-btn {
  background: linear-gradient(135deg, #8B1A2E 0%, #B52040 60%, #C9A84C 100%) !important;
  border-radius: 14px !important;
  height: 54px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: white !important;
  width: 100% !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 8px 32px rgba(139,26,46,0.5), 0 2px 8px rgba(0,0,0,0.3) !important;
  margin-top: 8px !important;
  letter-spacing: 0.5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
#pg-login .login-submit-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 40px rgba(139,26,46,0.6) !important;
}
#pg-login .btn-arrow {
  font-size: 20px !important;
}

#pg-login a[onclick*="doForgotPassword"] {
  color: #F0D080 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

#pg-login .errmsg {
  color: #ff8080 !important;
  font-size: 12px !important;
  margin-top: 6px !important;
  padding: 6px 10px !important;
  background: rgba(255,80,80,0.15) !important;
  border: 1px solid rgba(255,80,80,0.3) !important;
  border-radius: 8px !important;
  display: none;
}
#pg-login .errmsg.show {
  display: block !important;
}

#pg-login .form-group {
  margin-bottom: 18px !important;
}

#pg-login .login-topbar {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  padding: 14px 20px !important;
}
#pg-login .login-logo {
  color: white !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}
#pg-login .login-logo span { color: #C9A84C !important; }

#pg-login
#pg-login

#pg-login .pass-rules { margin-top: 8px !important; }
#pg-login .rule {
  color: rgba(255,120,120,0.8) !important;
  font-size: 11px !important;
  padding: 2px 0 !important;
}
#pg-login .rule.ok { color: #4ade80 !important; }

#pg-login #registerBtn {
  background: linear-gradient(135deg, #1A5C8B 0%, #2E8FC4 60%, #4CC9F0 100%) !important;
  border-radius: 14px !important;
  height: 54px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: white !important;
  width: 100% !important;
  border: none !important;
  box-shadow: 0 8px 32px rgba(26,92,139,0.4) !important;
}

#pg-login .success-box {
  text-align: center !important;
  padding: 30px 0 !important;
}
#pg-login .success-anim {
  font-size: 64px !important;
  display: block !important;
  margin-bottom: 16px !important;
}
#pg-login .success-box h3 {
  color: white !important;
  font-size: 24px !important;
  margin-bottom: 8px !important;
}
#pg-login .success-box p {
  color: rgba(255,255,255,0.6) !important;
}

#pg-login .login-main {
  padding: 20px 16px 40px !important;
}
#pg-login .login-right {
  width: 100% !important;
}

.cbtn {
  padding: 16px 8px; border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-bg); color: var(--text);
  font-size: 18px; font-weight: 600; cursor: pointer;
  transition: all 0.15s; font-family: 'DM Sans', sans-serif;
  text-align: center; width: 100%;
}
.cbtn:active { transform: scale(0.9); }
.cbtn-op { background: rgba(139,26,46,0.1); color: #8B1A2E; }
.cbtn-fn { background: rgba(0,0,0,0.06); color: var(--gray); font-size: 14px; }
.cbtn-eq { background: linear-gradient(135deg,#8B1A2E,#C9A84C); color: white; border: none; box-shadow: 0 4px 16px rgba(139,26,46,0.3); }
body.dark .cbtn-fn { color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); }
body.dark .cbtn-op { color: #C9A84C; background: rgba(201,168,76,0.12); }
.calc-display {
  background: linear-gradient(135deg, #0D0A07, #1A0A10);
  border-radius: 20px; padding: 24px 20px 16px;
  margin-bottom: 16px; min-height: 100px;
}
.calc-expr { font-size: 14px; color: rgba(255,255,255,0.4); min-height: 20px; text-align: right; margin-bottom: 8px; font-family: 'DM Sans', sans-serif; word-break: break-all; }
.calc-result { font-family: 'Fraunces', serif; font-size: 46px; font-weight: 900; color: white; text-align: right; letter-spacing: -1px; word-break: break-all; }
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cbtn-sci { background: rgba(139,26,46,0.07); color: #8B1A2E; font-size: 13px; font-weight: 700; }
body.dark .cbtn-sci { background: rgba(201,168,76,0.1); color: #C9A84C; }

.holiday-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 16px;
  margin-bottom: 10px; transition: all 0.2s;
}
.holiday-item:hover { border-color: #8B1A2E; transform: translateX(4px); }
.holiday-date-box {
  background: linear-gradient(135deg, #8B1A2E, #C9A84C);
  color: white; border-radius: 12px; padding: 10px 14px;
  text-align: center; min-width: 52px; flex-shrink: 0;
}
.holiday-date-num { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 900; line-height: 1; }
.holiday-date-mon { font-size: 10px; opacity: 0.85; letter-spacing: 0.5px; text-transform: uppercase; }
.holiday-name { font-weight: 700; color: var(--text); font-size: 15px; }
.holiday-type { font-size: 12px; color: var(--gray); margin-top: 3px; }
.holiday-badge { margin-left: auto; padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.hbadge-national { background: rgba(139,26,46,0.1); color: #8B1A2E; }
.hbadge-state { background: rgba(201,168,76,0.12); color: #C9A84C; }
.hbadge-regional { background: rgba(26,92,139,0.1); color: #1A5C8B; }

.att-subject-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 18px; padding: 18px; margin-bottom: 12px;
  transition: all 0.2s;
}
.att-subject-card:hover { border-color: rgba(139,26,46,0.3); }
.att-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.att-subject-name { font-weight: 700; font-size: 15px; color: var(--text); }
.att-pct { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 900; }
.att-progress-bar { height: 8px; background: var(--border); border-radius: 100px; overflow: hidden; margin-bottom: 14px; }
.att-progress-fill { height: 100%; border-radius: 100px; transition: width 0.5s ease; }
.att-counts { font-size: 12px; color: var(--gray); margin-bottom: 12px; display: flex; gap: 14px; }
.att-counts span { font-weight: 600; }
.att-btns { display: flex; gap: 6px; }
.att-btn { flex: 1; padding: 8px 4px; border-radius: 10px; border: 1.5px solid transparent; font-weight: 700; font-size: 12px; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 3px; }
.att-btn:active { transform: scale(0.95); }
/* ===== ATTENDANCE PAGE — CLEAN THEME-ADAPTIVE ===== */
#pg-attendance .page-content {
  background: var(--bg);
  min-height: 100vh;
}
#pg-attendance .top-nav {
  background: var(--nav-bg) !important;
  border-bottom: 1px solid var(--border);
}
.att-premium-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: relative;
}
.att-premium-card::before { display:none; }
.att-premium-header {
  background: linear-gradient(135deg, #8B1A2E, #C44B5A);
  padding: 16px 20px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.att-premium-body {
  padding: 20px;
  background: var(--card-bg);
}
@keyframes attRingPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(74,222,128,0.5)); }
  50% { filter: drop-shadow(0 0 12px rgba(74,222,128,0.8)); }
}
@keyframes attRingPulseAmber {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(245,158,11,0.5)); }
  50% { filter: drop-shadow(0 0 12px rgba(245,158,11,0.8)); }
}
@keyframes attRingPulseRed {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(239,68,68,0.5)); }
  50% { filter: drop-shadow(0 0 12px rgba(239,68,68,0.8)); }
}
@keyframes attRingDraw {
  from { stroke-dashoffset: var(--ring-full); }
  to { stroke-dashoffset: var(--ring-offset); }
}
.att-today-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
}
.att-today-card::before { display:none; }
.att-tab-premium {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}

.att-present { background: rgba(16,185,129,0.1); color: #10b981; border-color: rgba(16,185,129,0.25); }
.att-present:hover { background: #10b981; color: white; border-color: #10b981; }
.att-absent { background: rgba(239,68,68,0.08); color: #ef4444; border-color: rgba(239,68,68,0.22); }
.att-absent:hover { background: #ef4444; color: white; border-color: #ef4444; }
.att-noclass { background: rgba(156,163,175,0.08); color: #9ca3af; border-color: rgba(156,163,175,0.2); }
.att-noclass:hover { background: #6b7280; color: white; border-color: #6b7280; }
.att-del { background: transparent; border: 1px solid var(--border) !important; color: var(--gray); flex: 0 !important; padding: 8px 12px !important; border-radius: 10px; cursor: pointer; font-size: 14px; }
.att-summary {
  background: linear-gradient(135deg, #0D0A07, #1A0A10);
  border-radius: 20px; padding: 20px; margin-bottom: 20px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; text-align: center;
}
.att-sum-num { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 900; color: white; }
.att-sum-label { font-size: 11px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.att-add-form {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 18px; padding: 18px; margin-bottom: 16px;
}
.att-add-form h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.att-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  outline: none; margin-bottom: 10px; box-sizing: border-box;
}
.att-input:focus { border-color: #8B1A2E; }
.att-add-btn {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, #8B1A2E, #C9A84C);
  color: white; border: none; border-radius: 12px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  font-weight: 700; cursor: pointer;
}

.feat-page { padding: 16px; max-width: 600px; margin: 0 auto; }
.feat-header { margin-bottom: 20px; }
.feat-title { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 900; color: var(--text); }
.feat-subtitle { font-size: 13px; color: var(--gray); margin-top: 4px; }

.dash-menu-list {
  padding: 0 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dash-menu-row:hover {
  transform: translateX(4px);
  border-color: #8B1A2E;
  box-shadow: 0 4px 16px rgba(139,26,46,0.12);
}
.dash-menu-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-menu-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.dash-menu-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  font-family: 'Syne', sans-serif;
}
.dash-menu-sub {
  font-size: 12px;
  color: var(--gray);
}
.dash-menu-arrow {
  font-size: 22px;
  color: var(--gray);
  font-weight: 300;
  transition: transform 0.2s;
}
.dash-menu-row:hover .dash-menu-arrow {
  transform: translateX(4px);
  color: #8B1A2E;
}

#pg-login {
  min-height: 100vh;
  background: #0e0c0a;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.lamp-scene {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
  transition: background 0.8s ease;
}

.lamp-scene.lamp-on {
  background: #1c1208;
}

.lamp-back {
  position: fixed;
  top: 16px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  z-index: 99999 !important;
  background: rgba(139,26,46,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(201,168,76,0.4);
  transition: all 0.2s;
  pointer-events: all !important;
  cursor: pointer !important;
  isolation: isolate;
}
.lamp-back:hover {
  background: #8B1A2E;
  color: #C9A84C;
  transform: translateX(-2px);
  border-color: #C9A84C;
}

.lamp-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

.lamp-title {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: rgba(255,255,255,0.15);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  transition: color 0.8s;
}
.lamp-scene.lamp-on .lamp-title { color: rgba(255,220,130,0.7); }

.lamp-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.2);
  margin-bottom: 32px;
  transition: color 0.8s;
}
.lamp-scene.lamp-on .lamp-sub { color: rgba(255,200,80,0.5); }

.lamp-wrap {
  position: relative;
  width: 180px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s;
}
.lamp-wrap:hover { transform: scale(1.04); }
.lamp-wrap:active { transform: scale(0.97); }

.lamp-glow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,60,0.35) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.8s ease, width 0.8s, height 0.8s;
  pointer-events: none;
}
.lamp-scene.lamp-on .lamp-glow {
  opacity: 1;
  width: 320px;
  height: 320px;
}

.lamp-svg { width: 180px; position: relative; z-index: 2; }

#lampBead {
  animation: beadSwing 2s ease-in-out infinite;
  transform-origin: 90px 168px;
}
@keyframes beadSwing {
  0%,100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.lamp-hint {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  transition: color 0.8s;
}
.lamp-scene.lamp-on .lamp-hint { color: rgba(255,200,80,0.6); }

.lamp-side::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 6px;
  background: radial-gradient(ellipse, rgba(255,200,60,0.6), transparent);
  border-radius: 50%;
  transition: width 0.8s ease;
  pointer-events: none;
}
.lamp-scene.lamp-on .lamp-side::after { width: 260px; }

.lamp-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

.lamp-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(20px);
  opacity: 0.35;
  filter: blur(1px);
  transition: opacity 0.8s ease, filter 0.8s ease, background 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease;
  pointer-events: none;
}

.lamp-scene.lamp-on .lamp-card {
  opacity: 1;
  filter: blur(0);
  pointer-events: all;
  background: rgba(28, 18, 8, 0.85);
  border-color: rgba(201,168,76,0.2);
  box-shadow: 0 0 60px rgba(255,180,40,0.08), 0 24px 60px rgba(0,0,0,0.5);
}

.lamp-form-side::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,180,40,0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.8s;
  pointer-events: none;
}
.lamp-scene.lamp-on .lamp-form-side::before { opacity: 1; }

.lamp-card .input-wrap input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #f0e8d8;
}
.lamp-card .input-wrap input:focus {
  border-color: #C9A84C;
  background: rgba(201,168,76,0.06);
}
.lamp-card label { color: rgba(255,255,255,0.5); font-size: 11px; }
.lamp-card .login-welcome-title { color: #f0e8d8; }
.lamp-card .login-welcome-sub { color: rgba(255,255,255,0.4); }
.lamp-card .auth-tab { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.4); }
.lamp-card .auth-tab.active { background: linear-gradient(135deg,#8B1A2E,#C9A84C); color: white; }
.lamp-card .login-submit-btn { background: linear-gradient(135deg,#8B1A2E,#C9A84C); }
.lamp-card .errmsg { color: #f87171; }
.lamp-card .input-icon { color: rgba(255,255,255,0.4); }
.lamp-card .eye-btn { background: transparent; border: none; color: rgba(255,255,255,0.4); }

@media (max-width: 640px) {
  .lamp-scene { flex-direction: column; }
  .lamp-side { padding: 60px 20px 20px; flex: 0 0 auto; }
  .lamp-wrap { width: 130px; }
  .lamp-svg { width: 130px; }
  .lamp-glow { width: 160px; height: 160px; }
  .lamp-scene.lamp-on .lamp-glow { width: 240px; height: 240px; }
  .lamp-form-side { flex: 1; padding: 10px 16px 30px; }
}

@media (max-width: 500px) {
  #yearCalGrid { grid-template-columns: repeat(2,1fr) !important; gap: 8px !important; }
}
@media (max-width: 340px) {
  #yearCalGrid { grid-template-columns: 1fr !important; }
}

.home-logo-shine {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.hl-kno {
  background: linear-gradient(135deg, #8B1A2E 0%, #C44B5A 50%, #8B1A2E 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoShimmer 3s linear infinite;
}

.hl-via {
  background: linear-gradient(135deg, #C9A84C 0%, #F5D06A 40%, #C9A84C 70%, #A07830 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoShimmer 3s linear infinite reverse;
}

@keyframes logoShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.97);
  color: #1f2937;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 1px 0 rgba(255,255,255,0.3) inset;
  letter-spacing: 0.1px;
}
.google-btn:hover {
  background: white;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  transform: translateY(-2px) scale(1.01);
}
.google-btn:active { transform: translateY(0) scale(0.99); }
.google-btn svg { flex-shrink: 0; }

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

.lamp-card .google-btn {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.12);
}
.lamp-card .google-btn:hover {
  background: rgba(255,255,255,0.14);
}
.lamp-card .or-divider {
  color: rgba(255,255,255,0.3);
}

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

/* Profile page buttons - touch fix */
#pg-profile button, #pg-profile a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}


   ====================================== */

/* HOME PAGE — Dark mode fixes */
body.dark #pg-home {
  background: #111010;
}
body.dark #pg-home .home-option-card {
  background: #1E1A16 !important;
  border-color: rgba(255,255,255,0.08) !important;
}
body.dark #pg-home .hoc-title { color: #F0EDE8 !important; }
body.dark #pg-home .hoc-desc  { color: rgba(255,255,255,0.5) !important; }
body.dark #pg-home .hoc-icon-wrap { background: rgba(255,255,255,0.08) !important; }
body.dark #pg-home .section-title { color: #F0EDE8 !important; }
body.dark #pg-home .section-tag  {
  color: #C9A84C !important;
  background: rgba(201,168,76,0.12) !important;
  border-color: rgba(201,168,76,0.25) !important;
}
body.dark #pg-home .step h3 { color: #F0EDE8 !important; }
body.dark #pg-home .step p  { color: rgba(255,255,255,0.6) !important; }
body.dark #pg-home .hero h1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body.dark #pg-home .hero h1 span {
  color: #C9A84C !important;
  -webkit-text-fill-color: #C9A84C !important;
}
body.dark #pg-home .hero p { color: rgba(255,255,255,0.7) !important; }
body.dark #pg-home footer p { color: rgba(255,255,255,0.45) !important; }
body.dark #pg-home footer a { color: rgba(255,255,255,0.7) !important; }
body.dark #pg-home nav { background: rgba(13,10,7,0.95) !important; border-bottom-color: rgba(201,168,76,0.1) !important; }
body.dark #pg-home .logo { color: #ffffff !important; }

/* HOME PAGE — Light mode fixes */
body:not(.dark) #pg-home footer p { color: rgba(255,255,255,0.5); }
body:not(.dark) #pg-home footer a { color: rgba(255,255,255,0.8); }

/* DASHBOARD / INNER PAGES — Light mode: fix white inline text */
body:not(.dark) .page-content .dash-streak-info .dash-streak-title,
body:not(.dark) .page-content [style*="rgba(255,255,255"] {
  color: var(--text) !important;
}

/* Target specific white-text elements in inner pages for light mode */
body:not(.dark) #pg-dashboard .dash-streak-title { color: var(--text) !important; }
body:not(.dark) #pg-dashboard .dash-streak-val   { color: var(--text) !important; }
body:not(.dark) #pg-dashboard [style*="color:rgba(255,255,255"] { color: var(--text) !important; }
body:not(.dark) #pg-notes [style*="color:rgba(255,255,255"]     { color: var(--text) !important; }
body:not(.dark) #pg-attendance [style*="color:rgba(255,255,255"]{ color: var(--text) !important; }
body:not(.dark) #pg-upload [style*="color:rgba(255,255,255"]    { color: var(--text) !important; }
body:not(.dark) #pg-profile [style*="color:rgba(255,255,255"]   { color: var(--text) !important; }
body:not(.dark) #pg-pyq [style*="color:rgba(255,255,255"]       { color: var(--text) !important; }

/* White bg elements in inner pages that need dark text in light mode */
body:not(.dark) .page-content [style*="background:rgba(255,255,255,0.0"],
body:not(.dark) .page-content [style*="background:rgba(255,255,255,0.1"] {
  background: rgba(0,0,0,0.04) !important;
}
body:not(.dark) .page-content [style*="border:1px solid rgba(255,255,255"],
body:not(.dark) .page-content [style*="border-bottom:1px solid rgba(255,255,255"] {
  border-color: rgba(0,0,0,0.1) !important;
}

/* Progress bars / white opacity backgrounds in light mode */
body:not(.dark) .page-content [style*="background:rgba(255,255,255,0.08"],
body:not(.dark) .page-content [style*="background:rgba(255,255,255,0.04"],
body:not(.dark) .page-content [style*="background:rgba(255,255,255,0.06"] {
  background: rgba(0,0,0,0.06) !important;
}

/* Dash attendance log items in light mode */
body:not(.dark) #pg-attendance [style*="border-bottom:1px solid rgba(255,255,255"] {
  border-color: var(--border) !important;
}
body:not(.dark) #pg-dashboard [style*="border-bottom:1px solid rgba(255,255,255"] {
  border-color: var(--border) !important;
}


/* ===== OUR TECH SECTION ===== */
.our-tech-section { padding:70px 20px; background:var(--bg); text-align:center; }
.our-tech-section .section-tag { display:inline-block;background:rgba(201,168,76,0.12);color:#C9A84C;font-size:11px;font-weight:800;letter-spacing:2px;text-transform:uppercase;padding:6px 14px;border-radius:100px;border:1px solid rgba(201,168,76,0.25);margin-bottom:12px; }
.our-tech-section .section-title { font-family:'Syne',sans-serif;font-size:clamp(26px,4vw,38px);font-weight:900;color:var(--text);margin-bottom:48px;letter-spacing:-1px; }
.tech-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;max-width:960px;margin:0 auto; }
.tech-card { background:var(--card-bg);border:1px solid var(--border);border-radius:20px;padding:28px 24px;text-align:left;transition:transform 0.3s,box-shadow 0.3s; }
.tech-card:hover { transform:translateY(-6px);box-shadow:0 16px 40px rgba(0,0,0,0.12); }
.tech-icon-wrap { width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:18px; }
.tech-card h3 { font-family:'Syne',sans-serif;font-size:17px;font-weight:800;color:var(--text);margin-bottom:8px; }
.tech-card p { font-size:13px;color:var(--gray);line-height:1.6;margin:0; }
.tech-badge { display:inline-block;font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;padding:3px 10px;border-radius:100px;margin-top:14px; }




body.dark .sidebar,
body .sidebar {
  background: #1C0A0F !important;
  border-right: 1px solid rgba(201,168,76,0.15) !important;
}


/* ===== SIDEBAR FORCE FIX ===== */
.sidebar,
body .sidebar,
body.dark .sidebar,
.app-layout .sidebar,
body.dark .app-layout .sidebar,
.page-section .sidebar,
.page-section.active-page .sidebar {
  background: #1C0A0F !important;
  background-color: #1C0A0F !important;
}

/* Force all child sections of sidebar to be transparent so dark bg shows */
.sidebar .sidebar-nav,
.sidebar .sidebar-logo,
.sidebar .sidebar-bottom {
  background: transparent !important;
  background-color: transparent !important;
}

/* Force ALL nav items and their children to be visible */
.sidebar .nav-item,
.sidebar a.nav-item,
.sidebar button.nav-item {
  color: rgba(255,255,255,0.75) !important;
  background: transparent !important;
}
.sidebar .nav-item span,
.sidebar a.nav-item span,
.sidebar button.nav-item span {
  color: rgba(255,255,255,0.75) !important;
}
.sidebar .nav-item:hover,
.sidebar a.nav-item:hover {
  background: rgba(255,255,255,0.08) !important;
  color: white !important;
}
.sidebar .nav-item:hover span {
  color: white !important;
}
.sidebar .nav-item.active,
.sidebar a.nav-item.active {
  background: rgba(201,168,76,0.15) !important;
  color: #C9A84C !important;
}
.sidebar .nav-item.active span {
  color: #C9A84C !important;
}
.sidebar .nav-label {
  color: rgba(255,255,255,0.3) !important;
}
/* Take a Break gold link */
.sidebar .nav-item[style*="color:#C9A84C"],
.sidebar a[style*="color:#C9A84C"] {
  color: #C9A84C !important;
}
.sidebar .nav-item[style*="color:#C9A84C"] span {
  color: #C9A84C !important;
}
/* Logout red link */
.sidebar .nav-item[style*="color:#ef4444"],
.sidebar a[style*="color:#ef4444"] {
  color: #ef4444 !important;
}
/* User card */
.sidebar .user-card {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}
.sidebar .user-name { color: rgba(255,255,255,0.9) !important; }
.sidebar .user-roll { color: rgba(255,255,255,0.4) !important; }
.sidebar .logo-text { color: white !important; }
#appLoader {
  position: fixed; inset: 0; z-index: 99999;
  background: #1C0A0F;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0;
  transition: opacity 0.5s ease;
}
#appLoader .splash-logo {
  font-family: Syne, sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
  animation: splashLogoIn 0.7s cubic-bezier(0.22,1,0.36,1) both;
  line-height: 1;
}
#appLoader .splash-logo span { color: #C9A84C; }
#appLoader .splash-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 10px;
  animation: splashTagIn 0.7s 0.25s cubic-bezier(0.22,1,0.36,1) both;
}
#appLoader .splash-dots {
  display: flex; gap: 8px;
  margin-top: 48px;
  animation: splashTagIn 0.5s 0.5s ease both;
}
#appLoader .splash-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #C9A84C;
  opacity: 0.3;
  animation: splashDot 1.2s 0.5s ease-in-out infinite;
}
#appLoader .splash-dots span:nth-child(2) { animation-delay: 0.7s; }
#appLoader .splash-dots span:nth-child(3) { animation-delay: 0.9s; }
#appLoader .splash-glow {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,26,46,0.25) 0%, transparent 70%);
  animation: splashGlow 2s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes splashLogoIn {
  from { opacity: 0; transform: translateY(24px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes splashTagIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes splashDot {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.4); }
}
@keyframes splashGlow {
  from { transform: scale(0.9); opacity: 0.6; }
  to   { transform: scale(1.15); opacity: 1; }
}
