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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
  min-height: 100vh;
}
/* Info icon */
#infoIcon {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(99,102,241,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#infoIcon i {
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}
#infoIcon:hover {
  transform: scale(1.15) rotate(6deg);
  box-shadow: 0 12px 35px rgba(34,211,238,0.7);
}

#overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.6), rgba(0,0,0,0.85));
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}
.overlayFooter {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.4px;
  user-select: none;
}
#overlayBox {
  background: rgba(255, 255, 255, 0.08);
  color: #f9fafb;
  padding: 24px 26px;
  border-radius: 14px;
  min-width: 280px;
  max-width: 90%;
  text-align: center;
  position: relative;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.4),
    inset 0 0 0.5px rgba(255,255,255,0.3);

  animation: popup 0.35s ease;
}
#closeOverlay {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 18px;
  cursor: pointer;
  color: #e5e7eb;
  transition: color 0.2s ease, transform 0.2s ease;
}
#closeOverlay i {
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
}
#closeOverlay:hover {
  color: #22d3ee;
  transform: rotate(90deg);
}
@keyframes popup {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* ===== MESSAGE OVERLAY ===== */
.msg-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.msg-overlay.hidden{
  display: none;
}

.msg-box{
  background: #111;
  color: #fff;
  padding: 22px 26px;
  border-radius: 16px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  animation: popIn 0.3s ease;
}

.msg-box i{
  font-size: 36px;
  color: #ff4d4d;
  margin-bottom: 10px;
}

.msg-box p{
  font-size: 15px;
  line-height: 1.6;
}

.msg-box button{
  margin-top: 16px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg,#ff4d4d,#ff7a7a);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

@keyframes popIn{
  from{transform: scale(0.8); opacity:0}
  to{transform: scale(1); opacity:1}
}
/* ===== GLASSMORPHISM EFFECT ===== */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
}
/* ===== SMALL LOADING SPINNER ===== */
.title-spinner{
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top: 3px solid #22c55e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

@keyframes spin{
  to{ transform: rotate(360deg); }
}
/* ===== LOGIN PAGE ===== */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"><animate attributeName="r" values="100;120;100" dur="3s" repeatCount="indefinite"/></circle><circle cx="800" cy="300" r="80" fill="url(%23a)"><animate attributeName="r" values="80;95;80" dur="4s" repeatCount="indefinite"/></circle></svg>');
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.login-header {
  margin-bottom: 32px;
}

.logo-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
  animation: float 3s ease-in-out infinite;
}

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

.logo-circle i {
  font-size: 32px;
  color: white;
}

.login-card h2 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #333, #666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.login-card p {
  color: #64748b;
  font-weight: 400;
  font-size: 16px;
}

.input-group {
  position: relative;
  margin-bottom: 24px;
}

.input-field {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;
}

.input-field:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 18px;
  transition: color 0.3s ease;
}

.input-field:focus + .input-icon {
  color: #667eea;
}

.hidden {
  display: none !important;
}

/* ===== BUTTONS ===== */
.primary-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 24px;
}

.gradient-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.gradient-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.5);
}

.btn-shimmer {
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.toggle-link {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

.highlight-link {
  color: #667eea;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.highlight-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.highlight-link:hover::after {
  width: 100%;
}

/* ===== DASHBOARD ===== */
.dashboard-container {
  min-height: 100vh;
  padding-bottom: 100px;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.topbar {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: rotate(90deg);
}

.logo-container {
  flex: 1;
  text-align: center;
}

.logo-img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.topbar-spacer {
  width: 50px;
}

/* ===== GREETING ===== */
.greeting-section {
  padding: 32px 24px;
}

.greeting-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.greeting-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  animation: gradientShift 3s ease infinite;
}

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

.greeting-text {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.greeting-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(102, 126, 234, 0.1), transparent);
  border-radius: 24px;
}

/* ===== BANNER ===== */
.banner-section {
  padding: 0 24px 32px;
}

.banner-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.banner-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.banner-card:hover .banner-img {
  transform: scale(1.05);
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

/* ===== SOCIAL BUTTONS ===== */
.social-section {
  padding: 0 24px 32px;
}

.social-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
}

.social-card h4 {
  text-align: center;
  color: #1e293b;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

.social-buttons {
  display: flex;
  gap: 16px;
}

.social-btn {
  flex: 1;
  padding: 20px 24px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.channel-btn {
  background: linear-gradient(135deg, #0088cc, #229ED9);
  box-shadow: 0 12px 30px rgba(34, 158, 217, 0.4);
}

.group-btn {
  background: linear-gradient(135deg, #43a047, #66bb6a);
  box-shadow: 0 12px 30px rgba(67, 160, 71, 0.4);
}

.social-btn:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.social-btn i {
  font-size: 20px;
}

/* ===== SUBJECTS GRID ===== */


/* GRID – 2 buttons per row */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 0 20px 32px;
  max-width: 900px;
  margin: 0 auto;
}

/* From Uiverse.io by adamgiebl */ 
.subject-card {
  background-color: #e0e0e0;
  border-radius: 50px;
  box-shadow: inset 4px 4px 10px #bcbcbc, inset -4px -4px 10px #ffffff;
  color: #4d4d4d;
  cursor: pointer;
  font-size: 18px;
  padding: 15px 40px;
  transition: all 0.2s ease-in-out;
  border: 2px solid rgb(206, 206, 206);
}

.subject-card:hover {
  box-shadow: inset 2px 2px 5px #bcbcbc, inset -2px -2px 5px #ffffff, 2px 2px 5px #bcbcbc, -2px -2px 5px #ffffff;
}

.subject-card:focus {
  outline: none;
  box-shadow: inset 2px 2px 5px #bcbcbc, inset -2px -2px 5px #ffffff, 2px 2px 5px #bcbcbc, -2px -2px 5px #ffffff;
}

.subject-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  text-align: center;
  color: #0f172a;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 0 1px rgba(255, 255, 255, 1);
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.subject-card:hover h4 {
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 0 2px rgba(255, 255, 255, 1);
} 
/* ENHANCED 3D WHITE BUTTON */

.card-icon {
  display: flex;                /* magic starts here */
  align-items: center;          /* vertical center */
  justify-content: center;      /* horizontal center */

  font-size: 34px;
  margin-bottom: 14px;
  color: #6b7280;

  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8);

  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.subject-card:hover .card-icon {
  color: #1e293b;
  transform: translateY(-3px) scale(1.05);
}

/* TITLE with depth */

/* ARROW with spring effect */
.card-arrow {
  display: flex;              /* center magic */
  align-items: center;        /* vertical */
  justify-content: center;    /* horizontal */

  margin-top: auto;
  font-size: 20px;
  color: #64748b;
  opacity: 0;

  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.subject-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(12px) scale(1.1);
  color: #1e293b;
}

/* ===== POWERED BY ===== */
.powered-section {
  padding: 48px 24px;
  display: flex;
  color: #1e293b;
  justify-content: center;} 

.powered-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: #1e293b;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #f0f4f8 100%);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  /* Modern 3D base shadows */
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    3px 3px 12px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.powered-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(248, 250, 252, 0.4));
  border-radius: 50px;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

/* Subtle shimmer effect */
.powered-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    transparent 100%);
  transition: left 0.6s ease;
}

.powered-btn:hover::after {
  left: 100%;
}

.powered-btn:hover {
  transform: translateY(-6px) rotateX(3deg);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.18),
    0 15px 35px rgba(0, 0, 0, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 1);
}

.powered-btn:hover::before {
  opacity: 1;
}

.powered-btn:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.2),
    inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

.powered-btn i {
  font-size: 20px;
  color: #3b82f6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.powered-btn:hover i {
  color: #1d4ed8;
  transform: scale(1.1) translateY(-1px);
}

/* Text glow effect */
.powered-btn span {
  position: relative;
}

.powered-btn:hover span {
  text-shadow: 
    0 0 12px rgba(59, 130, 246, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== DISCLAIMER ===== */
.disclaimer-section {
  padding: 40px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.disclaimer-card {
  border-radius: 24px;
  padding: 40px;
}

.disclaimer-content p {
  font-size: 14px;
  color: black;
  line-height: 1.7;
  margin-bottom: 24px;
  text-align: center;
}

.disclaimer-content strong {
  color: #1e293b;
}

.contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 24px 0;
  flex-wrap: wrap;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: white;
  transition: all 0.3s ease;
}

.email-btn {
  background: linear-gradient(135deg, #e53935, #c62828);
  box-shadow: 0 10px 30px rgba(229, 57, 53, 0.4);
}

.telegram-btn {
  background: linear-gradient(135deg, #0088cc, #229ED9);
  box-shadow: 0 10px 30px rgba(34, 158, 217, 0.4);
}

.contact-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-btn i {
  font-size: 18px;
}

.remove-note {
  text-align: center;
  font-size: 14px;
  color: #ef4444;
  font-weight: 600;
  margin-top: 16px;
}

/* ===== SIDE MENU ===== */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding-top: 80px;
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.1);
}

.menu.open {
  transform: translateX(0);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  text-decoration: none;
  color: #1e293b;
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.menu-item:hover {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), transparent);
  transform: translateX(8px);
  color: #667eea;
}

.menu-item i {
  font-size: 18px;
  width: 20px;
}

.closebtn {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.closebtn:hover {
  background: rgba(229, 57, 53, 0.1);
  color: #e53935;
  transform: rotate(90deg);
}

.logout-item {
  margin-top: auto;
  border-top: 2px solid rgba(229, 57, 53, 0.2);
  color: #e53935 !important;
}

.logout-item:hover {
  background: rgba(229, 57, 53, 0.1);
  color: #e53935 !important;
}


/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(102, 126, 234, 0); }
  100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

.pulse-effect {
  animation: pulse 2s infinite;
}




/* ===== COMPREHENSIVE RESPONSIVE CSS (320px - 1000px) - 40% SMALLER ON 320-500px ===== */

/* BASE STYLES (unchanged) */

/* ===== ULTRA SMALL DEVICES (320px - 500px) - 40% SIZE REDUCTION ===== */
@media screen and (max-width: 500px) {
  /* Scale Factor: 60% of normal size (40% smaller) */
  .login-container {
    padding: 6px; /* 10px → 60% */
  }

  .login-card {
    padding: 14px 12px; /* 24px → 60% */
    border-radius: 12px; /* 20px → 60% */
    margin: 0;
  }

  .logo-circle {
    width: 36px; /* 60px → 60% */
    height: 36px;
  }

  .logo-circle i {
    font-size: 14px; /* 24px → 60% */
  }

  .login-card h2 {
    font-size: 13px; /* 22px → 60% */
  }

  .login-card p {
    font-size: 8px; /* 14px → 60% */
  }

  .input-field {
    padding: 8px 10px 8px 26px; /* 14px → 60% */
    font-size: 9px; /* 15px → 60% */
    border-radius: 8px; /* 14px → 60% */
  }

  .input-icon {
    left: 10px; /* 16px → 60% */
    font-size: 10px; /* 16px → 60% */
  }

  .primary-btn {
    padding: 8px; /* 14px → 60% */
    font-size: 9px; /* 15px → 60% */
    border-radius: 8px; /* 14px → 60% */
  }

  .toggle-link {
    font-size: 8px; /* 14px → 60% */
  }

  /* Dashboard - 40% Smaller */
  .topbar {
    padding: 7px 10px; /* 12px → 60% */
  }

  .greeting-section {
    padding: 12px 10px; /* 20px → 60% */
  }

  .greeting-card {
    padding: 14px 12px; /* 24px → 60% */
    border-radius: 12px;
  }

  .greeting-text {
    font-size: 13px; /* 22px → 60% */
  }

  .banner-img {
    height: 96px; /* 160px → 60% */
  }

  .social-section {
    padding: 0 10px 14px; /* 24px → 60% */
  }

  .social-card {
    padding: 14px 12px; /* 24px → 60% */
    border-radius: 12px;
  }

  .social-card h4 {
    font-size: 11px; /* 18px → 60% */
  }

  .social-btn {
    padding: 10px 12px; /* 16px → 60% */
    font-size: 9px; /* 15px → 60% */
    border-radius: 10px; /* 16px → 60% */
  }

  .social-btn i {
    font-size: 11px; /* 18px → 60% */
  }

  .subjects-grid {
    gap: 7px; /* 12px → 60% */
    padding: 0 10px 14px; /* 24px → 60% */
  }

  .subject-card {
    padding: 12px 10px; /* 20px → 60% */
    min-height: 60px; /* 100px → 60% */
    border-radius: 10px; /* 16px → 60% */
  }

  .card-icon {
    font-size: 17px; /* 28px → 60% */
    margin-bottom: 7px; /* 12px → 60% */
  }

  .subject-card h4 {
    font-size: 9px; /* 15px → 60% */
  }

  .powered-section {
    padding: 14px 10px; /* 24px → 60% */
  }

  .powered-btn {
    padding: 8px 14px; /* 14px → 60% */
    font-size: 9px; /* 15px → 60% */
    border-radius: 24px; /* 40px → 60% */
  }

  .powered-btn i {
    font-size: 10px; /* 16px → 60% */
  }

  .disclaimer-section {
    padding: 14px 10px; /* 24px → 60% */
  }

  .disclaimer-card {
    padding: 14px 12px; /* 24px → 60% */
    border-radius: 12px;
  }

  .disclaimer-content p {
    font-size: 8px; /* 13px → 60% */
  }

  .contact-buttons {
    gap: 7px; /* 12px → 60% */
  }

  .contact-btn {
    padding: 8px 12px; /* 14px → 60% */
    font-size: 8px; /* 14px → 60% */
    border-radius: 10px;
  }

  .contact-btn i {
    font-size: 10px; /* 16px → 60% */
  }

  .menu {
    width: 100vw;
    max-width: 168px; /* 280px → 60% */
  }

  .menu-item {
    padding: 10px 14px; /* 16px → 60% */
    font-size: 9px; /* 15px → 60% */
  }

  .closebtn {
    top: 12px;
    right: 14px;
    font-size: 14px; /* 24px → 60% */
  }
}

/* ===== SMALL DEVICES (501px - 768px) - Previous 481-768px styles ===== */
@media screen and (min-width: 501px) and (max-width: 768px) {
  .login-container {
    padding: 16px;
  }

  .login-card {
    max-width: 420px;
    padding: 32px 24px;
    margin: 0 auto;
    border-radius: 22px;
  }

  .logo-circle {
    width: 70px;
    height: 70px;
  }

  .logo-circle i {
    font-size: 28px;
  }

  .login-card h2 {
    font-size: 24px;
  }

  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 20px 32px;
  }

  .social-buttons,
  .contact-buttons {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===== MEDIUM DEVICES (769px - 1000px) - Unchanged ===== */
@media screen and (min-width: 769px) and (max-width: 1000px) {
  .login-container {
    padding: 24px;
  }

  .login-card {
    max-width: 420px;
    padding: 40px 32px;
    border-radius: 24px;
  }

  .subjects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 24px 40px;
  }
}

/* ===== COMMON RESPONSIVE (All devices up to 1000px) ===== */
@media screen and (max-width: 1000px) {
  .dashboard-container {
    padding-bottom: 80px;
  }

  .subjects-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media screen and (hover: none) and (pointer: coarse) {
  .gradient-btn:hover,
  .social-btn:hover,
  .subject-card:hover {
    transform: none;
  }
  
  .gradient-btn:active,
  .social-btn:active {
    transform: translateY(-2px) scale(0.98);
  }
}
  

