/* =============================================
   SURYA COTTANS — ACCOUNT & PROFILE STYLING
   ============================================= */

/* Page Background Wrapper */
.profile-page-body {
  background: #f4f4f2 !important;
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.account-container {
  margin-top: 8rem !important;
  margin-bottom: 6rem !important;
  flex: 1;
  width: 90%;
  max-width: 1200px;
}

/* =============================================
   1. AUTHENTICATION WRAPPER (LOGGED OUT)
   ============================================= */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 70vh;
  perspective: 1000px;
  animation: authFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.auth-card {
  display: flex;
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.5s ease;
}

/* Left Visual Column */
.auth-visual {
  flex: 1.1;
  background: #0a0a0a;
  position: relative;
  display: flex;
  align-items: center;
  padding: 4rem;
  overflow: hidden;
  color: var(--white);
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(232, 0, 13, 0.15), rgba(10, 10, 10, 0.95)),
    url('product_shirt.png'); /* fallback texture pattern representation */
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  z-index: 1;
}

/* Luxury mesh background overlay */
.auth-visual::before {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.auth-visual-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.visual-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  background: var(--red);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.auth-visual-content h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
}

.visual-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 3.5rem;
  max-width: 380px;
}

.visual-footer {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
}

.visual-footer span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

.btn-toggle-visual {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 0.85rem 1.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 6px;
  text-align: left;
  width: fit-content;
  transition: all 0.3s ease;
}

.btn-toggle-visual:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateX(6px);
}

/* Right Form Column */
.auth-forms-container {
  flex: 1;
  position: relative;
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 4rem 3.5rem;
}

.auth-form-box {
  width: 100%;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.auth-form-box.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-header {
  margin-bottom: 2.2rem;
}

.form-header h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.4rem;
}

.form-header p {
  color: #777;
  font-size: 0.88rem;
}

/* Error banner */
.error-banner {
  background: rgba(232, 0, 13, 0.08);
  color: var(--red);
  border-left: 3px solid var(--red);
  padding: 0.85rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 1.8rem;
  display: none;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modern inputs with floating labels */
.floating-group {
  position: relative;
  margin-bottom: 1.8rem;
}

.floating-group input {
  width: 100%;
  padding: 1.1rem 1.2rem 0.9rem;
  background: #f9f9f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--black);
  transition: all 0.3s ease;
}

.floating-group label {
  position: absolute;
  left: 1.2rem;
  top: 1.05rem;
  font-size: 0.9rem;
  color: #888;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: left top;
}

/* Floating Animation */
.floating-group input:focus ~ label,
.floating-group input:not(:placeholder-shown) ~ label {
  transform: translateY(-0.75rem) scale(0.75);
  color: var(--red);
}

.floating-group input:focus {
  outline: none;
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(232, 0, 13, 0.07);
}

.focus-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: all 0.3s ease;
}

.floating-group input:focus ~ .focus-line {
  width: 100%;
  left: 0;
}

/* Password Toggle Eye Icon */
.password-toggle {
  position: absolute;
  right: 1.1rem;
  top: 1.05rem;
  color: #888;
  transition: color 0.3s;
}

.password-toggle:hover {
  color: var(--red);
}

/* Helpers (Remember me + Forgot Password) */
.form-helper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 2rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #555;
  cursor: pointer;
  font-weight: 500;
}

.remember-me input {
  display: none;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  transition: all 0.3s;
}

.remember-me input:checked + .custom-checkbox {
  background: var(--red);
  border-color: var(--red);
}

.remember-me input:checked + .custom-checkbox::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.forgot-pwd {
  background: none;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  cursor: pointer;
  transition: opacity 0.3s;
}

.forgot-pwd:hover {
  text-decoration: underline;
}

/* Auth Submit Button with Spinner */
.btn-auth-submit {
  width: 100%;
  background: var(--black);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 1.2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-auth-submit:hover {
  background: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(232, 0, 13, 0.25);
}

.btn-auth-submit.loading .btn-text {
  opacity: 0;
}

.btn-auth-submit.loading .spinner {
  display: block;
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  position: absolute;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Social Login */
.social-divider {
  display: flex;
  align-items: center;
  margin: 2.2rem 0 1.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #a0aec0;
  letter-spacing: 1.5px;
}

.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #edf2f7;
}

.social-divider::before { margin-right: 1rem; }
.social-divider::after { margin-left: 1rem; }

.social-login-grid {
  display: flex;
  gap: 1rem;
}

.social-btn {
  flex: 1;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
  transition: all 0.3s;
}

.social-btn svg {
  flex-shrink: 0;
}

.social-btn:hover {
  background: #f7fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* =============================================
   2. USER DASHBOARD PANEL (LOGGED IN)
   ============================================= */
.dashboard-wrapper {
  animation: dashFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.dashboard-wrapper.hidden,
.auth-wrapper.hidden {
  display: none !important;
}

/* Header */
.dash-header {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.dash-user-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.avatar-container {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  position: relative;
  border: 3px solid var(--red);
  background: #f7fafc;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(232, 0, 13, 0.15);
  flex-shrink: 0;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.avatar-edit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
  border: none;
}

.avatar-container:hover .avatar-edit-overlay {
  opacity: 1;
}

.avatar-container:hover .profile-avatar {
  transform: scale(1.1);
}

.user-greeting h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 0.15rem;
}

.user-greeting p {
  font-size: 0.92rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.verification-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.verification-badge {
  background: #fee2e2;
  color: var(--red);
}

.verification-badge.verified {
  background: #dcfce7;
  color: #15803d;
}

.btn-verify-email {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  cursor: pointer;
}

.btn-verify-email:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.btn-verify-email.hidden {
  display: none !important;
}

.dash-header-actions {
  display: flex;
  align-items: center;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-color: rgba(0,0,0,0.15);
  color: var(--black);
  padding: 0.9rem 1.8rem;
  font-size: 0.76rem;
  border-radius: 10px;
}

.logout-btn:hover {
  background: var(--red);
  color: white !important;
  border-color: var(--red);
}

/* Dashboard Content Grid */
.dash-body-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.dash-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0,0,0,0.03);
}

.card-header {
  margin-bottom: 2.2rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1.2rem;
}

.card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.3rem;
}

.card-header p {
  color: #777;
  font-size: 0.82rem;
}

/* Profile Form styling */
.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-input-group label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
}

.form-input-group input,
.form-input-group textarea {
  padding: 1rem 1.2rem;
  background: #f9fbfc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--black);
  transition: all 0.3s;
}

.form-input-group input:focus,
.form-input-group textarea:focus {
  outline: none;
  background: white;
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(232, 0, 13, 0.07);
}

.address-group {
  margin-bottom: 2rem;
}

.form-input-group textarea {
  resize: none;
}

/* Orders List Styling */
.orders-list {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.orders-list::-webkit-scrollbar {
  width: 4px;
}
.orders-list::-webkit-scrollbar-track {
  background: transparent;
}
.orders-list::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

/* Order Item Card */
.order-card {
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  background: #fafafa;
  transition: all 0.3s;
}

.order-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.02);
  background: var(--white);
  border-color: #e2e8f0;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.order-meta-info {
  display: flex;
  flex-direction: column;
}

.order-id {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--black);
}

.order-date {
  font-size: 0.72rem;
  color: #888;
  margin-top: 0.15rem;
}

.order-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(34,197,94,0.1);
  color: #16a34a;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

.order-items-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.order-product-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.order-product-img {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
}

.order-product-info {
  flex: 1;
}

.order-product-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}

.order-product-qty {
  font-size: 0.72rem;
  color: #888;
  margin-top: 0.15rem;
}

.order-total-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
  text-align: right;
  border-top: 1px dashed #f1f5f9;
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

/* Empty State */
.orders-empty {
  text-align: center;
  padding: 4rem 1.5rem;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1.2rem;
}

.orders-empty h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.orders-empty p {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1.8rem;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.orders-empty .btn-ghost {
  font-size: 0.72rem;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
}

/* =============================================
   START SHOPPING BUTTON — PREMIUM HIGHLIGHTED
   ============================================= */
.btn-start-shopping {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #e8000d, #b50009);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(232,0,13,0.35);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.btn-start-shopping::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s ease;
}
.btn-start-shopping:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 40px rgba(232,0,13,0.45);
}
.btn-start-shopping:hover::before { left: 100%; }

/* =============================================
   SAVE PROFILE BUTTON & SUCCESS BAR
   ============================================= */
.save-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  justify-content: center;
}
.save-success-bar {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #dcfce7, #d1fae5);
  color: #15803d;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 1rem;
  box-shadow: 0 4px 16px rgba(34,197,94,0.12);
}
.save-success-bar.show {
  display: flex !important;
  animation: saveBarIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes saveBarIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   ORDER TRACKING STEPPER
   ============================================= */
.order-tracker {
  margin: 1.2rem 0 0.5rem;
  padding: 1.2rem 1rem;
  background: linear-gradient(135deg, #f8faff, #fff);
  border-radius: 14px;
  border: 1px solid #eef2ff;
}

.tracker-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Connecting line between steps */
.tracker-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: #e2e8f0;
  z-index: 0;
  transition: background 0.4s ease;
}
.tracker-step.completed:not(:last-child)::after {
  background: linear-gradient(90deg, #e8000d, #e8000d);
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}
.step-dot svg {
  width: 16px;
  height: 16px;
  stroke: #94a3b8;
  transition: stroke 0.3s;
}

.tracker-step.completed .step-dot {
  background: var(--red);
  box-shadow: 0 4px 15px rgba(232,0,13,0.35);
}
.tracker-step.completed .step-dot svg { stroke: #fff; }

.tracker-step.active .step-dot {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(232,0,13,0.15);
  animation: pulseDot 1.5s infinite;
}
.tracker-step.active .step-dot svg { stroke: #fff; }

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 5px rgba(232,0,13,0.15); }
  50% { box-shadow: 0 0 0 10px rgba(232,0,13,0.05); }
}

.step-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  text-align: center;
  transition: color 0.3s;
  white-space: nowrap;
}
.tracker-step.active .step-label,
.tracker-step.completed .step-label { color: var(--red); }

/* =============================================
   NAV PROFILE PIC
   ============================================= */
.nav-profile-pic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
  display: block;
}
.nav-profile-pic.hidden { display: none; }

/* =============================================
   AVATAR MODAL — TABS & MALE PRESET GRID
   ============================================= */
.avatar-tab-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
}
.avatar-tab {
  flex: 1;
  padding: 0.6rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  color: #555;
}
.avatar-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.avatar-tab-content { display: none; }
.avatar-tab-content.active { display: block; }

.avatar-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.avatar-preset-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.avatar-preset-item span {
  font-size: 0.65rem;
  font-weight: 600;
  color: #666;
  text-align: center;
}
.avatar-preset-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2.5px solid #e2e8f0;
  padding: 3px;
  cursor: pointer;
  transition: all 0.3s;
  background: #f8fafc;
}
.avatar-preset-img:hover {
  border-color: var(--red);
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(232,0,13,0.12);
}
.avatar-preset-img.selected {
  border-color: var(--red);
  background: #fee2e2;
}

.custom-url-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.6rem;
}

/* =============================================
   3. WISHLIST PANEL
   ============================================= */
.wishlist-panel {
  margin-top: 2.5rem;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.wishlist-item-card {
  border: 1px solid #f1f5f9;
  background: #fafafa;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.wishlist-item-card:hover {
  transform: translateY(-4px);
  background: white;
  border-color: #e2e8f0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.wishlist-img-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #eee;
}

.wishlist-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.wishlist-item-card:hover .wishlist-img-wrap img {
  transform: scale(1.06);
}

.wishlist-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: white;
  color: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-size: 0.8rem;
  z-index: 2;
  transition: all 0.3s;
}

.wishlist-remove-btn:hover {
  background: var(--red);
  color: white;
  transform: scale(1.1);
}

.wishlist-item-info {
  padding: 1.2rem;
}

.wishlist-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wishlist-item-price {
  font-weight: 700;
  color: var(--red);
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.wishlist-buy-btn {
  width: 100%;
  background: var(--black);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.65rem;
  border-radius: 8px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.wishlist-item-card:hover .wishlist-buy-btn {
  background: var(--red);
}

/* =============================================
   4. PRESET AVATAR SELECTION MODAL
   ============================================= */
.avatar-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.avatar-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.avatar-modal {
  background: var(--white);
  padding: 3rem;
  border-radius: 24px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(40px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.avatar-modal-overlay.show .avatar-modal {
  transform: translateY(0) scale(1);
}

.avatar-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.avatar-modal-close:hover {
  color: var(--red);
}

.avatar-modal h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.avatar-modal p {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 2rem;
}

.avatar-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.avatar-preset-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  padding: 4px;
  cursor: pointer;
  transition: all 0.3s;
  background: #f8fafc;
}

.avatar-preset-img:hover {
  border-color: var(--red);
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(232, 0, 13, 0.1);
}

.avatar-preset-img.active {
  border-color: var(--red);
  background: #fee2e2;
  transform: scale(1.05);
}

.custom-avatar-url-group {
  border-top: 1px solid #f1f5f9;
  padding-top: 1.8rem;
}

.custom-avatar-url-group label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
  display: block;
  margin-bottom: 0.6rem;
}

.custom-url-input-row {
  display: flex;
  gap: 0.8rem;
}

.custom-url-input-row input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.85rem;
  outline: none;
}

.custom-url-input-row input:focus {
  border-color: var(--red);
}

.custom-url-input-row .btn-primary {
  padding: 0.85rem 1.5rem;
  font-size: 0.72rem;
  border-radius: 10px;
}

/* =============================================
   5. RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 991px) {
  .auth-card {
    flex-direction: column;
    max-width: 500px;
    min-height: auto;
  }
  .auth-visual {
    padding: 3rem;
  }
  .visual-desc {
    margin-bottom: 2.2rem;
  }
  .auth-forms-container {
    padding: 3rem 2.5rem;
  }
  
  .dash-body-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }
  .dash-header-actions {
    width: 100%;
  }
  .logout-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .account-container {
    margin-top: 6.5rem !important;
  }
  
  .auth-visual {
    padding: 2.5rem 1.8rem;
  }
  .auth-forms-container {
    padding: 2.5rem 1.5rem;
  }
  .form-header h3 {
    font-size: 1.8rem;
  }
  
  .dash-user-meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 1.2rem;
  }
  .user-greeting h1 {
    font-size: 2rem;
  }
  .verification-row {
    justify-content: center;
  }
  
  .dash-card {
    padding: 1.8rem 1.2rem;
  }
  .form-row-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .avatar-modal {
    padding: 2rem 1.2rem;
  }
  .avatar-presets {
    gap: 0.8rem;
  }
}
/* Responsive tracker */
@media (max-width: 576px) {
  .step-label { font-size: 0.54rem; }
  .step-dot { width: 28px; height: 28px; }
  .step-dot svg { width: 13px; height: 13px; }
  .tracker-step:not(:last-child)::after { top: 14px; }
}

/* =============================================
   REVIEW BUTTON ON ORDER ITEMS
   ============================================= */
.order-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1.5px solid var(--red, #e8000d);
  color: var(--red, #e8000d);
  background: rgba(232, 0, 13, 0.04);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-top: 0.5rem;
  white-space: nowrap;
}

.order-review-btn:hover {
  background: var(--red, #e8000d);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 0, 13, 0.2);
}

.order-review-btn svg {
  flex-shrink: 0;
}

.order-review-btn.reviewed {
  border-color: #22c55e;
  color: #16a34a;
  background: rgba(34, 197, 94, 0.06);
  cursor: default;
  pointer-events: none;
}

.order-review-btn.reviewed:hover {
  transform: none;
  box-shadow: none;
}

/* =============================================
   REVIEW MODAL
   ============================================= */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 1.5rem;
}

.review-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.review-modal {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(40px) scale(0.93);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.review-modal::-webkit-scrollbar {
  width: 4px;
}
.review-modal::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

.review-modal-overlay.show .review-modal {
  transform: translateY(0) scale(1);
}

.review-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: #64748b;
}

.review-modal-close:hover {
  background: var(--red, #e8000d);
  color: #fff;
  transform: rotate(90deg);
}

/* Product Preview */
.review-modal-product {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.review-modal-img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.review-modal-product-info {
  flex: 1;
}

.review-modal-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red, #e8000d);
  display: block;
  margin-bottom: 0.3rem;
}

.review-modal-product-info h4 {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black, #0a0a0a);
  line-height: 1.3;
}

.review-modal-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
  margin-bottom: 1.5rem;
}

/* Star Rating */
.review-modal-section {
  margin-bottom: 1.5rem;
}

.review-modal-field-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #555;
  display: block;
  margin-bottom: 0.7rem;
}

.review-stars-row {
  display: flex;
  gap: 6px;
  margin-bottom: 0.4rem;
}

.review-star {
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1;
}

.review-star:hover {
  transform: scale(1.25);
}

.review-star.active {
  color: #f59e0b;
  text-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.review-stars-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f59e0b;
  letter-spacing: 0.5px;
}

/* Textarea */
.review-modal-textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: #f9fbfc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--black, #0a0a0a);
  resize: none;
  transition: all 0.3s ease;
  line-height: 1.6;
}

.review-modal-textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--red, #e8000d);
  box-shadow: 0 8px 24px rgba(232, 0, 13, 0.07);
}

.review-modal-textarea::placeholder {
  color: #aaa;
}

/* Actions */
.review-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.review-modal-cancel {
  flex: 1;
  padding: 1rem;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s;
}

.review-modal-cancel:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.review-modal-submit {
  flex: 1.5;
  padding: 1rem;
  background: var(--black, #0a0a0a);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.review-modal-submit:hover {
  background: var(--red, #e8000d);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232, 0, 13, 0.25);
}

.review-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success State */
.review-success-state {
  display: none;
  text-align: center;
  padding: 2rem 0;
  animation: successFadeIn 0.5s ease forwards;
}

.review-success-state.show {
  display: block;
}

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

.review-success-icon {
  width: 80px;
  height: 80px;
  background: rgba(34, 197, 94, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  animation: popBounce 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.review-success-icon svg {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: drawCircleCheck 0.7s ease 0.2s forwards;
}

@keyframes drawCircleCheck {
  to { stroke-dashoffset: 0; }
}

.review-success-state h4 {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black, #0a0a0a);
  margin-bottom: 0.5rem;
}

.review-success-state p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

/* =============================================
   REVIEW MODAL — RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  .review-modal {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    max-height: 85vh;
  }

  .review-modal-product-info h4 {
    font-size: 1rem;
  }

  .review-star {
    font-size: 1.7rem;
  }

  .review-modal-actions {
    flex-direction: column-reverse;
  }

  .review-modal-submit,
  .review-modal-cancel {
    flex: unset;
    width: 100%;
  }
}

