/* Back Button Hover Fix */
.btn-back {
  transition: 0.3s ease;
}

.btn-back:hover {
  background-color: #2e2e3c !important;
  color: #fff !important;
  border-color: #2e2e3c !important;
}

.btn-back-white {
    border: 2px solid #fff !important;
    color: #fff;
    transition: 0.3s ease;
}

.btn-back-white:hover {
    background-color: #fff;
    color: #2e2e3c;
    border-color: #fff;
}

.profile-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.4rem 1.7rem;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
  width: 95px;
  height: 95px;
  background: linear-gradient(135deg, #2e2e3c, #555);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 32px;
  color: #fff;
  margin: 0 auto 1rem;
  letter-spacing: 1px;
}

.user-name {
  font-weight: 600;
  font-size: 1.25rem;
  color: #222;
  margin-bottom: 1.4rem;
}

.profile-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  margin-bottom: 0.8rem;
  text-decoration: none;
  color: #111 !important;
  font-weight: 500;
  transition: 0.3s ease;
}

.profile-link:hover {
  background-color: #2e2e3c;
  color: #fff !important;
  border-color: #2e2e3c;
  transform: translateX(4px);
}

.profile-link i {
  font-size: 1.2rem;
}

.logout-link {
  margin-top: 1.8rem;
  display: inline-block;
  width: 100%;
  padding: 0.75rem;
  border-radius: 50px;
  border: 2px solid #d10000;
  font-weight: 600;
  background: #d10000;
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.logout-link:hover {
  background: #d10000;
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .profile-card {
    border-radius: 18px;
    padding: 2rem 1.2rem;
  }
}

/* Address */
.address-card {
  background: #fff;
  transition: 0.3s ease;
}

.address-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.custom-badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
}

.border-dashed:hover {
  background: #f1f1f1;
  transition: 0.3s ease;
}

/* ============================================
   AUTH / LOGIN PAGE STYLING
============================================ */
.auth-container {
    min-height: 70vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3rem 15px !important;
    background: #fdfdfd !important;
}

.auth-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 2.22rem 2rem !important;
    width: 100% !important;
    max-width: 380px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
    text-align: center !important;
}

.auth-header i {
    font-size: 3rem;
    color: #f89421;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.auth-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.auth-form .form-label {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #444;
    margin-bottom: 8px;
    display: block;
    text-align: left;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.auth-input {
    width: 100%;
    padding: 10px 18px;
    border-radius: 10px;
    border: 2px solid #eee;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fcfcfc;
}

.auth-input:focus {
    outline: none;
    border-color: #f89421;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(248, 148, 33, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #000;
    color: #fff;
    border: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.8rem;
    cursor: pointer;
}

.auth-btn:hover {
    background: #f89421;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(248, 148, 33, 0.3);
}

/* Modal Styling */
.auth-modal {
    z-index: 1060 !important;
}

.auth-modal .modal-content {
    border-radius: 20px;
    border: none;
    padding: 1rem;
    background-color: #ffffff !important;
    z-index: 1065 !important;
}

.auth-modal .modal-header {
    border: none;
    padding-bottom: 0;
}

.auth-modal .modal-title {
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    color: #000;
}

.auth-modal .modal-footer {
    border: none;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 2.5rem 1.5rem;
    }
    .auth-title {
        font-size: 1.5rem;
    }
}