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

body {
  min-height: 100vh;
  padding-bottom: 100px;
  font-family: Arial, sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at top, #251044, transparent 40%),
    #080810;
}

button,
input {
  font: inherit;
}

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

/* Header */

.top-header {
  height: 65px;
  padding: 0 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #292238;
  background: rgba(12, 10, 22, 0.9);
}

.brand {
  font-size: 21px;
  font-weight: bold;
}

.brand span {
  color: #a66aff;
}

.home-link {
  color: #b78aff;
  font-size: 14px;
}

/* Main */

.profile-container {
  width: 92%;
  max-width: 700px;
  margin: 35px auto;
}

.profile-heading {
  margin-bottom: 22px;
}

.profile-heading h1 {
  font-size: 27px;
  margin-bottom: 8px;
}

.profile-heading p {
  color: #9993a9;
  font-size: 14px;
}

/* Profile Card */

.profile-card {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
  padding: 23px;
  border: 1px solid #44305e;
  border-radius: 17px;
  background: linear-gradient(135deg, #1b1530, #11101d);
  box-shadow: 0 8px 30px rgba(120, 50, 220, 0.08);
}

.avatar {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #a34cff, #397bff);
  font-size: 28px;
  font-weight: bold;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  flex: 1;
  min-width: 150px;
}

.user-info h2 {
  font-size: 19px;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.user-info p {
  color: #aaa3b8;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.account-badge {
  display: inline-block;
  margin-top: 9px;
  padding: 5px 9px;
  border-radius: 20px;
  background: rgba(150, 85, 255, 0.15);
  color: #c7a5ff;
  font-size: 11px;
}

.edit-btn {
  padding: 10px 15px;
  border: 1px solid #8d52d9;
  border-radius: 9px;
  background: transparent;
  color: #c9a5ff;
  cursor: pointer;
}

/* Edit Profile */

.edit-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #44305e;
  border-radius: 15px;
  background: #151222;
}

.edit-card[hidden] {
  display: none;
}

.edit-card h2 {
  font-size: 18px;
  margin-bottom: 18px;
}

.edit-card label {
  display: block;
  margin-bottom: 8px;
  color: #c5bdd3;
  font-size: 13px;
}

.edit-card input {
  width: 100%;
  padding: 13px;
  border: 1px solid #49375e;
  border-radius: 9px;
  outline: none;
  background: #0d0b16;
  color: white;
}

.edit-card input:focus {
  border-color: #a66aff;
}

.edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.save-btn,
.cancel-btn {
  padding: 11px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.save-btn {
  background: linear-gradient(135deg, #913cff, #496eff);
  color: white;
}

.cancel-btn {
  background: #30283e;
  color: #ddd;
}

.save-btn:disabled {
  opacity: 0.6;
}

/* Menu */

.menu-section {
  margin-top: 30px;
}

.menu-section h2 {
  font-size: 19px;
  margin-bottom: 14px;
}

.menu-item {
  width: 100%;
  min-height: 72px;
  margin-bottom: 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #292238;
  border-radius: 12px;
  background: #14111f;
  color: white;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.menu-item:hover {
  border-color: #8050bd;
  background: #1c1730;
}

.menu-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #29203e;
  font-size: 19px;
  flex-shrink: 0;
}

.menu-text {
  flex: 1;
}

.menu-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.menu-text small {
  display: block;
  color: #9992a8;
  font-size: 12px;
}

.arrow {
  color: #a78acb;
  font-size: 25px;
}

/* Logout */

.logout-btn {
  width: 100%;
  margin-top: 15px;
  padding: 14px;
  border: 1px solid #713343;
  border-radius: 10px;
  background: rgba(180, 50, 75, 0.1);
  color: #ff8295;
  font-weight: bold;
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(180, 50, 75, 0.2);
}

.status-message {
  min-height: 20px;
  margin-top: 13px;
  color: #c4a5ff;
  text-align: center;
  font-size: 13px;
}

/* Bottom Navigation */

.bottom-nav {
  position: fixed;
  z-index: 100;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 68px;
  padding: 9px 5px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #302441;
  background: rgba(13, 11, 22, 0.97);
  backdrop-filter: blur(12px);
}

.bottom-nav a {
  min-width: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #898294;
}

.bottom-nav a span {
  font-size: 23px;
}

.bottom-nav a small {
  font-size: 11px;
}

.bottom-nav a.active {
  color: #b78aff;
}

@media (min-width: 768px) {
  .bottom-nav {
    max-width: 520px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 15px;
    border: 1px solid #403052;
    border-radius: 16px;
  }

  .profile-container {
    margin-top: 45px;
  }
}

@media (max-width: 420px) {
  .profile-card {
    padding: 18px;
    gap: 12px;
  }

  .edit-btn {
    width: 100%;
  }

  .profile-heading h1 {
    font-size: 24px;
  }
}

.brand-with-slot{display:inline-flex;align-items:center;gap:9px;text-decoration:none;min-width:0}.brand-logo-slot{width:34px;height:34px;object-fit:contain;flex:0 0 34px}.brand-wordmark{white-space:nowrap;color:inherit}.brand-wordmark span{color:var(--blue,#00d9ff)}
.brand .brand-wordmark{color:inherit}.brand .brand-wordmark span{color:#a66aff}
