@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

* { -webkit-font-smoothing: antialiased; box-sizing: border-box; }

html, body {
  margin: 0px;
  min-height: 100%;
  background-image: url(BG.png);
  background-size: cover;
  background-position: 50% 50%;
}

button:focus-visible { outline: 2px solid #4a90e2 !important; }
a { text-decoration: none; }

/* ---------- FONTS ---------- */
@font-face { font-family: "Vividly-Regular"; src: url("./Vividly-Regular.ttf") format("truetype"); }
@font-face { font-family: "Rabbit-Regular"; src: url("./Rabbit-Regular.otf") format("truetype"); }
@font-face { font-family: "Peperrito Ornaments Regular"; src: url("./PeperritoOrnaments-Regular.ttf") format("truetype"); }

/* ============================================================
   CONTAINER
   ============================================================ */
.rabiette {
  width: 100%;
  min-width: 390px;
  min-height: 300px;
  position: relative;
  animation: pageFadeIn 0.8s ease-out;
  padding: 50px 0 120px;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   AVATAR
   ============================================================ */
.avatar-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.avatar-wrap:hover { transform: scale(1.04); }

.ellipse {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe1f0, #ffd8eb);
  border: 2px solid #ff90c9;
  box-shadow: 0 6px 18px rgba(255, 218, 237, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease;
}
.avatar-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar-img.show { display: block; }

.avatar-letter {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 40px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(255, 144, 201, 0.5);
  line-height: 1;
}

.avatar-edit-icon {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #ff90c9;
  color: #ff70b8;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(255, 144, 201, 0.4);
  transition: all 0.25s ease;
}
.avatar-wrap:hover .avatar-edit-icon {
  background: #ff90c9;
  color: #fff;
  transform: rotate(15deg) scale(1.1);
}

/* ============================================================
   NAME + EMAIL
   ============================================================ */
.name-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.name-wrap .div {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 20px;
  color: #ff70b8;
  text-align: center;
  outline: none;
  padding: 4px 8px;
  border-radius: 10px;
  transition: all 0.25s ease;
  min-width: 40px;
}
.name-wrap .div[contenteditable="true"] {
  border-color: #ff90c9;
}
.name-edit {
  cursor: pointer;
  color: #ff90c9;
  font-size: 14px;
  transition: all 0.25s ease;
  padding: 3px 6px;
  border-radius: 50%;
}
.name-edit:hover {
  color: #ff70b8;
  background: #ffe4f1;
  transform: rotate(15deg) scale(1.1);
}

.email-display {
  text-align: center;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 12px;
  color: #ffafd8;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}

/* ============================================================
   SETTINGS LIST
   ============================================================ */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px;
  margin-bottom: 40px;
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  border: 1.5px solid #ffd6ea;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(255, 144, 201, 0.12);
}
.setting-row:hover {
  border-color: #ff90c9;
  box-shadow: 0 5px 16px rgba(255, 144, 201, 0.32);
  transform: translateY(-2px);
}

.row-icon {
  width: 28px;
  height: 29px;
  object-fit: cover;
  flex-shrink: 0;
}

.row-label {
  flex: 1;
  font-size: 16px;
  color: #ff90c9;
  font-family: "Vividly-Regular", Helvetica;
}

.row-value {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 12px;
  color: #ffafd8;
  margin-right: 4px;
}

.row-arrow {
  font-family: "Rabbit-Regular", Helvetica;
  font-size: 22px;
  color: #ff90c9;
  transition: transform 0.25s ease;
}
.setting-row:hover .row-arrow {
  transform: translateX(4px);
  color: #ff70b8;
}

/* ============================================================
   LOGOUT BUTTON
   ============================================================ */
.logout-wrap {
  position: relative;
  margin: 0 auto;
  width: 180px;
  height: 48px;
  display: flex;
  margin-top: 65px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.logout-wrap:hover { transform: translateY(-2px); }

.rectangle {
  position: absolute;
  inset: 0;
  background-color: #ffffffcc;
  border-radius: 40px;
  border: 1.5px solid #ff90c9;
  box-shadow: 0 4px 14px rgba(255, 144, 201, 0.25);
  transition: all 0.25s ease;
  z-index: 1;
}
.logout-wrap:hover .rectangle {
  background-color: #ffe4f1;
  box-shadow: 0 6px 20px rgba(255, 144, 201, 0.5);
}

.logout-icon {
  position: relative;
  width: 28px;
  height: 29px;
  object-fit: cover;
  z-index: 2;
}

.text-wrapper-12 {
  position: relative;
  font-size: 15px;
  color: #ff70b8;
  letter-spacing: 0.3px;
  z-index: 2;
  font-family: "Vividly-Regular", Helvetica;
}

/* ============================================================
   DECOR BOWS
   ============================================================ */
.chatbow, .img, .chatbow-2 {
  position: absolute;
  width: 20px;
  height: 18px;
  object-fit: cover;
  animation: gentleWiggle 4s ease-in-out infinite;
  opacity: 0.85;
}
.chatbow  { top: 200px; left: calc(50% - 12px); animation-delay: 0s; }
.img      { top: 200px; left: calc(50% + 12px); animation-delay: 0.4s; }
.chatbow-2{ top: 200px; left: calc(50% - 36px); animation-delay: 0.8s; }

@keyframes gentleWiggle {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}

/* ============================================================
   POPUP BASE
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 245, 249, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1000;
  padding: 20px;
}
.popup-overlay.show { opacity: 1; pointer-events: auto; }

.popup {
  position: relative;
  width: 100%;
  max-width: 310px;
  padding: 26px 22px 20px;
  background: #fff5fa;
  border: 2px solid #ff90c9;
  border-radius: 26px;
  box-shadow: 0 12px 40px rgba(255, 227, 241, 0.4);
  transform: translateY(20px) scale(0.94);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow: visible;   /* ← allow decor to show outside */
  scrollbar-width: none;
}
.popup::-webkit-scrollbar { display: none; }
.popup-overlay.show .popup { transform: translateY(0) scale(1); }

.popup-decor {
  position: absolute;
  width: 26px;
  height: 27px;
  object-fit: cover;
  animation: gentleWiggle 4s ease-in-out infinite;
}
.popup-decor-1 { top: -14px; left: 18px;  }
.popup-decor-2 { top: 320px; right: 18px; animation-delay: 0.5s;  }

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 16px;
  color: #ff90c9;
  cursor: pointer;
  transition: transform 0.2s;
}
.popup-close:hover { transform: rotate(90deg) scale(1.2); }

.popup-title {
  font-size: 20px;
  color: #ff70b8;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.popup-sub {
  font-size: 13px;
  color: #ffafd8;
  text-align: center;
  margin-bottom: 20px;
}

/* ============================================================
   LANGUAGE LIST
   ============================================================ */
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid #ffd6ea;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lang-item:hover {
  border-color: #ff90c9;
  box-shadow: 0 5px 16px rgba(255, 144, 201, 0.32);
  transform: translateY(-2px);
}
.lang-item.selected {
  background: linear-gradient(135deg, #fff5fa, #ffeaf4);
  border-color: #ff90c9;
}

.lang-flag {
  font-size: 22px;
  line-height: 1;
}
.lang-name {
  font-size: 14px;
  color: #ff70b8;
}

/* ============================================================
   DATA POPUP
   ============================================================ */
.data-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.data-stat {
  background: #ffffff;
  border: 1.5px solid #ffd6ea;
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  transition: all 0.25s ease;
}
.data-stat:hover {
  border-color: #ff90c9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 144, 201, 0.3);
}
.stat-num {
  display: block;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 22px;
  color: #ff70b8;
  margin-bottom: 2px;
}
.stat-label {
  display: block;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 10px;
  color: #ffafd8;
  letter-spacing: 0.3px;
}

/* ============================================================
   POPUP BUTTONS
   ============================================================ */
.popup-btn {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #ffffff, #ffffff);
  color: #ff90c9;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255, 232, 244, 0.4);
  font-family: "Vividly-Regular", Helvetica;
}
.popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 144, 201, 0.6);
}

.popup-btn.danger {
  background: linear-gradient(135deg,#ffffff, #ffffff);
}


.popup-skip {
  width: 100%;
  background: none;
  border: none;
  color: #ffafd8;
  font-size: 13px;
  margin-top: 12px;
  cursor: pointer;
  transition: color 0.2s;
  font-family: "Vividly-Regular", Helvetica;
}
.popup-skip:hover { color: #ff70b8; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 480px) {
  .rabiette {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .rabiette {
    max-width: 420px;
    margin: 0 auto;
        transform-origin: top center;

    transform: scale(1.30);
  }
}

@media (min-width: 901px) {
  .rabiette {
    max-width: 420px;
    margin: 0 auto;
        transform-origin: top center;

    transform: scale(1.30);
  }
}

