/* =============================================
   Customer Authentication & Verification Styles
   ============================================= */

/* Hide standalone orders button beside cart when customer is logged in */
body.customer-logged-in #ordersBtn {
  display: none !important;
}

/* On smaller screens, pair Cart and Profile Pill side-by-side in balanced 2-column row */
@media (max-width: 767px) {
  body.customer-logged-in .nav #cartBtn {
    grid-column: auto !important;
    width: 100% !important;
  }

  body.customer-logged-in .nav #customerNavContainer {
    grid-column: auto !important;
    width: 100% !important;
  }

  body.customer-logged-in .nav #customerNavContainer .customer-profile-pill {
    width: 100% !important;
  }
}

.customer-auth-modal-content {
  position: relative;
  width: 100% !important;
  max-width: 720px !important;
  max-height: 92vh !important;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px 42px 28px !important;
  box-sizing: border-box;
}

/* Keep signin & verify focused and well-proportioned on bigger screens */
.customer-auth-modal-content:has(#customerSignInView:not([style*="display: none"])),
.customer-auth-modal-content:has(#customerVerifyView:not([style*="display: none"])),
.customer-auth-modal-content.signin-active,
.customer-auth-modal-content.verify-active {
  max-width: 480px !important;
  padding: 32px 38px 28px !important;
}

/* Keep profile focused and well-proportioned */
.customer-auth-modal-content:has(#customerProfileView:not([style*="display: none"])),
.customer-auth-modal-content.profile-active {
  max-width: 540px !important;
  padding: 32px 38px 28px !important;
}

/* Make Data Privacy View larger, spacious, and highly legible */
.customer-auth-modal-content:has(#customerPrivacyView:not([style*="display: none"])),
.customer-auth-modal-content.privacy-active {
  max-width: 820px !important;
  padding: 34px 44px 30px !important;
}

.customer-auth-modal-content .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  margin: 0;
}

.customer-auth-view .modal-header {
  padding: 0 44px 10px 0;
}

.customer-auth-view .modal-header h3 {
  font-size: 24px !important;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.2px;
}

.customer-auth-subtext {
  font-size: 14px !important;
  color: var(--text-secondary);
  margin: 0 0 20px !important;
  line-height: 1.45;
}

/* Responsive 2-Column Form Grid */
.customer-reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-bottom: 16px;
}

.customer-reg-grid .form-group {
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
}

.customer-reg-grid .form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px !important;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.customer-reg-grid .label-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted, #8b8b9e);
  text-transform: none;
}

.customer-reg-grid input,
#customerSignInForm input {
  padding: 10px 14px !important;
  font-size: 14.5px !important;
  border-radius: 10px !important;
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  color: #fff !important;
  outline: none;
  box-sizing: border-box;
  width: 100%;
  height: 46px !important;
  min-height: 46px !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.customer-reg-grid input:focus,
#customerSignInForm input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

#customerSignInForm .form-group label {
  font-size: 13px !important;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
}

.customer-auth-modal-content input[type="date"] {
  color-scheme: dark;
  font-family: inherit;
  cursor: pointer;
}

.customer-auth-modal-content input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
  cursor: pointer;
}

/* Password Field Wrapper & Toggle Button */
.customer-password-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.customer-password-wrap input {
  width: 100%;
  padding-right: 44px !important;
}

.customer-password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: color 0.2s, background-color 0.2s;
  z-index: 2;
}

.customer-password-toggle:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.customer-password-toggle svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  pointer-events: none;
  transition: transform 0.15s ease;
}

.customer-password-toggle:active svg {
  transform: scale(0.9);
}

.customer-password-toggle .icon-eye-off {
  display: none;
}

.customer-password-toggle.is-visible .icon-eye {
  display: none;
}

.customer-password-toggle.is-visible .icon-eye-off {
  display: block;
}

.customer-password-toggle.is-visible {
  color: var(--accent);
}

/* Password Strength & Badges */
.password-strength-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.password-strength-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.strength-label-text {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-width: 55px;
}

.password-requirements-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.pwd-req-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted, #8b8b9e);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.pwd-req-badge.met {
  background: rgba(0, 212, 170, 0.12);
  color: var(--accent);
  border-color: rgba(0, 212, 170, 0.35);
  font-weight: 600;
}

.privacy-confirm-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 2px;
  margin-bottom: 14px;
}

.privacy-confirm-checkbox input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  margin: 0 !important;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
}

.customer-auth-modal-content .modal-actions {
  padding: 0 !important;
  margin-top: 6px !important;
}

.customer-auth-modal-content .modal-actions .btn {
  padding: 12px 20px !important;
  font-size: 15.5px !important;
  font-weight: 700;
  border-radius: 10px;
  height: 48px !important;
}

.customer-auth-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: var(--accent);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.4;
  margin-top: 10px;
  margin-bottom: 12px;
}

.customer-auth-notice svg {
  flex-shrink: 0;
}

.customer-auth-view .modal-header.verify-header {
  justify-content: center;
  text-align: center;
  padding-right: 0;
}

.success-icon-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 4px auto 16px !important;
  text-align: center !important;
}

.success-icon-wrapper svg.success-icon {
  display: block !important;
  margin: 0 auto !important;
  stroke: var(--accent) !important;
}

.customer-auth-error {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: var(--error);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 8px;
  margin-bottom: 8px;
}

.customer-auth-success {
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 8px;
  margin-bottom: 8px;
}

.customer-auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  gap: 6px;
}

.customer-auth-footer .btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.customer-auth-footer .btn-link:hover {
  color: var(--accent-hover);
}

.otp-resend-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 6px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

.otp-resend-wrap .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 44px;
  padding: 6px 4px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.otp-resend-wrap .btn-link:hover:not(:disabled) {
  color: var(--accent-hover);
}

.otp-resend-wrap .btn-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.otp-resend-wrap .btn-link:disabled {
  color: var(--text-secondary);
  text-decoration: none;
  cursor: not-allowed;
}

/* Big 6-Digit OTP Field */
.otp-input-field {
  width: 100% !important;
  height: 58px;
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: 12px !important;
  text-align: center !important;
  font-family: monospace, inherit !important;
  color: var(--accent) !important;
  background: var(--bg-secondary) !important;
  border: 2px solid var(--border) !important;
  border-radius: 14px !important;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.otp-input-field:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-glow) !important;
}

.otp-input-field::placeholder {
  color: rgba(139, 139, 158, 0.3) !important;
  letter-spacing: 12px;
}

/* Navbar Customer Account Button & Profile Dropdown */
#customerNavContainer {
  display: inline-flex;
  align-items: center;
}

.customer-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-sizing: border-box;
  min-height: 38px;
}

.customer-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.customer-nav-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.customer-profile-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px !important;
  color: var(--text-primary);
  font-size: 14px !important;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  min-height: 38px;
}

.customer-profile-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.customer-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #00b894);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
  line-height: 1;
}

.customer-profile-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 85px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.customer-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 8px;
  z-index: 1001;
  display: none;
  animation: fadeIn 0.15s ease;
}

.customer-dropdown-menu.show {
  display: block;
}

.customer-dropdown-header {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.customer-dropdown-email {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.customer-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.customer-dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--accent);
}

.customer-dropdown-item.logout-item:hover {
  color: var(--error);
}

.customer-dropdown-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* =============================================
   Data Privacy View Detailed Styles
   ============================================= */
.privacy-header {
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px !important;
}

.privacy-header h3 {
  font-size: 23px !important;
  font-weight: 700;
  color: #ffffff;
}

.privacy-content {
  max-height: 56vh;
  overflow-y: auto;
  padding-right: 14px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.privacy-content::-webkit-scrollbar {
  width: 6px;
}

.privacy-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.privacy-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.privacy-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.privacy-intro {
  font-size: 14px;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.55;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 4px;
}

.privacy-section {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 18px;
  transition: border-color 0.2s, background-color 0.2s;
  display: flex;
  flex-direction: column;
}

.privacy-section:hover {
  border-color: rgba(0, 212, 170, 0.3);
  background: rgba(255, 255, 255, 0.045);
}

.privacy-section h5 {
  color: var(--accent);
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.privacy-section p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.privacy-section p strong {
  color: #ffffff;
}

.privacy-actions {
  margin-top: 14px;
}

#customerClosePrivacyBtn {
  height: 48px;
  font-size: 15px;
  font-weight: 600;
}

/* =============================================
   Customer Profile View Styles
   ============================================= */
.profile-header {
  padding-bottom: 16px !important;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px !important;
}

.profile-avatar-badge {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #009977 100%);
  color: #0a0a0f;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--accent-glow);
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-bottom: 16px;
}

.profile-form-grid .form-group {
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
}

.profile-form-grid .profile-full-col {
  grid-column: 1 / -1;
}

.profile-form-grid label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px !important;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.profile-form-grid input {
  padding: 10px 14px !important;
  font-size: 14.5px !important;
  border-radius: 10px !important;
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  color: #fff !important;
  outline: none;
  box-sizing: border-box;
  width: 100%;
  height: 46px !important;
  min-height: 46px !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-form-grid input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

.profile-age-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #ffffff;
  margin-bottom: 16px;
}

.profile-age-badge svg {
  flex-shrink: 0;
}

.profile-actions {
  display: flex !important;
  gap: 12px !important;
  margin-top: 18px !important;
}

.profile-actions .btn {
  flex: 1;
  height: 46px !important;
  font-size: 14.5px !important;
  font-weight: 600;
}

.profile-actions #customerProfileSubmitBtn {
  flex: 1.6;
}

@media (max-width: 768px) {
  #customerNavContainer .customer-profile-pill {
    padding: 8px 6px !important;
    gap: 5px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    min-height: 30px !important;
  }

  #customerNavContainer .customer-avatar {
    width: 18px !important;
    height: 18px !important;
    font-size: 9px !important;
  }

  #customerNavContainer .customer-profile-name {
    display: inline-block !important;
    max-width: 90px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Make privacy modal fit vertically on tablets & medium viewports */
  .customer-auth-modal-content:has(#customerPrivacyView:not([style*="display: none"])),
  .customer-auth-modal-content.privacy-active {
    max-width: 95% !important;
    padding: 18px 20px 16px !important;
    max-height: 96vh !important;
  }

  .privacy-header {
    padding-bottom: 8px !important;
    margin-bottom: 10px !important;
  }

  .privacy-header h3 {
    font-size: 19px !important;
  }

  .privacy-content {
    max-height: none !important;
    overflow-y: visible !important;
    padding-right: 0 !important;
  }

  .privacy-intro {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
  }

  .privacy-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 12px !important;
    margin-bottom: 4px !important;
  }

  .privacy-section {
    padding: 10px 12px !important;
  }

  .privacy-section h5 {
    font-size: 13px !important;
    margin-bottom: 3px !important;
  }

  .privacy-section p {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .privacy-actions {
    margin-top: 10px !important;
  }

  #customerClosePrivacyBtn {
    height: 40px !important;
    font-size: 13.5px !important;
  }
}

@media (max-width: 520px) {
  .customer-auth-modal-content {
    padding: 20px 18px 16px !important;
    max-height: 96vh;
    border-radius: 16px !important;
  }

  .customer-auth-modal-content .modal-close {
    top: 14px !important;
    right: 14px !important;
  }

  .customer-auth-view .modal-header {
    padding: 0 32px 6px 0 !important;
  }

  .customer-auth-view .modal-header h3 {
    font-size: 17px !important;
  }

  .customer-auth-subtext {
    font-size: 12px !important;
    margin: 0 0 10px !important;
  }

  .customer-reg-grid {
    gap: 10px 10px;
    margin-bottom: 10px;
  }

  .customer-reg-grid input {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 12.5px !important;
    padding: 7px 10px !important;
  }

  .customer-reg-grid .form-group label {
    font-size: 11px !important;
    margin-bottom: 3px !important;
  }

  .privacy-confirm-checkbox {
    font-size: 11px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
    align-items: center !important;
    gap: 7px !important;
  }

  .privacy-confirm-checkbox input[type="checkbox"] {
    width: 13px !important;
    height: 13px !important;
    min-height: 13px !important;
    max-width: 13px !important;
    max-height: 13px !important;
  }

  .customer-auth-modal-content .modal-actions .btn {
    height: 39px !important;
    font-size: 13px !important;
  }

  .customer-password-toggle {
    width: 30px !important;
    height: 30px !important;
    right: 4px !important;
  }

  .customer-password-toggle svg {
    width: 17px !important;
    height: 17px !important;
  }

  /* Compact 2x2 layout so privacy modal fits vertically on mobile */
  .customer-auth-modal-content:has(#customerPrivacyView:not([style*="display: none"])),
  .customer-auth-modal-content.privacy-active {
    max-width: 96% !important;
    padding: 14px 12px 12px !important;
    max-height: 98vh !important;
  }

  .privacy-header {
    padding-bottom: 6px !important;
    margin-bottom: 8px !important;
  }

  .privacy-header svg {
    width: 20px !important;
    height: 20px !important;
  }

  .privacy-header h3 {
    font-size: 16px !important;
  }

  .privacy-content {
    max-height: none !important;
    overflow-y: visible !important;
    padding-right: 0 !important;
  }

  .privacy-intro {
    font-size: 11px !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
  }

  .privacy-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px 8px !important;
    margin-bottom: 2px !important;
  }

  .privacy-section {
    padding: 7px 9px !important;
    border-radius: 8px !important;
    margin-bottom: 0 !important;
  }

  .privacy-section h5 {
    font-size: 11.5px !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.1px !important;
  }

  .privacy-section p {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }

  .privacy-actions {
    margin-top: 8px !important;
  }

  #customerClosePrivacyBtn {
    height: 36px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }

  .customer-auth-modal-content:has(#customerProfileView:not([style*="display: none"])),
  .customer-auth-modal-content.profile-active {
    max-width: 96% !important;
    padding: 18px 16px 16px !important;
  }

  .profile-form-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .profile-form-grid input {
    height: 40px !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }

  .profile-avatar-badge {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    font-size: 17px !important;
  }

  .profile-actions .btn {
    height: 40px !important;
    font-size: 13px !important;
  }

  .customer-auth-footer {
    margin-top: 10px !important;
    padding-top: 9px !important;
    font-size: 12px !important;
  }
}

/* Fallback for ultra-short landscape mobile viewports */
@media (max-height: 460px) {
  .customer-auth-modal-content:has(#customerPrivacyView:not([style*="display: none"])),
  .customer-auth-modal-content.privacy-active {
    max-height: 96vh !important;
    overflow-y: auto !important;
  }

  .privacy-content {
    max-height: 52vh !important;
    overflow-y: auto !important;
  }
}

/* =============================================
   Profile Unified 1-Row Setting Cards
   ============================================= */
.profile-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-setting-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.profile-setting-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.profile-setting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-setting-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.profile-setting-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-setting-value {
  font-size: 14.5px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-setting-collapse {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeIn 0.15s ease;
}

.profile-inline-edit-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.profile-inline-edit-group input {
  flex: 1;
  height: 40px !important;
  min-height: 40px !important;
  font-size: 14px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  background: rgba(10, 10, 15, 0.8) !important;
  border: 1px solid var(--border) !important;
  color: #fff !important;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-inline-edit-group input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px var(--accent-glow) !important;
}

.profile-inline-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-sm {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--accent);
  color: #0a0a0f;
  box-shadow: 0 0 12px var(--accent-glow);
}

@media (max-width: 540px) {
  .profile-inline-edit-group {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-inline-actions {
    justify-content: flex-end;
  }
}

