.account-page {
  padding: 24px 0 80px;
  flex: 1;
}

.account-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right));
}

.account-header {
  text-align: center;
  margin-bottom: 36px;
  padding-top: 8px;
}

.account-title {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: #202020;
}

.account-email {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.account-guest {
  text-align: center;
  padding: 40px 20px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fdfdfd;
}

.account-guest-text {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  margin: 0 0 24px;
}

.account-msg {
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #1b5e20;
  background: #e8f5e9;
  border-radius: 8px;
  text-align: center;
}

.account-error {
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #b71c1c;
  background: #ffebee;
  border-radius: 8px;
  text-align: center;
}

.account-form {
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #e8e8e8;
}

.account-form--password {
  border-bottom: none;
  margin-bottom: 24px;
  padding-bottom: 0;
}

.account-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: #202020;
}

.account-field {
  margin-bottom: 18px;
}

.account-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #202020;
}

.account-field input[type="text"],
.account-field input[type="tel"],
.account-field input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #202020;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.account-field input:focus {
  outline: none;
  border-color: #202020;
}

.account-field--readonly .account-readonly {
  font-size: 14px;
  color: #202020;
  margin: 0 0 6px;
}

.account-hint {
  display: block;
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.account-actions {
  margin-top: 24px;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.account-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.account-btn--primary {
  width: 100%;
  background: #202020;
  color: #fdfdfd;
}

.account-btn--primary:hover:not(:disabled) {
  opacity: 0.88;
}

.account-btn--secondary {
  width: 100%;
  background: transparent;
  color: #202020;
  border: 2px solid #202020;
}

.account-btn--secondary:hover:not(:disabled) {
  opacity: 0.75;
}

.account-orders-link {
  margin-bottom: 28px;
}

.account-btn--outline {
  text-decoration: none;
  box-sizing: border-box;
}

.account-footer-actions {
  text-align: center;
  padding-top: 8px;
}

.account-link-logout {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-link-logout:hover {
  color: #202020;
}

@media (max-width: 480px) {
  .account-page {
    padding-bottom: 60px;
  }
}
