

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

body{
  font-family: 'Outfit', sans-serif;
  display:flex;justify-content:center;
  padding:40px 0;
  color:var(--light-text-primary, #110b08);
  min-height:100vh;
  animation: pageFade 0.8s ease;
}

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

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


.floating-food{
  position:fixed;top:0;left:0;
  width:100%;height:100%;
  pointer-events:none;overflow:hidden;z-index:-2;
}

.floating-food span{
  position:absolute;font-size:52px;opacity:0.12;
  transition:transform 0.3s ease;
  animation:floatFood 22s linear infinite;
}

.floating-food span:nth-child(1){left:5%;top:10%;animation-delay:0s;}
.floating-food span:nth-child(2){left:20%;top:35%;animation-delay:2s;}
.floating-food span:nth-child(3){left:35%;top:60%;animation-delay:4s;}
.floating-food span:nth-child(4){left:50%;top:20%;animation-delay:6s;}
.floating-food span:nth-child(5){left:65%;top:70%;animation-delay:8s;}
.floating-food span:nth-child(6){left:80%;top:40%;animation-delay:10s;}
.floating-food span:nth-child(7){left:15%;top:80%;animation-delay:12s;}
.floating-food span:nth-child(8){left:70%;top:50%;animation-delay:14s;}

@keyframes floatFood{
  0%{transform:translateY(0) translateX(0) rotate(0deg);}
  50%{transform:translateY(-40px) translateX(25px) rotate(180deg);}
  100%{transform:translateY(0) translateX(0) rotate(360deg);}
}


body.dark { 
  background: var(--slurpie-mesh-dark) no-repeat center center fixed !important;
  background-size: cover !important;
  background-color: #080808 !important;
  color: #f1e5ac !important; 
}
body.dark .profile-card, 
body.dark .avatar-section, 
body.dark .form-section { 
    background: rgba(23, 23, 23, 0.85); 
    border-color: rgba(212, 175, 55, 0.2); 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
body.dark .avatar-frame { background: #111; border-color: #D4AF37; }
body.dark .title { 
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
body.dark .input-group label { color: #D4AF37; }
body.dark input { background: #1a1a1a; border-color: rgba(212, 175, 55, 0.2); color: #f1e5ac; }
body.dark .save-btn { background: #D4AF37; color: #000; box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); }
body.dark .back-btn { background: rgba(0, 0, 0, 0.5); color: #D4AF37; border: 1px solid rgba(212, 175, 55, 0.2); }


.profile-wrapper{
  width:900px;max-width:96%;
  scroll-behavior:smooth;padding-right:12px;
}

.profile-wrapper::-webkit-scrollbar{width:8px;}
.profile-wrapper::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#5fbf8f,#2f7a4f);border-radius:10px;}
.profile-wrapper::-webkit-scrollbar-track{background:rgba(231,184,140,0.1);}


.profile-card{
  background:rgba(255,255,255,0.55);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  padding:50px;
  border-radius:28px;
  border:1px solid rgba(255,255,255,0.5);
  box-shadow:0 8px 40px rgba(0,0,0,0.08),inset 0 1px 0 rgba(255,255,255,0.8);
  transition:transform 0.25s ease,box-shadow 0.25s ease;
}

.profile-card:hover{
  box-shadow:0 16px 50px rgba(0,0,0,0.12),inset 0 1px 0 rgba(255,255,255,0.8);
}


.title{
  text-align:center;
  font-family:'Fredoka',cursive;font-size:36px;
  background:linear-gradient(135deg,#110b08,#1e8449);

  background-clip:text;
  margin-bottom:40px;
}


.avatar-section{
  background:rgba(255,255,255,0.5);
  padding:30px;border-radius:22px;
  border:1px solid rgba(255,255,255,0.4);
  box-shadow:0 4px 16px rgba(0,0,0,0.04);
  text-align:center;margin-bottom:36px;
  transition:all 0.25s ease;
}

.avatar-section:hover{
  box-shadow:0 8px 24px rgba(0,0,0,0.08);
}

.avatar-section h3{
  font-family:'Fredoka',cursive;
  color:#2f7a4f;margin-bottom:20px;
}


.avatar-carousel{display:flex;align-items:center;justify-content:center;gap:30px;margin-bottom:20px;}

.arrow{
  background:linear-gradient(135deg,#2f7a4f,#5fbf8f);
  border:none;width:52px;height:52px;
  border-radius:50%;font-size:22px;color:white;
  cursor:pointer;box-shadow:0 6px 16px rgba(47,122,79,0.3);
  transition:all 0.25s ease;
}

.arrow:hover{transform:scale(1.12);box-shadow:0 8px 22px rgba(47,122,79,0.4);}

.avatar-frame{
  width:140px;height:140px;
  border-radius:50%;
  border:5px solid #5fbf8f;
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  background:white;
  box-shadow:0 0 0 6px rgba(47,122,79,0.15),0 0 25px rgba(47,122,79,0.2),0 10px 30px rgba(0,0,0,0.1);
  transition:all 0.3s ease;
}

.avatar-frame:hover{
  transform:scale(1.05);
  box-shadow:0 0 0 8px rgba(47,122,79,0.2),0 0 35px rgba(47,122,79,0.3),0 14px 35px rgba(0,0,0,0.12);
}

.avatar-frame img{width:100%;height:100%;object-fit:cover;border-radius:50%;transition:opacity 0.3s ease;}

.save-avatar{
  margin-top:12px;padding:12px 30px;
  border:none;
  background:linear-gradient(135deg,#2f7a4f,#5fbf8f);
  color:white;font-size:14px;font-weight:600;
  border-radius:50px;cursor:pointer;
  box-shadow:0 6px 18px rgba(47,122,79,0.3);
  transition:all 0.25s ease;
}

.save-avatar:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(47,122,79,0.4);}


.form-section{
  background:rgba(255,255,255,0.5);
  padding:28px;border-radius:22px;
  border:1px solid rgba(255,255,255,0.4);
  box-shadow:0 4px 16px rgba(0,0,0,0.04);
  margin-bottom:32px;
  transition:all 0.25s ease;
}

.form-section:hover{
  box-shadow:0 8px 24px rgba(0,0,0,0.08);
}

.form-section h2{
  font-family:'Fredoka',cursive;
  color:#2f7a4f;margin-bottom:22px;font-size:20px;
  border-bottom:2px solid rgba(47,122,79,0.15);
  padding-bottom:8px;
}


.input-group{margin-bottom:18px;}

label{display:block;margin-bottom:6px;font-weight:600;color:var(--light-heading, #1e8449);font-size:14px;}

input{
  width:100%;padding:14px 18px;
  border-radius:16px;
  border:1.5px solid rgba(90,61,43,0.08);
  background:rgba(255,255,255,0.8);
  font-size:14px;font-family: 'Outfit', sans-serif;
  color:var(--light-text-primary, #110b08);
  transition:all 0.3s ease;
  box-shadow:0 2px 8px rgba(0,0,0,0.03);
}

input:focus{
  outline:none;border-color:#5fbf8f;
  background:white;
  box-shadow:0 0 0 4px rgba(47,122,79,0.08),0 4px 14px rgba(47,122,79,0.06);
}


.save-btn{
  width:100%;padding:16px;
  border:none;
  background:linear-gradient(135deg,#2f7a4f,#5fbf8f);
  color:white;font-size:16px;font-weight:600;
  font-family:'Fredoka',cursive;
  border-radius:50px;cursor:pointer;
  box-shadow:0 8px 24px rgba(47,122,79,0.3);
  transition:all 0.3s ease;
  position:relative;overflow:hidden;
}

.save-btn::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,0.2),transparent);
  opacity:0;transition:opacity 0.4s;
}

.save-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(47,122,79,0.4);
}

.save-btn:hover::after{opacity:1;}


#profileMessage,#avatarMessage{margin-top:18px;text-align:center;font-weight:600;color:#2f7a4f;}


.password-group{position:relative;}

.toggle-password{
  position:absolute;right:14px;top:50%;
  transform:translateY(-20%);cursor:pointer;
  font-size:20px;opacity:0.75;
  transition:transform 0.2s,opacity 0.2s;
}

.toggle-password:hover{opacity:1;transform:translateY(-20%) scale(1.15);}


.back-btn{
  position:fixed;top:14px;left:14px;
  display:flex;align-items:center;gap:6px;
  background:rgba(255,255,255,0.6);
  backdrop-filter:blur(14px);
  padding:4px 10px;border:none;border-radius:50px;
  font-size:11px;font-weight:600;
  color:var(--light-text-primary, #110b08);cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  border:1px solid rgba(255,255,255,0.4);
  transition:all 0.25s ease;z-index:1000;
}

.back-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(0,0,0,0.12);
  background:rgba(255,255,255,0.8);
}


@media (max-width: 600px) {
  body { padding: 20px 0; }
  .profile-wrapper { max-width: 92%; padding-right: 0; }
  .profile-card { padding: 30px 20px; border-radius: 20px; }
  .title { font-size: 28px; margin-bottom: 30px; }
  .avatar-carousel { gap: 15px; }
  .avatar-frame { width: 110px; height: 110px; }
  .arrow { width: 44px; height: 44px; font-size: 18px; }
  .form-section { padding: 20px; border-radius: 18px; }
  .back-btn { top: 10px; left: 10px; padding:4px 10px; font-size:11px; }
}




/* Contextual Typography: Fun */
body, .page, .title, h1, h2, h3, button, input { font-family: 'Quicksand', sans-serif !important; }
