/* ========================================= */
/* SHANAYA — PROFILE PAGE                    */
/* ========================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #EAE6DF;
  color: #2E2A27;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================= */
/* AMBIENT BACKGROUND                        */
/* ========================================= */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ambient-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
  filter: saturate(0.5) blur(3px);
}

.ambient-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F4F1EC 0%, rgba(244, 241, 236, 0.88) 100%);
}

/* ========================================= */
/* PAGE LAYOUT                               */
/* ========================================= */

.profile-layout {
  position: relative;
  z-index: 1;
  width: min(1100px, 95%);
  margin: 0 auto;
  padding: 120px 0 80px;
}

/* ========================================= */
/* PAGE HEADER                               */
/* ========================================= */

.profile-header {
  margin-bottom: 30px;
  text-align: center;
}

.profile-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C4AB74;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #C4AB74;
}

.profile-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 400;
  color: #1a1410;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.profile-subtitle {
  font-size: 15px;
  color: rgba(46, 42, 39, 0.72);
  line-height: 1.6;
}

/* ========================================= */
/* MAIN CONTAINER WITH SIDEBAR               */
/* ========================================= */

.profile-main {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 30px;
}

/* ========================================= */
/* SIDEBAR NAVIGATION                        */
/* ========================================= */

.profile-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 171, 116, 0.15);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}

.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(46, 42, 39, 0.72);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  text-align: left;
}

.profile-nav-item:hover {
  background: rgba(196, 171, 116, 0.08);
  border-color: rgba(196, 171, 116, 0.2);
}

.profile-nav-item.active {
  background: rgba(196, 171, 116, 0.15);
  border-color: rgba(196, 171, 116, 0.3);
  color: #C4AB74;
}

.profile-nav-item.logout {
  color: rgba(200, 100, 100, 0.75);
  margin-top: 8px;
  border-top: 1px solid rgba(196, 171, 116, 0.1);
  padding-top: 12px;
}

.profile-nav-item.logout:hover {
  background: rgba(200, 100, 100, 0.08);
  border-color: rgba(200, 100, 100, 0.2);
  color: rgba(200, 100, 100, 1);
}

.nav-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.nav-label {
  flex: 1;
}

/* ========================================= */
/* PROFILE CONTENT                           */
/* ========================================= */

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========================================= */
/* PROFILE SECTIONS                          */
/* ========================================= */

.profile-section {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 171, 116, 0.15);
  border-radius: 16px;
  padding: 28px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #C4AB74;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: #C4AB74;
}

/* ========================================= */
/* USER CARD                                 */
/* ========================================= */

.profile-user-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 171, 116, 0.15);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
}

.user-avatar {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #C4AB74 0%, #A08B5C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(196, 171, 116, 0.2);
}

.avatar-initials {
  font-size: 32px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
}

.user-header-info {
  flex: 1;
}

.user-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: #1a1410;
  margin-bottom: 6px;
}

.user-email {
  font-size: 12px;
  color: rgba(46, 42, 39, 0.66);
}

.card-divider {
  height: 1px;
  background: rgba(196, 171, 116, 0.1);
}

.card-footer {
  padding: 16px 28px;
  background: rgba(196, 171, 116, 0.05);
}

.member-id-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.member-id-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #C4AB74;
}

.member-id-value {
  font-size: 13px;
  font-weight: 600;
  color: #1a1410;
  letter-spacing: 0.05em;
  font-family: 'Courier New', monospace;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(196, 171, 116, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
  color: #C4AB74;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(196, 171, 116, 0.1);
  border-color: rgba(196, 171, 116, 0.3);
}

.copy-btn i {
  font-size: 14px;
}

/* ========================================= */
/* SECTION HEADER WITH EDIT BUTTON           */
/* ========================================= */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.edit-toggle-btn {
  padding: 8px 14px;
  border: 1px solid rgba(196, 171, 116, 0.2);
  border-radius: 6px;
  background: rgba(196, 171, 116, 0.08);
  color: #C4AB74;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.edit-toggle-btn:hover {
  background: rgba(196, 171, 116, 0.15);
  border-color: rgba(196, 171, 116, 0.3);
}

/* ========================================= */
/* MEMBERSHIP STATS                          */
/* ========================================= */

.member-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: rgba(196, 171, 116, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(196, 171, 116, 0.1);
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  color: #C4AB74;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(46, 42, 39, 0.66);
}

/* ========================================= */
/* USER META                                 */
/* ========================================= */

.user-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.user-badge {
  font-size: 11px;
  font-weight: 500;
  background: rgba(196, 171, 116, 0.12);
  color: #C4AB74;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 171, 116, 0.25);
}

/* ========================================= */
/* FORM ELEMENTS                             */
/* ========================================= */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #C4AB74;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(196, 171, 116, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  color: #2E2A27;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: rgba(196, 171, 116, 0.4);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(196, 171, 116, 0.1);
}

.form-input:disabled {
  background: rgba(196, 171, 116, 0.08);
  color: rgba(46, 42, 39, 0.5);
  cursor: not-allowed;
}

.form-hint {
  font-size: 11px;
  color: rgba(46, 42, 39, 0.54);
  margin-top: 6px;
}

/* ========================================= */
/* BUTTONS                                   */
/* ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  white-space: nowrap;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, #C4AB74 0%, #A08B5C 100%);
  color: white;
  margin-top: 12px;
  border-color: rgba(196, 171, 116, 0.3);
  box-shadow: 0 4px 12px rgba(196, 171, 116, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 171, 116, 0.3);
}

.btn-outline {
  background: transparent;
  color: #C4AB74;
  border-color: rgba(196, 171, 116, 0.3);
  margin-bottom: 10px;
}

.btn-outline:hover {
  background: rgba(196, 171, 116, 0.08);
  border-color: rgba(196, 171, 116, 0.5);
}

.btn-secondary {
  background: transparent;
  color: rgba(46, 42, 39, 0.72);
  border-color: rgba(46, 42, 39, 0.2);
  margin-top: 10px;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(46, 42, 39, 0.05);
  border-color: rgba(46, 42, 39, 0.3);
}

/* ========================================= */
/* TOGGLE SWITCHES                           */
/* ========================================= */

.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(196, 171, 116, 0.1);
}

.toggle-info {
  flex: 1;
}

.toggle-label {
  font-size: 13px;
  font-weight: 500;
  color: #2E2A27;
  margin-bottom: 4px;
}

.toggle-desc {
  font-size: 11px;
  color: rgba(46, 42, 39, 0.54);
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch input {
  display: none;
}

.switch-slider {
  display: inline-block;
  width: 44px;
  height: 24px;
  background: rgba(196, 171, 116, 0.2);
  border-radius: 999px;
  transition: background 0.3s ease;
  position: relative;
}

.switch-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked + .switch-slider {
  background: #C4AB74;
}

.toggle-switch input:checked + .switch-slider::after {
  transform: translateX(20px);
}

/* ========================================= */
/* SETTINGS LIST                             */
/* ========================================= */

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(196, 171, 116, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
}

.settings-item:hover {
  background: rgba(196, 171, 116, 0.08);
  border-color: rgba(196, 171, 116, 0.2);
  transform: translateX(4px);
}

.settings-item.danger {
  border-color: rgba(200, 100, 100, 0.2);
}

.settings-item.danger:hover {
  background: rgba(200, 100, 100, 0.08);
  border-color: rgba(200, 100, 100, 0.3);
}

.settings-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.settings-content {
  flex: 1;
}

.settings-title {
  font-size: 13px;
  font-weight: 500;
  color: #2E2A27;
  margin-bottom: 4px;
}

.settings-item.danger .settings-title {
  color: rgba(200, 100, 100, 0.8);
}

.settings-desc {
  font-size: 11px;
  color: rgba(46, 42, 39, 0.54);
}

.settings-arrow {
  color: #C4AB74;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

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

/* ========================================= */
/* EMAIL VERIFICATION MODAL                  */
/* ========================================= */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(196, 171, 116, 0.2);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  margin-bottom: 28px;
  text-align: center;
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: #1a1410;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 13px;
  color: rgba(46, 42, 39, 0.66);
}

.modal-content {
  margin-bottom: 28px;
}

.verify-email-display {
  font-size: 13px;
  color: #C4AB74;
  font-weight: 500;
  padding: 12px 14px;
  background: rgba(196, 171, 116, 0.1);
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid rgba(196, 171, 116, 0.2);
}

.otp-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.otp-inputs-wrapper {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.otp-digit {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(196, 171, 116, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: #1a1410;
  transition: all 0.3s ease;
}

.otp-digit:focus {
  outline: none;
  border-color: rgba(196, 171, 116, 0.4);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(196, 171, 116, 0.1);
}

.otp-hint {
  font-size: 12px;
  color: rgba(46, 42, 39, 0.54);
  text-align: center;
}

.resend-otp-link {
  background: none;
  border: none;
  color: #C4AB74;
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
  padding: 0;
  transition: color 0.3s ease;
}

.resend-otp-link:hover:not(:disabled) {
  color: #A08B5C;
}

.resend-otp-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ========================================= */
/* TOAST NOTIFICATION                        */
/* ========================================= */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: rgba(26, 20, 16, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  z-index: 10001;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ========================================= */
/* RESPONSIVE                                */
/* ========================================= */

@media (max-width: 900px) {
  .profile-main {
    grid-template-columns: 250px 1fr;
    gap: 24px;
  }

  .profile-layout {
    width: 96%;
  }

  .profile-sidebar {
    top: 90px;
  }
}

@media (max-width: 768px) {
  .profile-layout {
    padding: 100px 0 80px;
    width: 95%;
  }

  .profile-title {
    font-size: 32px;
  }

  .profile-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .profile-sidebar {
    position: relative;
    top: 0;
  }

  .profile-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
  }

  .profile-nav-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    gap: 8px;
  }

  .nav-label {
    font-size: 11px;
  }

  .profile-section {
    padding: 20px;
  }

  .section-title {
    font-size: 12px;
  }

  .card-top {
    padding: 20px;
    gap: 16px;
  }

  .user-avatar {
    width: 70px;
    height: 70px;
  }

  .avatar-initials {
    font-size: 24px;
  }

  .user-name {
    font-size: 16px;
  }

  .member-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 12px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 12px;
  }

  .settings-item {
    padding: 12px;
    gap: 12px;
  }

  .settings-icon {
    font-size: 18px;
  }

  .settings-title {
    font-size: 12px;
  }

  .settings-desc {
    font-size: 10px;
  }

  .edit-toggle-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .profile-layout {
    width: 96%;
  }

  .profile-header {
    margin-bottom: 30px;
  }

  .profile-title {
    font-size: 28px;
  }

  .profile-eyebrow {
    font-size: 9px;
  }

  .profile-section {
    padding: 14px;
  }

  .section-title {
    font-size: 10px;
    margin-bottom: 14px;
  }

  .profile-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px;
  }

  .profile-nav-item {
    padding: 10px 6px;
    font-size: 10px;
    gap: 4px;
  }

  .nav-icon {
    font-size: 14px;
  }

  .card-top {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .user-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }

  .avatar-initials {
    font-size: 20px;
  }

  .user-name {
    font-size: 14px;
  }

  .user-email {
    font-size: 11px;
  }

  .form-input {
    padding: 10px 12px;
    font-size: 13px;
  }

  .btn {
    padding: 10px 14px;
    font-size: 11px;
  }

  .member-stats {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 18px;
  }

  .member-id-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .copy-btn {
    width: 28px;
    height: 28px;
  }

  .modal-box {
    padding: 24px;
    max-width: 100%;
  }

  .modal-title {
    font-size: 20px;
  }

  .otp-inputs-wrapper {
    gap: 6px;
  }

  .otp-digit {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .modal-footer {
    flex-direction: column;
    gap: 10px;
  }

  .modal-footer .btn {
    width: 100%;
  }
}
